3 ms·
> Mojo seems to have a strategy similar to Rust, which requires user annotation Except that it also claims to be a superset of Python. That is, you can use it
by MatthiasPortzel 3y ago
> Mojo seems to have a strategy similar to Rust, which requires user annotation
Except that it also claims to be a superset of Python. That is, you can use it to run any Python program without changes. So explain to me how it’s faster than C while also literally being Python. That’s more outrageous than V.
- celeritascelery 3y agoIt’s a superset. You can run regular python, and that won’t be faster than C. But you can also write mojo functions (using “fn” instead of “def”) and those have stricter requirements and more user annotations but also more optimization potential. Mojo function could be faster than C, buts it’s not free.
- pca006132 3y agoI guess it is what the other comment mentioned: > what they've actually got at the moment is two languages glued together, where one of the languages will "unlock performance" and the other language is literally the CPython interpreter.