4 ms·
You may also consider doing it in Rust. It's possible to implement GObject subclasses in Rust which little additional overhead as compared to doing it in C, bu
by tmzt 6y ago
You may also consider doing it in Rust.
It's possible to implement GObject subclasses in Rust which little additional overhead as compared to doing it in C, but you get the syntactical niceties of for each loops, traits, and other features of Rust.
librsvg makes good use of these bindings, and is undergoing a rewrite in Rust. Gstreamer bindings are also becoming more complete, and example implementations of many of the standard plugins have been rewritten. The official implementation is still in C though.
Vala is a neat concept though and a pretty clean language.
https://people.gnome.org/~federico/blog/librsvg-gobject-in-rust.html https://people.gnome.org/~federico/blog/librsvg-gobject-in-r...
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs
- rbanffy 6y ago> You may also consider doing it in Rust. The Vala compiler complains about my code. The Rust one tears it to shreds. I understand Rust's constructive criticism is coming from a good place, but it's still very harsh ;-)
- CarelessExpert 6y ago> librsvg makes good use of these bindings, and is undergoing a rewrite in Rust. And is losing support for older CPU architectures as a result. I really hope we don't see this more before the rust compiler is improved to support older architectures, as otherwise it may become prohibitively difficult to revive older systems...