News for hackers. Stuff that matters.
Re:Google says replacing C/C++ in firmware with Rust is easy by redman25 on Saturday September 07, 2024 @11:48PM (#41478073)
If you’re ok with sacrificing a small amount of performance for usability, just throw `clone()` everywhere. It will satisfy the compiler.

Rust can be written as simply as you want it to be written. Or, you can go crazy with generics or metaprogramming.

Re:Google says replacing C/C++ in firmware with Rust is easy by dns_snek on Sunday September 08, 2024 @05:48AM (#41479343)
> Rust can be written as simply as you want it to be written. Or, you can go crazy with generics or metaprogramming.

In theory you can do that, in practice you can't. Becoming a good $language programmer necessarily involves reading other people's code, for example when diagnosing issues in misbehaving libraries. You have to be familiar with every common language feature that other developers use, otherwise you won't be able to do your job properly.