Compilation with Python?

I am wondering if the modular compiler would also compile the python code to c as well? I am guessing not I am thinking this is useful for producing very small high performance binary programs that work with windows osx and linux, that more or less you can ship with python ?
6 Replies
roboquant
roboquant12mo ago
Mojo directly compiles to native, there is no C intermediate code. Right now there is support for a subset of Python, but things like classes, comprehensions and stdlib are all still missing.
Spiced Crunchy Potatoe
better use dart instead :| <I am wondering if the modular compiler would also compile the python code to c as well? I am guessing not> this lang feel weird ngl sometimes it does sometimes it doesnt it is not ready yet i will say
Cross Product
Cross ProductOP12mo ago
Sorry I meant to native! that's awesome!
Alex Kirchhoff
Alex Kirchhoff12mo ago
All of the Mojo code you write gets compiled to native code and does not require Python. However, if you use the Python interop functionality, the Python code you use does not get compiled down and will continue to use a Python interpreter.
Sarctiann
Sarctiann12mo ago
In the future, Will Mojo implement all Python built-in functions?
Melody Daniel
Melody Daniel12mo ago
If it aims to be a strict superset I imagine so
Want results from more Discord servers?
Add your server