4 ms·
Surprised there is no comparison to MyPyC. That said the availability of a "JIT" compiler in the style of Numba but with much broader Python feature support sou
by sirwhinesalot 4y ago
Surprised there is no comparison to MyPyC. That said the availability of a "JIT" compiler in the style of Numba but with much broader Python feature support sounds great to me.
- tekknolagi 4y agoYou might enjoy Cinder then. It's based on CPython so it is nearly 100% compatible. https://github.com/facebookincubator/cinder/ https://github.com/facebookincubator/cinder/ Disclaimer: I used to work on it.
- adammarples 4y agoI took their fib example and ran it in mypyc too out of curiosity. I got speedups of ~10x rather than codon's 100x. Still pretty good, I like mypyc.
- sirwhinesalot 4y agomypyc keeps Python's "BigIntegers", unicode string implementation, reference counting, and has little to no floating point-related optimizations yet. It prioritizes compatibility over overall performance, so I'm not surprised. I was also disappointed at how poor mypyc is at compiling across multiple files, but that they can fix at some point. The BigInteger "issue" pretty much makes something like Fibonacci a worst case scenario for it.
- ptx 4y agoLooks like they added support for unboxed floats yesterday (not sure about integers): https://github.com/python/mypy/commit/d05974b9b099ec755fd1c689a7d2c7150ea313af https://github.com/python/mypy/commit/d05974b9b099ec755fd1c6...