4 ms·
Given that the OP is the github project owner, are you aware of https://chocopy.org/ https://chocopy.org/ ? You might want to also look at Shedskin, https://gi
by sitkack 6y ago
Given that the OP is the github project owner, are you aware of https://chocopy.org/ https://chocopy.org/ ?
You might want to also look at Shedskin, https://github.com/shedskin/shedskin https://github.com/shedskin/shedskin which converts implicitly typed Python programs to C++
- sitkack 6y agoPrevious discussion of ChocoPy is here, https://news.ycombinator.com/item?id=20957420 https://news.ycombinator.com/item?id=20957420
- eerimoq 6y agoNo, I am not aware of ChocoPy. Thanks for letting me know. Shedskin uses the Python interpreter if I remember correctly. I aim not to.
- sitkack 6y agoIt can make both standalone executables as well as extension modules that can be loaded into cpython2.7
- viraptor 6y agoAnd at mypyc https://github.com/python/mypy/tree/master/mypyc https://github.com/python/mypy/tree/master/mypyc
- eerimoq 6y agoThis looks promising indeed. Thanks for sharing.
- nerdponx 6y agoFor the sake of completeness, might as well mention Nuitka [1] (another Python -> C compiler), Cython (Python-like language that compiles to C), and Numba (LLVM-based JIT compiler for a limited subset of Python). [1]: http://nuitka.net/ http://nuitka.net/ [2]: https://cython.org/ https://cython.org/ [3]: https://numba.pydata.org/ https://numba.pydata.org/
- t-vi 6y agoIn the special purpose for computation (like Numba) department, but more general: TorchScript from PyTorch https://pytorch.org/docs/stable/jit_language_reference.html#torchscript-language-reference https://pytorch.org/docs/stable/jit_language_reference.html#... It doesn't compile to C but to an IR, but some ideas around typing might be similar.