nodejs / node

Node.js JavaScript runtime ✨🐢🚀✨
https://nodejs.org
Other
106.65k stars 29.08k forks source link

Providing extra math modules like numpy etc. as built-ins ? #26350

Closed maslow closed 5 years ago

maslow commented 5 years ago

Is your feature request related to a problem? Please describe. Please describe the problem you are trying to solve. Python is becoming more and more popular in data science and deep learning because it is convenient for these realms. I suppose if we can provide some relevant tool modules about math calculations. These functions are common enough to become builtin modules instead of just providing by third-party modules.

Describe the solution you'd like Please describe the desired behavior. Implement functions like itertools.product from python. Implement common data science functions like numpy provides. And one day maybe 1 or 2 years later, when people talking about deep learning or data science , Node.js firstly comes to their brains instead of just python. Node.js may be popular for more situations than before and now. That's what I have imagined, maybe it's naive enough but I want to hear from all of your options about this. Consider it ? And thank you.

Describe alternatives you've considered Please describe alternative solutions or features you have considered.

BridgeAR commented 5 years ago

Node.js programs always work with userland (third-party) modules. I fail to see a big benefit it would have to move Math modules inside of Node.js. It would be a significant increase in maintenance for the collaborators and not all users require this. Thus I doubt that this is something we want to pursue - at least currently.

mscdex commented 5 years ago

-1 this is best left to userland

maslow commented 5 years ago

Node.js programs always works with userland (third-party) modules. I fail to see a big benefit it would have to move Math modules inside of Node.js. It would be a significant increase in maintenance for the collaborators and not all users require this. Thus I doubt that this is something we want to pursue - at least currently.

okay... that u say makes sense

BridgeAR commented 5 years ago

If other collaborators feel like this is something we should do, please feel to reopen.