Originally posted by andrei_me
View Post
Announcement
Collapse
No announcement yet.
AMD Is Hiring To Work On New Radeon Driver Tooling Written In Rust
Collapse
X
-
Originally posted by Alliancemd View PostThere is a reason why it is the most loved programming language, 5 years in a row.
- Likes 4
Comment
-
Originally posted by phoronix View PostPhoronix: AMD Is Hiring To Work On New Radeon Driver Tooling Written In Rust
It turns out AMD is at least exploring the possibilities around using the Rust programming language in their graphics driver tooling...
http://www.phoronix.com/scan.php?pag...ng-Radeon-Rust
- Likes 1
Comment
-
Originally posted by cl333r View PostProbably a bad idea to use Rust.
The reason we don't see full blown apps in Rust taking over the Linux desktop is because it's far less productive because the issues it fixes come at a heavy cost and the bindings and style you have to use is alien to the human brain because writing otherwise is not allowed because of the borrow checker - I did a quick look at the Qt bindings - they're disgusting to me as a human.
I only see these cases as suitable for Rust:
- some complicated multi-threaded task
- some toy app, like fd [1] which is awesome
- a part of code in an app like telegram, tor or whatnot that are obsessed with security.
[1] https://github.com/sharkdp/fd
Plenty of full-blown applications and very complex architectures are written in Rust. I've written several GTK applications and system services in Rust. At System76, we have two GTK applications written in Rust at stations processing everything from receiving to assembly. Desktop applications honestly aren't that difficult to right.
- Likes 2
Comment
-
Originally posted by uid313 View PostI am a dumb guy who tried out Rust, it is pretty hard to code with, but its a bit cool. It uses traits and structs instead of interfaces and classes, but its kinda similar. It doesn't support async methods in traits though. Nor does it support string interpolation. I am not sure if Option<Value> provides any benefit over nullable values, because then you have to extract it and check if it has a value or is None, so then you might as well check if its not null.
- Async methods are supported
- String interpolation is supported, though I personally prefer fomat
- Not sure if you're actually serious about Option vs null.Last edited by mmstick; 25 September 2020, 12:38 PM.
- Likes 1
Comment
-
Originally posted by jacob View Post
I never tried to use it (yet) but AFAIK it's actually based on gtk-rs, so it seems it's a complement rather than an alternative. The thing that makes gtk-rs great is that now it allows you to create new widgets natively in Rust. It's a little bit more verbose and less intuitive than in Vala though.
Comment
-
Originally posted by oleid View PostRelm is supposed to be a nicer wrapper for gtk+. It uses message passing to deliver events and thus can easily be used in highly multithreaded code.
Code:let (tx, rx) = flume::unbounded(); let mut app = App::new(tx); glib::MainContext::default().spawn_local(async move { while let Some(event) = rx.recv_async().await { match event { Event::DoThis(value) => app.do_this(valuie), } } }); gtk::main();
Comment
-
Originally posted by dwagner View PostI hope they fell not victim to the illusion that the choice of programming language determines the quality of the software.
And the projects are so negative, like Rust and dust... and Corrode... and "rip"grep...
- Likes 1
Comment
Comment