Re:LPython: Novel, Fast, Retargetable Python Compiler
by fgfm on Friday July 28, 2023 @10:24PM
(#36916183)
A new Python high-performance compiler that could compete with Mojo before it even releases.
[ Parent
| on HN ]
Re:LPython: Novel, Fast, Retargetable Python Compiler
by eyegor on Saturday July 29, 2023 @12:51AM
(#36917068)
Mojo is vaporware for now, they still don't support classes. There are many other issues, but good luck finding a meaningful size python codebase with zero classes.
Re:LPython: Novel, Fast, Retargetable Python Compiler
by lozenge on Saturday July 29, 2023 @05:05AM
(#36918335)
Neither does LPython yet, even when it does it seems like LPython is meant as a Numba alternative, not something to run arbitrary Python code.
"LPython is built from the ground up to translate numerical, array-oriented code into simple, readable, and fast code."
Re:LPython: Novel, Fast, Retargetable Python Compiler
by certik on Saturday July 29, 2023 @10:15AM
(#36920536)
Yes, LPython is a strict subset of Python, while Mojo is a strict superset of Python.
Both are valid and consistent approaches with their pros and cons, I listed some of them here: https://fortran-lang.discourse.group/t/fast-ai-mojo-may-be-t....
Re:LPython: Novel, Fast, Retargetable Python Compiler
by ptx on Saturday July 29, 2023 @11:31AM
(#36921229)
> while Mojo is a strict superset of Python
Is it superset if it doesn't implement all of Python? It seems more like a set that has a non-empty intersection with Python.
Re:LPython: Novel, Fast, Retargetable Python Compiler
by certik on Saturday July 29, 2023 @11:49AM
(#36921397)
My understanding from Mojo's plans is that they want to compile all of Python via their compiler (eventually), and then extend Python with extra syntax that will compile to high performance. I think right now they might not compile all of Python yet, so you are right they are neither a subset nor a superset, but once they deliver on their plans, they will become a superset.
Re:LPython: Novel, Fast, Retargetable Python Compiler
by rebcabin001 on Saturday July 29, 2023 @01:42PM
(#36922612)
A particular advantage of subsetting the language is that LPython inherits all the tooling of Python. I use pudb and PyCharm daily to develop LPython code.
Re:LPython: Novel, Fast, Retargetable Python Compiler
by mathisfun123 on Saturday July 29, 2023 @08:14PM
(#36926275)
Who are all these people that so strongly believe in mojo before even having written a single line of it (yes I'm aware you can write "mojo" in their walled-garden). Like they've gotta be paid shills because I can't fathom any other way one could be so confident that it'll trounce everything when it doesn't even exist yet.