What is the value of the question?
In my opinion, the question is useful for people who wants to looks for some way to do scientific computing in JavaScript (or Node.js), knows about NumPy, but don't know the correct term to look it up (such as the OP).
In this respect, it is useful.
Could a on-topic-for-SO question exist that satisfy the value above?
Consider the following:
NumPy-like multidimensional-array manipulation functionality for Node.js
In Python, manually looping through a list is slow. However, if you e.g. have a matrix of floating-point numbers and want to e.g.
compute a matrix multiplication, using NumPy can speeds it up massively.
Similarly, is there some way to manipulate multi-dimensional arrays in Node.js with high performance? Or, if there isn't, is there any technical reason that prevents it?
In my opinion, that question would be on-topic for SO:
- It doesn't ask for a library --- even though it's "common sense" that this would require a library, it also seemed common sense that big integer requires a library before JavaScript adds native support for it. I don't see my obvious technical challenge that prevents JavaScript from adding automatic vectorization for floating-point array some day --- provided the code is written in a particular way.
- It doesn't ask for an opinion --- a solution would be one that multiplies matrices quickly. For example, the Tensorflow.js answer can do that.
- Even in the (now false) case where there isn't such a library, it is asking for a technical reason, which can be objectively answered. For example, "JavaScript on browser cannot link to C/C++ library" is a reason (although for Node.js this is false).
Editing the question?
As far as I can see, that edit would not invalidate any answers, and would keep something valuable open on Stack Overflow (so that new information, if any, can be added there, making it more valuable for future visitors). So, definitely yes.
Is the top answer invalidated? Barely. But the question formulation above barely works --- it asks for "is there a technical challenge" and the answer states "there isn't a technical challenge", and provide a project, but also includes additional information on the challenge on the Node.js community.
Other answers are invalidated?
It is indeed true (see comments below) that some of the answers does not satisfy the high-performance condition.
However,
I'd say that in this case the problem is less that "we change the question" and more "the question already mean to ask about high performance, we edit it to clarify the intent".
(even more narrowly-defined variant)
The question above can also be narrowed down more e.g.
NumPy-like multidimensional-array manipulation functionality for Node.js
In Python, manually looping through a list is slow. However, if you e.g. have a matrix of floating-point numbers and want to e.g.
compute a matrix multiplication, using NumPy can speeds it up massively.
Similarly, is there some way to add two 3-dimensional arrays in Node.js with high performance? Or, if there isn't, is there any technical reason that prevents it?