29 Respuestas
+ 39
Javascript, despite attention on timers and workers, is still single-threaded (automatically binds JS to one CPU...browsers cheat by giving tabs separate process threads). The only real way you get JS multiprocessing performance is by getting GPU (some of the CSS animations here trick the GPU into converting elements into animation shaders...making you -think- javascript is that fast).
Multiprocessing/threading is good; you see it really well in GPU's; they're good at SIMD...Single Instruction, Multiple Data...and it's heavily leveraged for ML by: not javascript.
A real critical example: A matrix with 100,000 rows (m) and 15 columns (n) can be O(1) with SIMD, while JS has to nest loops...so O(m * n). And this is a small matrix.
ES8 (2017, JS core) aims to be asynchronous but there are still many old JS engines around (maybe some bright spark can fix that).
Projects for JS to access the GPU for general computing exist (WebCL, like CUDA) but support...?
WebCL test: https://highweb-project.github.io/WebCL-conformance/webcl-conformance-tests.html
What's coming in ECMAScript 2017 (ES8):
https://hackernoon.com/es8-feature-set-javascript-is-getting-asynchronous-2a8a43dd0cbc
+ 18
Really depends on the community. Python was chosen because of its simple yet powerful syntax, which allowed the people with scientific/statistics/mathematics background to learn it quickly and build in it. Its versatility allowed for interoperational approach, which R lacked a bit.
JavaScript would have to provide some kind of yet another advantage over Python for the people to switch to it, I think. So far it can be at par at most.
+ 9
There are many reasons why Python is one of the best programing languages.
The syntax of Python is really simple compared to other languages.
It is a powerful language.
In terms of machine learning,
There are many well written machine learning libraries in Python.
For example, Keras, Theano, Tensorflow, Scikitlearn, etc.
Personally, I love Python the most.
+ 4
JavaScript amd Python were designed for different purposes. Python has way too many good libraries available for Machine Learning already. I can see client-side JS working together with serverside Python. But it doesn't make sense to reinvent the wheel and write all ML libraries again, unless there are any performance or usage improvements JS can offer.
+ 4
The answer ideally should be No,
realistically I noticed the 90% users of js are mostly for web,
I was just in one site to check out some js tutorial and it was termed lightweight, it is that way for a reason and maybe it's philosophy isn't for machine learning after all
+ 4
Python is a really strong and easy-to-learn language.... It is also one of the reasons why Google is so strong........
But on the other hand, JavaScript is getting stronger and stronger day by day.....
So it can be expected that JavaScript might be another machine learning language in the near future....
+ 3
Even though JavaScript have a few libraries for Machine Learning. Python is superior to JavaScript in terms of Machine Learning Libraries it have. But in future will JavaScript
+ 3
I know javascript library for machine learning: synaptic.js
+ 3
I think "No" because python is very handy and its great for data science...
+ 2
Very informative comments.
+ 2
@abhi I'm gladly will.
+ 1
Too many answers which relate to different aspects, criteria or options of software viability focus on the synthetic and not the analytic. Early learners of software need to keep the boundaries of particular software in perspective.
+ 1
no
+ 1
听不懂
+ 1
Yas.
+ 1
What's machine learning?
0
Yes but the enterprise for script is different so you have to start on the basics
0
Java script should know all d manings of world
0
software progress seems to me is towards more inclusion of more useless stuff. Frankly getting more and more clunky demanding bigger and faster computers. There isn't anything you can do with Python that you couldn't do with commodore64 basic, except on the C 64 you didn't have such a miriad of choices. x=x+1, but now you can x+=x too. Progress? No. Demands more system resources. I've always felt that software development should be towards leaner and meaner code. Just part of why I hate Microsoft, increasing system requirements with every generation
0
It depends upon your skills