News for hackers. Stuff that matters.
Re:It's time to halt starting any new projects in C/C++ by somewhereoutth on Monday September 19, 2022 @08:21PM (#32905992)
For systems programming, use whatever the Linux kernel uses. For everything else, there is javascript.
Re:It's time to halt starting any new projects in C/C++ by thesuperbigfrog on Monday September 19, 2022 @08:38PM (#32906127)
>> For systems programming, use whatever the Linux kernel uses.

https://www.zdnet.com/article/linus-torvalds-rust-will-go-in...

>> For everything else, there is javascript.

Scientific / numerical computations? GPU / CUDA programming? Machine learning? Natural language processing?

Re:It's time to halt starting any new projects in C/C++ by antegamisou on Monday September 19, 2022 @10:56PM (#32907136)
> Scientific / numerical computations? GPU / CUDA programming? Machine learning? Natural language processing?

We serve CRUD here, sir.

Re:It's time to halt starting any new projects in C/C++ by pipeline_peak on Monday September 19, 2022 @08:49PM (#32906226)
To be fair, anything done in Python can be said about JS and under V8 will execute faster.

But idk what OP is saying lol

Re:It's time to halt starting any new projects in C/C++ by gpm on Monday September 19, 2022 @08:52PM (#32906245)
Eh, the main thing that can be done in python is calling all the libraries that have been written for python. Can't do that from JS.
Re:It's time to halt starting any new projects in C/C++ by llanowarelves on Monday September 19, 2022 @09:16PM (#32906437)
The big stuff is mostly done in C/C++ (because Python is slow) and bound to, so you could end up with basically the same bindings for JS/TS.
Re:It's time to halt starting any new projects in C/C++ by gpm on Monday September 19, 2022 @11:27PM (#32907323)
I've tried using both tensorflow and pytorch via their C/C++ apis. It's possible, but just enough of the convenience logic is in python that it's not very practical.

Incidentally if you're going to do it, I recommend pytorch over tensorflow.

Re:It's time to halt starting any new projects in C/C++ by shakna on Monday September 19, 2022 @11:11PM (#32907226)
The incredibly long time it took to port very popular libraries from Python 2, to Python 3, demonstrates how unrealistic this thought is.
Re:It's time to halt starting any new projects in C/C++ by pipeline_peak on Monday September 19, 2022 @09:10PM (#32906398)
Because they’re written in Python.
Re:It's time to halt starting any new projects in C/C++ by kbenson on Monday September 19, 2022 @08:59PM (#32906305)
A case could be made to consider libraries systems programming, as the "system" is often more than just the kernel. If you have libraries doing the heavy lifting of all that, then the language on top that calls into those libraries for the bulk of the intensive work matters quite a bit less.
Re:It's time to halt starting any new projects in C/C++ by jpgvm on Monday September 19, 2022 @10:02PM (#32906757)
I don't think it's possible to choose a worse (mainstream) language for general purpose use than Javascript.

If it's not running in the browser it should simply never be JS. That is the only environment where you are stuck with it. Almost anything else is better but you should probably using one of Java/C# or Kotlin/Rust in 2022.