People out here sleepin' on mypyc.

http://mypyc.readthedocs.io/

#Python #mypy #mypyc

mypyc 1.5.0+dev.cab8c674ebef944498ae4e9a89cd9c77316656ec.dirty documentation

@maxamillion interesting. What is a C "extension" ? (Internet searches just turn up a bunch of pages about file extensions.) Is that a compiled ready to run C program?

@maphew it's not really a standalone binary written in C ready to execute so much as it allows you to write python modules that compile down to C for performance without having to actually write C such as in this documentation.

https://docs.python.org/3/extending/extending.html

This is common practice for when you have a specific hotspot in your python code that needs to be performant beyond what the CPython interpreter offers. You get all the convenience of python but performance of C when needed.

1. Extending Python with C or C++

It is quite easy to add new built-in modules to Python, if you know how to program in C. Such extension modules can do two things that can’t be done directly in Python: they can implement new built...

Python documentation
@maxamillion Well, it *is* in alpha status. I tried it for a bit on a game of life implementation I made, the code ran about as fast as with PyPy, but it also crashed if I tried to use the __name__ variable.
So it's definitely promising and I'd especially love to see desktop apps written in Python making use of it, but it definitely needs some work before it's widely deployed.