4 ms·
Rust is the new, improved C++. Rust is being added to the Linux kernel and is making inroads in domains where C and C++ have historically been used. It can ma
by thesuperbigfrog 5y ago
Rust is the new, improved C++.
Rust is being added to the Linux kernel and is making inroads in domains where C and C++ have historically been used. It can match (and sometimes exceed) the performance of C and C++ but with better memory safety and sound concurrency.
C++ won't go away anytime soon, but it's practically disingenuous to call C++ "the new Python".
- mountainriver 5y agoYeah Rust will mostly kill c++ overtime. I know people keep talking about modern c++ and the language has certainly improved, but it’s nowhere near the productivity of Rust. With how slow the c++ community moves and how much debt they have I think it’s game over in most arenas
- benttoothpaste 5y agoExactly the same thing was being said about Java (the first of the C++ killers) back in 1990s. And yet C++ is still around. It is not that easy to kill it seems.
- mountainriver 5y agoJava did replace a lot of c++ and Rust will replace a lot more for low latency applications
- thesuperbigfrog 5y agoJava did replace C++ in many domains, but not all simply because the JVM requires more overhead than C++. The trade-off was more overhead, but faster development and fewer errors due to not needing to manage memory or other low-level details. Java is easier to write than C++ and is more portable than C++, but needs more time to get fast and more memory to work with. By way of comparison, Rust offers all of the speed of C++ and similar low overhead with practically none of the footguns that C++ is known for.
- nly 5y agoRust has a steeper learning curve than C++, which offers a on-ramp from C
- mountainriver 5y agoHuh? Not with anyone I know
- marcosdumay 5y agoJava did kill most of the C++ usage. The overall use of the language grew because everything in IT grew a lot during that time, so the niches where Java sucks grew larger than all of the C++ niches at the start. The real question is if Rust will leave any niche. It looks like it won't, but this is not the kind of question one can really answer.
- deleted 5y ago[deleted]
- jgjot-singh 5y agoIs rust feasible for writing audio applications that are dependent on tight timings, and low latency? E.g a DAW or vst
- smoldesu 5y agoIf I'm not mistaken, the entire audio stack in Google's upcoming Fuscia project is being written in Rust, as well as some components of the modern Android stack (specifically the wireless stuff, but don't quote me on that).
- viraptor 5y agoWhy wouldn't it be? There's no forced GC, you can have custom application in arenas, etc. Pretty much all tricks used for low latency are available.