nedbat/byterun
View on GitHub ↗ ★ 1,366 Python
A Python implementation of a Python bytecode runner
7 mentions on Hacker News by 7 people: 1 story, 6 comments · first 2014-01-11 · latest 2026-04-17
20082026
-
See also https://github.com/nedbat/byterun and https://github.com/rocky/x-python
comment by tekknolagi · 2026-04-17 · in A Python Interpreter Written in Python -
…For comparison, there is a pure Python bytecode interpreter, its VM is here: https://github.com/nedbat/byterun/blob/master/byterun/pyvm2.... It's 1043 lines.
comment by jonjacky · 2025-09-04 · in Writing a C compiler in 500 lines of Python (2023) -
What an excellent 500 lines introduction to the byterun bytecode interpreter / virtual machine: https://github.com/nedbat/byterun Also, proceeds from optional purchases of the AOSA books go to Amnesty International. https://aosabook.org/
comment by westurner · 2019-09-21 · in A Python Interpreter Written in Python -
…JIT can probably speed it up, but still needs deoptimization checks in case types change.) [1] see https://github.com/nedbat/byterun for a Python implementation
comment by yorwba · 2018-12-07 · in PyTorch 1.0 is out -
Meta? You want meta? Try byterun [1], a full Python bytecode executor written in Python... [1] https://github.com/nedbat/byterun
comment by fernly · 2016-01-04 · in Python-like programming language interpreter written in Python -
As of 2 months ago Ned doesn't follow his own advice: https://github.com/nedbat/byterun/blob/master/byterun/execfi...
comment by cgrubb · 2014-01-11 · in Comments should be sentences