Just interesting, is any movement to this point, or Gods prefer C as perfect?
You can’t rewrite GTK in pure Rust:
- most of the underlying low level systems are exposed as C API, which means you’d have to wrap them up in Rust as well
- you’d have to redesign the whole API to be idiomatic Rust
- you’d have to wrap the idiomatic Rust API with a non-idiomatic C API in order to provide bindings for every other language
On top of that, GTK is 600k lines of dense C code, and it’s currently maintained by about ~5 people working on it part time, out of which only a couple are passingly familiar with Rust. Who is going to rewrite it?
Yep, looks like impossible, in my small application I wonder of additional time taken for manual memory management. But who knows - currently lot of people do really impossible things…
That’s generally a question only worth asking when something goes wrong—and for that, you have tools like Valgrind and ASan. Pre-emptively worrying about memory management is just a waste of time, compared to all the other issues you’re going to face.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.