News for hackers. Stuff that matters.
Re:How I Wrote a Modern C++ Library in Rust by nickpsecurity on Monday December 03, 2018 @12:53PM (#18590999)
Interesting enough, the Vala language compiles to C with GObject's for portability:

https://en.wikipedia.org/wiki/Vala_(programming_language)

It was a clever decision. I'm not sure if the right one but a nice thing to try to see how well it works. I wonder if anyone did a "Looking Back"-style write-up on how it's worked out so far with pro's and con's.

Re:How I Wrote a Modern C++ Library in Rust by hsivonen on Monday December 03, 2018 @01:25PM (#18591386)
The GTK+ and GStreamer bindings for Rust are already mostly generated code (and seem to work very well): https://github.com/gtk-rs/gir/blob/master/README.md

I'm not sure what the exact status of extendin GObject hierarchies from Rust is. See https://github.com/gtk-rs/gobject-subclass

Re:How I Wrote a Modern C++ Library in Rust by pjmlp on Monday December 03, 2018 @01:38PM (#18591539)
It works relatively well.

I just have two complaints.

The build times, as Gtk-rs seems to do code generation during the build, and the usual Rc<RefCell<item>> for accessing internal widget data on the callbacks.

Re:How I Wrote a Modern C++ Library in Rust by floatboth on Tuesday December 04, 2018 @04:13PM (#18603646)
Vala is.. good and bad. (Like most things.)

Certainly successful at bringing new developers into the Gtk world (especially thanks to elementary OS and its developer documentation). Familiar syntax for C# devs.

The downside is, well, memory bugs. For example, sometimes perfectly reasonable Vala code results in error messages like "Unable to parse accelerator '\u0008\x8dn\u000b\u0008': ignored request to install 501 accelerators" or downright segfaults: https://gitlab.gnome.org/GNOME/vala/issues/626