mypyc/mypyc
View on GitHub ↗ ★ 2,026
Compile type annotated Python to fast C extensions
29 mentions on Hacker News by 27 people: 4 stories, 25 comments · first 2018-10-18 · latest 2026-10-28
20082026
-
…if you think about it! 95.61% reduction in time 2180.15% increase in performance 22.80x faster [1] https://github.com/mypyc/mypyc
comment by stefanos82 · 2026-10-28 · in Python's experimental JIT to be removed -
so it is what https://github.com/mypyc/mypyc was supposed to be ... i can just use write my python code add some type hints and it should run faster ... like cython but without learning a new dsl?
comment by delijati · 2026-06-25 · in Show HN: Nimic – Pure Python as a systems language with AOT compilation -
…[1], which seems to complete the circle somehow in my mind. [0] https://www.mypy-lang.org/ [1] https://github.com/mypyc/mypyc
comment by tpoacher · 2026-03-08 · in Warn about PyPy being unmaintained -
…beartype, trycast; mypyc ] mypyc/mypyc: Compile type annotated Python to fast C extensions https://github.com/mypyc/mypyc src: https://github.com/python/mypy/tree/master/mypyc .. docs: https://mypyc.readthedocs.io/en/latest/ : mypyc docs >…
comment by westurner · 2026-01-09 · in Why AI is pushing developers toward typed languages -
…interpreter too). The other option is mypyc, though again that seems to mostly speed up runtime https://github.com/mypyc/mypyc Now if I use `python -S` (disables `import site` on initialization), that gets down to ~15ms execution time for…
comment by kortex · 2025-12-12 · in Python Workers redux: fast cold starts, packages, and a uv-first workflow -
You're in luck! https://github.com/mypyc/mypyc
comment by alias301 · 2025-01-29 · in "We're building a new static type checker for Python" -
( https://github.com/mypyc/mypyc ) That's cool! > Mypyc compiles Python modules to C extensions. It uses standard Python type hints to generate fast code. Mypyc uses mypy to perform type checking and type inference. > > Mypyc can compile…
comment by olejorgenb · 2024-09-07 · in Achieving high Python performance with code generation (2022) -
s/will never be/already is/g https://github.com/mypyc/mypyc You can compile python to c. Right now. Compatibility with extensions still needs a bit of work. But you can write extremely strict python. That's without getting into things like…
comment by kortex · 2024-07-13 · in Free-threaded CPython is ready to experiment with -
…extension). Wanted to give you a head-start on the lit-review for your students I guess :) [0] https://github.com/mypyc/mypyc
comment by davidatbu · 2023-05-22 · in Writing Python like it's Rust -
…using mypyc to compile mypy since 2019, giving it a 4x performance boost over regular Python.” [0] https://github.com/mypyc/mypyc
comment by dragonwriter · 2023-05-08 · in Codon: Python Compiler -
mypyc does that: https://github.com/mypyc/mypyc > Mypyc compiles Python modules to C extensions. It uses standard Python type hints to generate fast code. Mypyc uses mypy to perform type checking and type inference. > Mypyc can compile…
comment by dalf · 2023-04-16 · in The different uses of Python type hints -
…reading the C++wg release notes in the same mood that you would the python release notes. [1] https://github.com/mypyc/mypyc
comment by omershapira · 2023-01-27 · in The Python Paradox (2004) -
…tracker lives in this repository! Please don't file mypyc issues in the mypy issue tracker. See https://github.com/mypyc/mypyc/blob/master/show_me_the_code....
comment by okso · 2022-12-08 · in Codon: A high-performance Python-like compiler using LLVM -
What's the difference with mypyc [0] ? It also compiles Python to native code. [0]: https://github.com/mypyc/mypyc
comment by maxloh · 2022-12-08 · in Codon: A high-performance Python-like compiler using LLVM -
https://github.com/mypyc/mypyc > Mypyc compiles Python modules to C extensions. It uses standard Python type hints to generate fast code. Mypyc uses mypy to perform type checking and type inference.
comment by staticassertion · 2022-07-06 · in Python 3.11 vs 3.10 performance -
…boost over regular Python. Does anyone know how mypyc and Nuitka compare in practice? [0]: https://github.com/mypyc/mypyc
comment by codethief · 2021-06-17 · in Nuitka: a Python compiler written in Python -
▲ 4
mypyc – Compile type annotated Python to fast C extensionsstory by WoodenChair · 2021-03-19 · 0 comments
-
…info, mypyc is “not really” ready for broader use yet. The devs are planning a soft-launch: https://github.com/mypyc/mypyc/issues/780 It is quite promising though, if it becomes more robust and compatible. I also believe they have still…
comment by syastrov · 2021-02-23 · in Mypyc: Compile type-annotated Python to C -
…issue that mentions targeting LLVM or other targets https://github.com/python/mypy/issues/8373 https://github.com/mypyc/mypyc/issues/709
comment by m_ke · 2020-02-09 · in Wrestling Python into LLVM Intermediate Representation (2019) [video] -
…to, since it's the best option so far. Though, now that another commenter pointed out mypyc: https://github.com/mypyc/mypyc I believe I'll invest my limited free-time in that project instead, as it will allow me to stay within the Python…
comment by timothycrosley · 2019-10-21 · in Python at Scale: Strict Modules -
…your typed program into a lower-level target language and compile it into a native binary. See https://github.com/mypyc/mypyc and https://github.com/cython/cython/wiki/Python-Typing-Proposal
comment by ghostwriter · 2019-04-19 · in Types will be part of Ruby 3 stdlib source -
…which I think is very interesting too. [0]: https://github.com/python/mypy/graphs/contributors [1]: https://github.com/mypyc/mypyc
comment by Rotareti · 2019-03-24 · in On Learning Rust and Go: Migrating Away from Python -
It's already being done: https://github.com/mypyc/mypyc
comment by catern · 2019-03-24 · in On Learning Rust and Go: Migrating Away from Python -
No, but there's also mypyc if you're interested in that area: https://github.com/mypyc/mypyc
comment by viraptor · 2019-01-27 · in Outperforming everything with anything: Python? Sure, why not? -
…problem with GIL. Mypy team currently works on compiler based on static type annotation: https://github.com/mypyc/mypyc I think they could gain much more performance than Pypy.
comment by h8hawk · 2019-01-23 · in Julia Language Co-Creators Win James H. Wilkinson Prize for Numerical Software -
▲ 2
Mypyc: Mypy to Python C Extension Compilerstory by pddubs · 2019-01-17 · 0 comments
-
▲ 2
Dropbox Compiler from type annotated Python to C extensionsstory by bratao · 2019-01-07 · 0 comments
-
…code: https://cython.readthedocs.io/en/latest/src/tutorial/pure.ht... mypyc is another approach: https://github.com/mypyc/mypyc Nutika wants to utilize Python type annotations as well: https://github.com/Nuitka/Nuitka I guess there are…
comment by Rotareti · 2018-12-12 · in Type hints cheat sheet (Python 3) -
▲ 4
Compiler from type annotated Python to C extensionsstory by anreekoh · 2018-10-18 · 0 comments