Compilation with Python?
@Cross Product
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 ?
我想知道modular编译器是否也会将 python 代码编译为 c ?
我猜不是
我认为这对于生成与 windows osx 和 linux 一起使用的非常小的高性能二进制程序很有用,或多或少可以与 python 一起发布?

A:
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.
Mojo直接编译为原生,没有C中间代码。
现在已经支持了 Python 的一个子集,但是类、推导式和 stdlib 之类的东西仍然缺失。

13 天 后

为什么不可以一起编译呢?既然是python的超集,一起编译不过分吧?至多加上python原有的一些so文件,是否就OK了?

    xmini 做不到,而且也没啥必要,python只是兼容 不是给python加速。要知道mojo是要自己搞一套体系的。