News for hackers. Stuff that matters.
Re:Mojo is a much better “Objective-C without the C” than Sw... by MatthiasPortzel on Monday June 12, 2023 @09:22AM (#36292992)
> 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.

Re:Mojo is a much better “Objective-C without the C” than Sw... by celeritascelery on Monday June 12, 2023 @10:19AM (#36293868)
It’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.
Re:Mojo is a much better “Objective-C without the C” than Sw... by pca006132 on Monday June 12, 2023 @11:41AM (#36295372)
I 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.