3 ms·
When I wrote C++ full time I frequently prototyped algorithms in Rust. Prototyping in C++ is awful: it's so easy to accidentally trigger UB and then you're was
by tomjakubowski 3y ago
When I wrote C++ full time I frequently prototyped algorithms in Rust.
Prototyping in C++ is awful: it's so easy to accidentally trigger UB and then you're wasting time debugging some memory corruption instead of exploring your problem.
Rust is close enough to C++ that you can get a good idea of equivalent C++ performance, and it isn't too hard to translate the prototype when you're finished. An exception being porting Serde (de)serialization over.