News for hackers. Stuff that matters.
Re:C++ Is the New Python by thesuperbigfrog on Wednesday July 14, 2021 @02:07PM (#27836227)
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".

Re:C++ Is the New Python by mountainriver on Wednesday July 14, 2021 @02:10PM (#27836291)
Yeah 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

Re:C++ Is the New Python by benttoothpaste on Wednesday July 14, 2021 @02:17PM (#27836389)
Exactly 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.
Re:C++ Is the New Python by marcosdumay on Wednesday July 14, 2021 @02:27PM (#27836538)
Java 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.

Re:C++ Is the New Python by mountainriver on Saturday July 17, 2021 @12:13PM (#27866778)
Java did replace a lot of c++ and Rust will replace a lot more for low latency applications
Re:C++ Is the New Python by thesuperbigfrog on Wednesday July 14, 2021 @02:21PM (#27836446)
Java 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.

Re:C++ Is the New Python by nly on Wednesday July 14, 2021 @03:31PM (#27837358)
Rust has a steeper learning curve than C++, which offers a on-ramp from C
Re:C++ Is the New Python by mountainriver on Saturday July 17, 2021 @12:12PM (#27866769)
Huh? Not with anyone I know
Re:C++ Is the New Python by jgjot-singh on Wednesday July 14, 2021 @02:55PM (#27836900)
Is rust feasible for writing audio applications that are dependent on tight timings, and low latency? E.g a DAW or vst
Re:C++ Is the New Python by viraptor on Wednesday July 14, 2021 @04:27PM (#27838012)
Why 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.
Re:C++ Is the New Python by smoldesu on Wednesday July 14, 2021 @03:01PM (#27836964)
If 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).