News for hackers. Stuff that matters.
Re:Mojo: The usability of Python with the performance of C by BugsJustFindMe on Friday September 22, 2023 @04:49PM (#37617584)
The thing about Mojo is that the part they spend most of their time promoting in their online material (Python but faster and good for AI) doesn't seem to require a new language at all, but rather a new hardware-aware Python compiler and some extra library modules.

It sure looks like they only turned it into a new language because they wanted to add static typing and immutable references, which maybe you care about and maybe you don't.

In that light it's hard for me to appreciate the development direction they've gone in.

Re:Mojo: The usability of Python with the performance of C by rbanffy on Saturday September 23, 2023 @04:01AM (#37621462)
Indeed.

It feels like it’s a nice language and, building on LLVM makes it stand on a solid foundation, but, still, it feels like a series of PEPs, some of which I can easily get behind.

If they make mojo modules callable from Python code, it all becomes a whole lot more palatable.

Re:Mojo: The usability of Python with the performance of C by hashtag-til on Saturday September 23, 2023 @04:41AM (#37621621)
Yes. It seems everybody is just creating this tiny small secret sauce and giving it a different name to lure venture capital.

I love the LLVM ecosystem, will touch Mojo only when they evolve it and build more bridges with the regular Python ecosystem.

Re:Mojo: The usability of Python with the performance of C by rbanffy on Saturday September 23, 2023 @06:39PM (#37628230)
This seems like a huge effort and a pretty well rounded language. Could even succeed Python in some spaces. I like the syntax being unobtrusive as well.

I’d love to see it being used to write modules usable from Python code. This could provide a smooth migration path to apps that benefit less from Python’s dynamic nature and more from C-like speeds.

Re:Mojo: The usability of Python with the performance of C by falkaer on Saturday September 23, 2023 @05:48AM (#37621867)
Those new language constructs are exactly what's enabling the performance gains, by giving reliable information to the compiler. Projects like numba have clearly demonstrated the limitations of trying to compile pure Python.
Re:Mojo: The usability of Python with the performance of C by atorodius on Saturday September 23, 2023 @07:07AM (#37622147)
Yeah I was thinking the same. Jax does this, but I did not see a comparison.