News for hackers. Stuff that matters.
Re:Brain.js: GPU Accelerated Neural Networks in JavaScript by jppope on Thursday July 07, 2022 @01:29PM (#32016858)
I ABSOLUTELY loved this project and used it for all of my "quick and dirty" ML stuff where I was fooling around... the only problem, which I don't think has been fixed is that it still requires *Python 2.7*.

End of life for Python 2.7 was 2020!

Re:Brain.js: GPU Accelerated Neural Networks in JavaScript by dhritzkiv on Thursday July 07, 2022 @06:46PM (#32020598)
Thanks for pointing this out. I've submitted a PR to resolve this: https://github.com/gpujs/gpu.js/issues/757

That being said, if you're not building from source (you're running an LTS version of node on a supported platform), you don't need to worry about python or many of the build deps.

Re:Brain.js: GPU Accelerated Neural Networks in JavaScript by psytrx on Friday July 08, 2022 @06:35AM (#32025291)
I appreciate your actionism. This is one of the reasons I love HN - super tech savvy people helping each other out. Kudos.
Re:Brain.js: GPU Accelerated Neural Networks in JavaScript by dhritzkiv on Thursday July 07, 2022 @10:36PM (#32022382)
Re:Brain.js: GPU Accelerated Neural Networks in JavaScript by vorticalbox on Thursday July 07, 2022 @01:36PM (#32016943)
Yeah this is a big issue that is super annoying to fix on latest Ubuntu.

That said if you can get it working the api is very simple but you can do a lot of things with it.

I created a LSTM network to predict your next move in rocker, paper, scissors in very little code.

Re:Brain.js: GPU Accelerated Neural Networks in JavaScript by nmstoker on Thursday July 07, 2022 @03:07PM (#32017979)
As others say, it's headless-gl, and that in turn seems to be due to node-gyp.

However the good news seems this is probably more a case of documentation inertia than actual requirements: it looks like you actually can install a version of node-gyp that works with Python 3.x and then in turn should be able to get headless-gl working too, which then let's brain.js work with a non -EOL version of Python

Re:Brain.js: GPU Accelerated Neural Networks in JavaScript by pmelendez on Thursday July 07, 2022 @03:01PM (#32017889)
It sounds like the problem is with its dependency with headless-gl, but still you have a point
Re:Brain.js: GPU Accelerated Neural Networks in JavaScript by Aspos on Thursday July 07, 2022 @02:45PM (#32017743)
What do you mean? Brain.js is JavaScript ML engine.
Re:Brain.js: GPU Accelerated Neural Networks in JavaScript by synchronizing on Thursday July 07, 2022 @02:52PM (#32017804)
Re:Brain.js: GPU Accelerated Neural Networks in JavaScript by Aspos on Thursday July 07, 2022 @03:00PM (#32017886)
Oh, you don't need to use python if you don't want to. Brain.js happily runs in a broswer.
Re:Brain.js: GPU Accelerated Neural Networks in JavaScript by YetAnotherNick on Thursday July 07, 2022 @03:32PM (#32018293)
It's just a requirement. Python 2 is available on all the systems I know. What difficulty are you facing in installing it?
Re:Brain.js: GPU Accelerated Neural Networks in JavaScript by kllrnohj on Thursday July 07, 2022 @10:27PM (#32022340)
> Python 2 is unsupported by the Python Foundation since 2020-01-01 and is being removed as of Debian 11 (Bullseye)

https://wiki.debian.org/Python

Re:Brain.js: GPU Accelerated Neural Networks in JavaScript by YetAnotherNick on Saturday July 09, 2022 @01:51PM (#32037589)
It's not being removed. It won't be default, but installing python2 is possible(https://packages.debian.org/stable/python/python2)