Originally posted by alpaca
View Post
Announcement
Collapse
No announcement yet.
Should GNOME Begin Replacing More C Code With Rust?
Collapse
X
-
Originally posted by plonoma View PostToo early. Rust both the language and very important libraries providing basic functionality are still undergoing too much change.
There are still important bugs to fix like this one: https://github.com/rust-lang/rfcs/issues/811
Comment
-
Originally posted by alpaca View Post
In a certain way it's already being done through WebAssembly which is experimentally supported by Rust.
https://hacks.mozilla.org/2016/10/we...owser-preview/
- Likes 1
Comment
-
Originally posted by GrayShade View PostI would rather they replaced JavaScript with Rust.
- Likes 1
Comment
-
Originally posted by Michael_S View Post2. Many of the core GNOME contributors are already world class C developers, and the code they know best is the existing GNOME C code. It's not sexy, but maintaining production tested code is often a better investment of time than throwing aside thousands of hours of work for the joy of a clean start with the hottest tool.
But pretty much anyone who's done much work in C can appreciate the advantages of Rust, because it's a language designed for C developers... people who need a powerful language for writing low-level code, but would prefer one them that helps protect them from their own mistakes (instead of handing them a loaded gun with a broken safety).
Comment
-
Originally posted by plonoma View PostThere are still important bugs to fix like this one: https://github.com/rust-lang/rfcs/issues/811
Comment
-
Originally posted by Delgarde View Post
That would be stupid. The use of Javascript in Gnome is mostly in places where you want a scripting language - glue code, shell extensions, etc. Rust would be a terrible choice for that - a far more complex language that requires compiling to native binaries. Rust is an excellent choice for library code,, but completely unsuited to the role for which Gnome uses Javascript.
Yet I agree, it would be hard to move away from JavaScript without losing compatibility with the current extensions.
Comment
-
Originally posted by plonoma View PostToo early. Rust both the language and very important libraries providing basic functionality are still undergoing too much change.
There are still important bugs to fix like this one: https://github.com/rust-lang/rfcs/issues/811
Comment
-
Originally posted by Delgarde View Post
Why do you regard that as a important bug, indicating a lack of production-readiness? Bug reports starting with the phrase "it would be useful if..." aren't typically something I'd regard as being especially critical...
Comment
-
Originally posted by mmstick View Post
There hasn't been much change since the 1.0 release, and that was more than a year ago. The only changes since then have been either invisible to the developer (MIR), or new additions to the language for added convenience (? operator is more convenient than try macro). The issue report you linked doesn't hinder anyone from writing anything in Rust today, and even when the issue is resolved via MIR, no existing code will be broken. Fixing the issue would simply make writing some portions of Rust more convenient than it is right now. It is trivial to avoid the borrowing issue mentioned.
Rust is still too immature as a language and software ecosystem to start writing frameworks in.
Comment
Comment