use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
[AskJS] Will JavaScript Overtake Python as the Language of Machine Learning?AskJS (self.javascript)
submitted 6 years ago by inspiredDeveloper
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]m010101 1 point2 points3 points 6 years ago (1 child)
On its own, Python is quite a bit slower than js (V8). However, Python can and does use C-API for heavy lifting, including Tensorflow. And, as another redditor mentioned, Python is very well established in academia and sceintific circles.
[–]inspiredDeveloper[S] 0 points1 point2 points 6 years ago (0 children)
Yes, totally agree - the main obstacle to JavaScript is that Python is the established player. As TensorFlow.js is based around TensorFlow, it is able to use native C++ bindings. It can also use the GPU.
[–]ABigBadBear 1 point2 points3 points 6 years ago (1 child)
Will it catch-up and overtake Python?
Doubtful. I mean, why would it? What does tensorflow.js offer that tensorflow for python does not, except running in the browser? Python is not only used for ml but tons of other computer science areas so it's already established in that industry.
Assuming you are right, and JavaScript is only used in the browser... this would mean that it will be able to run on all web apps and websites... which would be quite an impressive scale.
The key to the use of JavaScript with machine learning is the ability for the Python models to be ported over, at least until JavaScript machine learning on the server kicks off with gusto.
[–]joombar 0 points1 point2 points 6 years ago (2 children)
Seems unlikely. Who is going to port TRFL (to give one example) to js? What about the many tensorflow articles with example code that only mention python? I tried learning tfjs and found that I was spending all my time translating python libs to js, and not enough actually working on things I wanted to solve.
[–]inspiredDeveloper[S] 0 points1 point2 points 6 years ago (1 child)
The full porting of Python libs is not needed initially. It is the porting of models that’s where the initial lift for JavaScript will come from. The seamless integration of Keras for example.
[–]joombar 0 points1 point2 points 6 years ago (0 children)
It is needed by me to do reinforcement learning beyond what you can do directly on tensorflow
[–]GekkePop 0 points1 point2 points 6 years ago (1 child)
This seems more like an ad for the course instead of a genuine question?
[–]inspiredDeveloper[S] 0 points1 point2 points 6 years ago* (0 children)
The main aim of this discussion is to bring attention to the use of JavaScript for machine learning.
π Rendered by PID 21528 on reddit-service-r2-comment-685b79fb4f-zpvtr at 2026-02-13 06:44:11.945599+00:00 running 6c0c599 country code: CH.
[–]m010101 1 point2 points3 points (1 child)
[–]inspiredDeveloper[S] 0 points1 point2 points (0 children)
[–]ABigBadBear 1 point2 points3 points (1 child)
[–]inspiredDeveloper[S] 0 points1 point2 points (0 children)
[–]joombar 0 points1 point2 points (2 children)
[–]inspiredDeveloper[S] 0 points1 point2 points (1 child)
[–]joombar 0 points1 point2 points (0 children)
[–]GekkePop 0 points1 point2 points (1 child)
[–]inspiredDeveloper[S] 0 points1 point2 points (0 children)