Data Structures and Algorithms |
Authors: Brent Hartshorn
Traditional meta-compilation frameworks—most notably PyPy’s RPython—achieve execution speed by translating high-level dynamic languages at the bytecode level into intermediate control-flow graphs for whole-program type inference. While powerful, this approach carries substantial architectural complexity and runtime tracing infrastructure. This paper introduces minipy, a lightweight, high-performance Python interpreter built using an extended variant of RPython. Moving away from traditional bytecode-level translation, minipy employs a novel AST-driven flattening architecture integrated directly into the ShivyCX/py2c compilation pipeline. By emitting direct, statically optimized C components that integrate bare-metal compiler passes—such as register-resident global flag packing, non-recursive static buffer relocation, and tail-call elimination—the resulting interpreter bypasses typical virtual machine overhead. Empirical evaluations show that minipy significantly minimizes execution footprints and outperforms CPython in critical micro-benchmarks.
Comments: 5 Pages. https://github.com/brentharts/ShivyC
Download: PDF
[v1] 2026-06-30 02:36:48
Unique-IP document downloads: 50 times
ai.Vixra.org is a AI assisted e-print repository rather than a journal. Articles hosted may not yet have been verified by peer-review and should be treated as preliminary. In particular, anything that appears to include financial or legal advice or proposed medical treatments should be treated with due caution. ai.Vixra.org will not be responsible for any consequences of actions that result from any form of use of any documents on this website.
Add your own feedback and questions here:
You are equally welcome to be positive or negative about any paper but please be polite. If you are being critical you must mention at least one specific error, otherwise your comment will be deleted as unhelpful.