3 ms·
>That's probably true in a select case, but this is why you use libraries in Python - to make use of all the hard work that already exists in C/C++ in those lib
by coldtea 3y ago
>That's probably true in a select case, but this is why you use libraries in Python - to make use of all the hard work that already exists in C/C++ in those libraries, with Python serving as a high level and far easier to write functional wrapper.
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.
- deleted 3y ago[deleted]
- kbrkbr 3y agoOr you use numba [1]. Then you can use a subset of plain Python. [1] https://numba.pydata.org/ https://numba.pydata.org/
- taway1237 3y agoWhy is cython (python-like fast language) worse than mojo (python-like fast language)?
- CoreyFieldens 3y agoThere's not a strong reason to use Mojo over cython right now, but if Mojo can deliver on their claims, I think there will be. A borrow checker, better IDE support, function overloading support, and better SIMD support are things that stick out to me in Mojos favor.
- coldtea 3y agoAside 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.