Skip to content

Comment on LPython: Novel, Fast, Retargetable Python Compilerparent

Comments

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."

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....

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.

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.

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.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.