Re:Mojo: The usability of Python with the performance of C
by kbrkbr on Saturday September 23, 2023 @07:14AM
(#37622182)
Or you use numba [1]. Then you can use a subset of plain Python.
Re:Mojo: The usability of Python with the performance of C
by taway1237 on Saturday September 23, 2023 @07:49AM
(#37622403)
Why is cython (python-like fast language) worse than mojo (python-like fast language)?
Re:Mojo: The usability of Python with the performance of C
by CoreyFieldens on Saturday September 23, 2023 @11:37AM
(#37624227)
There's no a strong reason to use Mojo over cython right now, but if Mojo can deliver on their claims, I think there will be. Mojo will have a borrow checker, better IDE support, support overloading, and better SIMD support are things that stick out to me.
Re:Mojo: The usability of Python with the performance of C
by coldtea on Saturday September 23, 2023 @01:14PM
(#37625226)
Aside from the rest of stuff they offer (and higher speed, if they're telling the truth) Mojo is also a standalone language you can use, whereas Cython is meant for dual-mode use alongside Python.
Yes, but that's also the issue they address. That you cant just write plain Python for something not covered by libraries and have it be fast. You need to then mess with extending with C, Cython, and so on.