Y
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
tchaffee
2209 days ago
It would work. All those overridden operators are just functions. It wouldn't be as concise or as intuitive though.
link
amelius
2209 days ago
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.
link
tchaffee
2209 days ago
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.
link