Python can run Mojo now
8 points by spookylukey
8 points by spookylukey
I’ve been playing around a bit with the bindings, and it’s really nice how the context switch overhead reduced with Mojo. It’s less jarring than writing a Py03 module and jumping between Rust and Python at least.
Not a giant deal, but it is a nice feature of their “python family” syntax, and overall stdlib design.
Example: range
and len
are the same in both languages.
Cool, but in terms of performance the more interesting comparison would be with other compiling/jittng python accelerators like numba, jax or cython, not plain python.
I think you can probably sub in any comparisons with C/C++/Rust Python modules vs the jitting libs. Mojo is as fast as C/C++/Rust. The bindings quality has no reason not to hit the same efficiency as Py03 and company. So really it comes down to whether or not the JIT version is able to specialize more. Cython is not a JIT, so all the old comparison apply.