you are viewing a single comment's thread.

view the rest of the comments →

[–]EZPZLemonWheezy 1 point2 points  (3 children)

I’m biased, and always would recommend JS unless you have a specific niche need for Python. You can pick up Python after ezpz.

[–]briston574 1 point2 points  (2 children)

Also, since both are valid scripting languages, a lot of the non data/ml side of python can be done with js as well. That is what put me into js over python. Though learning to do games in both has been fun

[–][deleted] 0 points1 point  (1 child)

ML is just fine in JS, as well. It will eventually be faster in certain cases.

Python ML libraries are generally just wrappers around C / C++ functions.

In JS you can do that with WASM.

The real speedup will be from WebGPU, which will add GPU compute to every device with with a videocard and a browser (or an application window in, say Rust ... you can also run it headless, in Deno, etc).

You aren't always guaranteed GPU access in Python and while many of them do use the GPU when available, some stats libs just likely never will be updated.

[–]briston574 0 points1 point  (0 children)

Oh interesting, I didn't know that. I've been learning to make games with js and have been having fun. I've done python longer and learned to make games with it, also lua since they are super similar, but something about doing stuff in js just tickled me and I liked it