Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

For systems programming, use whatever the Linux kernel uses. For everything else, there is javascript.


>> 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?


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

We serve CRUD here, sir.


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


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.


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.


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.


The incredibly long time it took to port very popular libraries from Python 2, to Python 3, demonstrates how unrealistic this thought is.


Because they’re written in Python.


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.


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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: