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
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.
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
Sorry I meant to native! that's awesome!
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.
In the future, Will Mojo implement all Python built-in functions?
If it aims to be a strict superset I imagine so