Hacker News new | ask | show | jobs
by amelius 2209 days ago
Numpy wouldn't work in JS because you can't overload operators afaik. Numpy/scipy are reasons why many people love Python.
1 comments

It would work. All those overridden operators are just functions. It wouldn't be as concise or as intuitive though.
Yes, that was the point ;) Both languages are practically Turing complete so they are equivalent if you're just interested in what you can build with them.
Ah ok, by "numpy wouldn't work in JS" you meant something like it wouldn't be popular or as loved. Makes more sense now.