4 ms·
Numpy wouldn't work in JS because you can't overload operators afaik. Numpy/scipy are reasons why many people love Python.
by amelius 6y ago
Numpy wouldn't work in JS because you can't overload operators afaik. Numpy/scipy are reasons why many people love Python.
- tchaffee 6y agoIt would work. All those overridden operators are just functions. It wouldn't be as concise or as intuitive though.
- amelius 6y agoYes, 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.
- tchaffee 6y agoAh ok, by "numpy wouldn't work in JS" you meant something like it wouldn't be popular or as loved. Makes more sense now.