Static Python is a bytecode compiler that makes use of type annotations to emit type-specialized and type-checked Python bytecode. Used along with the Cinder JIT, it can deliver performance similar to MyPyC or Cython in many cases, while offering a pure-Python developer experience (normal Python syntax, no extra compilation step). Static Python plus Cinder JIT achieves 18x the performance of stock CPython on a typed version of the Richards benchmark. At Instagram we have successfully used Static Python in production to replace all Cython modules in our primary webserver codebase, with no performance regression.
Tohle vypadá jako smysluplná vize, díky!
V současné verzi určitě ne. *) U konkurence se to taky zjevně řeší: https://github.com/mypyc/mypyc/issues/837
*) Není pravda, viz níže
10. 6. 2022, 15:03 editováno autorem komentáře
Ano, ale součástí mypy je mypyc překladač https://github.com/python/mypy/tree/master/mypyc
který má dělat alternativu k Cythonu.