Re:DahliaOS operating system, combining the best of GNU/Linu...
by CarelessExpert on Tuesday November 03, 2020 @04:56PM
(#24984472)
> 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...
Re:DahliaOS operating system, combining the best of GNU/Linu...
by rbanffy on Tuesday November 03, 2020 @12:20PM
(#24981656)
> 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 ;-)
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-r...
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs