5 ms·
Look into something like Octave, where matrices are first-order data types, and you'll know exactly what he means.
by relaunched 13y ago
Look into something like Octave, where matrices are first-order data types, and you'll know exactly what he means.
- Kiro 13y agoHad a look. Still think JS is fine.
- relaunched 13y agoJS is fine; in the same way that is fine to use a sandbox shovel to dig the foundation of a house. Languages are designed for a purpose, though they can be used for all sorts of things. There is a larger upfront cost to learning the right language for the right job. However, many people opt to try to fit a square peg into a round hole.
- Crito 13y agoOr look at Python/Numpy. General purpose language with a sufficiently advanced library that doing linear alg stuff becomes a very pleasant experience. Way, way, way nicer than spelling it all out like this JS code has to. Then again, I might be biased there since I've spent a decent chunk of time porting MATLAB/Octave code to Python/Numpy so that we could get it into production in a robust way..
- relaunched 13y agoI actually like python/numpy, mostly b/c I'm very comfortable in the python stack. Numpy has come a long way, such that it has sufficiently shaved the squared off corners of the square peg, so it pretty much fits into the round hole.
- Crito 13y agoTo me, Numpy/SciPy are Pythons "killer apps". I would say the plurality of times I have decided to use Python in the past two or three years, it was because of them.