Post B6uuCCeamln1ZcqEAy by bugaevc@floss.social
(DIR) More posts by bugaevc@floss.social
(DIR) Post #B6teZREqvtUR2ktpVA by bugaevc@floss.social
0 likes, 0 repeats
Are you using Vala? Are you *not* using Vala?What is #Vala missing to be your favorite programming language? What could we improve to make it more suitable for your use cases?Let us know over at https://discourse.gnome.org/t/what-is-vala-missing-to-be-your-favorite-language/35239
(DIR) Post #B6tq8BqbFPxwwKKRsW by innocentzero@social.tchncs.de
0 likes, 0 repeats
@bugaevc > What is #vala missing to be your favourite programming language?xdg-desktop-portal-niri 🙃
(DIR) Post #B6tvtgJgHWgmoqOdLE by simran@fosstodon.org
0 likes, 0 repeats
@bugaevc The learning curve compared to Rust is probably nowhere near as steep but it feels like choosing the third best option overall for writing an app (purely based on personal perception). If you learn and work with one of the major languages instead, it could amount to a job eventually and there are large ecosystems you can utilize.
(DIR) Post #B6tvuDrVYmM6rJTc9I by pavel@social.kernel.org
0 likes, 0 repeats
@bugaevc Is Vala supposed to be my favourite language? Last time I used it, it was simple domain-specific language for Gtk apps. It was not "safe", nor it probably should be, due to performance constraints.So I guess I'll keep using Python where it makes sense.
(DIR) Post #B6tvuE28vErXOIS6j2 by bugaevc@floss.social
0 likes, 0 repeats
@pavel well, this was primarily targeted at GNOME people, not kernel hackers :DBut yeah, it's not tied to GTK at all (and there's a WIP mode where it's not even tied to GLib), you could just use it to write stuff, same as how C is not really tied to Unix, even though that's where it originated.
(DIR) Post #B6tvumecChq4lSiJPc by bugaevc@floss.social
0 likes, 0 repeats
@pavel Compared to Python, it doesn't require a separate interpreter, has no GC or any special execution model (runs just like C), has really good interop with C in both directions (you can write a library in it and then use it from C).
(DIR) Post #B6uuCCRTZXIWuwhkjQ by pavel@social.kernel.org
0 likes, 0 repeats
@bugaevc Yeah, I know. It has rather nice string abstraction for being C-ish. But last time I check, it was not "safe" -- you could confuse it and get segfaults.Plus, really, Vala is not a language in a same way Python or Rust is. I would not recommend it inside kernel, for example.For Gtk, Python support is pretty cool, but I'd really like to see better Rust support. Not easy, I know, but Rust is well-known high-performance language.
(DIR) Post #B6uuCCeamln1ZcqEAy by bugaevc@floss.social
0 likes, 0 repeats
@pavel yeah, it's not "safe" in that way, you can write use-after-frees in it. So would making it "safer" make it a lot more attractive to you, or would you not like it anyway?wdym it's not a language in the way others are? For Rust and GTK, there is excellent gtk-rs 🦀, though unlike Vala it does have (unavoidable) overhead.
(DIR) Post #B6uvkab0NLkrd37kGG by pancake@infosec.exchange
0 likes, 0 repeats
@bugaevc wait! is the posix mode back to Vala? I had to workaround that to keep some of my non glib projects alive at the time.
(DIR) Post #B6uvyejfmSocWRsyps by bugaevc@floss.social
0 likes, 0 repeats
@pancake it absolutely is, and we want to keep improving it, e.g. make both compact and non-compact classes work(compact classes don't have run-time type info, regular classes do, so you would be able to do run-time type checks, use interfaces, etc, just without GObject)so that would matter for you a lot?