Mojo – a new programming language for AI developers
1–10 of 272 posts
Re: Mojo – a new programming language for AI developers
#2If this succeeds, it will allow you to use Python for the entire AI stack: high-level model composition (as usual), fast compiled CPU code (instead of, say, libs written with C++), and on-device operations (instead of, say, libs that use CUDA). Oh, and it will make your Python code parallel (i.e., there's no GIL).
Obviously, we'll have to wait until Mojo is production-ready, but I'm excited after seeing Jeremy Howard's easy-to-follow examples during the live keynote presentation. Jeremy, who sometimes hangs out on HN, must have been dying to tell the world about this for a long while.
Props to the Mojo team!
Re: Mojo – a new programming language for AI developers
#3Re: Mojo – a new programming language for AI developers
#4Perhaps this time, we finally have one that is a proper replacement for anything requiring intensive compute and performance without being a systems programmer, all thanks to the finest compiler engineers who brought you LLVM, MLIR and now Mojo. (Not the AI hype squad sitting on O̶p̶e̶n̶AI.com's APIs.)
If you know Python you have learned 90% of Mojo. Just waiting to see if it can compile to a binary.
Re: Mojo – a new programming language for AI developers
#5Initial impression is that the animation of Mojo code vs. Python code has a bad UX. Why not just show the code side-by-side instead of animating it and making me click?
Another obvious question is how is it different than Numba and so forth?
https://docs.modular.com/mojo/why-mojo.html
The Mojo language has lofty goals - we want full compatibility with the Python ecosystem, we would like predictable low-level performance and low-level control, and we need the ability to deploy subsets of code to accelerators. We also don’t want ecosystem fragmentation - we hope that people find our work to be useful over time, and don’t want something like the Python 2 => Python 3 migration to happen again. These are no small goals!
and
Mojo already supports many core features of Python including async/await, error handling, variadics, etc, but… it is still very early and missing many features - so today it isn’t very compatible. Mojo doesn’t even support classes yet!
So I think the idea is good, but yeah re-implementing Python is a huge effort !
Though the comparison right below is notable:
A major goal of Clang was to be a “compatible replacement” for GCC, MSVC and other existing compilers. It is hard to make a direct comparison, but the complexity of the Clang problem appears to be an order of magnitude bigger than implementing a compatible replacement for Python. The journey there gives good confidence we can do this right for the Python community
Re: Mojo – a new programming language for AI developers
#6Re: Mojo – a new programming language for AI developers
#7Well, I'm blown away. If this succeeds, it will allow you to use Python for the entire AI stack: high-level model composition (as usual), fast compiled CPU code (instead of, say, libs written with C++), and on-device operations (instead of, say, libs that use CUDA). Oh, and it will make your Python code parallel (i.e., there's no GIL). Obviously, we'll have to wait until Mojo is production-ready, but I'm excited afte…
Re: Mojo – a new programming language for AI developers
#8I'd love to see a comparison vs Julia though, which I think tried to tackle some of the same problems.
Re: Mojo – a new programming language for AI developers
#9Re: Mojo – a new programming language for AI developers
#10This looks quite interesting with big names behind it. I'd love to see a comparison vs Julia though, which I think tried to tackle some of the same problems.