3 ms·
In general JavaScript is eating the world. Python still dominates in numerical computing and JavaScript hasn't been able to make a single dent. Because nobody
by mantap 7y ago
In general JavaScript is eating the world.
Python still dominates in numerical computing and JavaScript hasn't been
able to make a single dent. Because nobody wants to write
a.mul(k).add(b)
rather than
k * a + b
or
a.set([i,j], b)
rather than
a[i,j] = b
JavaScript's lack of operator overloading is keeping Python alive.
Python also has integers that feel part of the language, rather than being
segregated from normal numbers in case anybody uses integers by accident.
- medecau 7y ago> JavaScript's lack of operator overloading is keeping Python alive. right... - https://www.scipy.org/ https://www.scipy.org/ - https://news.ycombinator.com/item?id=20661311 https://news.ycombinator.com/item?id=20661311
- mark_l_watson 7y agoTensorFlow.js is actually very nice to work with: it seems to be well supported and comes with many quality examples.
- langitbiru 7y agoYes, Yes, Yes. I remember when I translated Bitcoin Python code to JavaScript, I was frustrated. Operator overloading is not available in JavaScript. By default JavaScript only supports 32 bit number. You have to use BigInt or use 3rd party library like big-integer. There is no default support for module exponentiation. And many more.
- nahtnam 7y agoYou’re spot on… As someone who uses Node/JS for most of my projects, I was actually surprised at how easy math is in python. I was given a homework assignment with the ability to use whatever language I wanted, so I picked JS. After hours wasted trying to do math with large numbers, I switched to python because others seemed to have success with it. Needless to say, I finished the assignment an hour or so after that. (Note, I would still use Node over python for an API any day of the week, personal preference)
- 6gvONxR4sf7o 7y agoThere's also the C FFI. Syntax is important, but so is being able to integrate with BLAS/LAPACK.
- blub 7y agoYou're enormously overstating the influence of JS on things outside of the JS ecosystem.
- mantap 7y agoConsider that 10 years ago Ruby and Python used to be spoken about as a pair, with Ruby being the more popular one. Now Ruby is rarely heard about, JavaScript has eaten it whole and only the bones remain.