Laurence Tratt: Adapting CPython for yk
Not investment advice. Muhabbit scores how much a story may matter, not which way to trade.
Laurence Tratt reported that yk, his system for automatically adding JIT compilers to C interpreters, has been successfully adapted to CPython as ykcpython, delivering meaningful performance gains over both standard CPython 3.15.1 and Python's experimental JIT. On the AWFY benchmark suite, ykcpython ran faster than baseline CPython on 12 of 13 benchmarks and beat the experimental JIT on 8 of 13, with standout results including Mandelbrot at 4.20 seconds versus 11.66 for CPython and 6.94 for the JIT, and Richards at 33.18 seconds versus 54.80 and 40.56. The adaptation took roughly 3-4 days of direct work on ykcpython, preceded by about a week and a half of generic yk bug fixes, and builds on earlier results showing yklua at 2x the speed of the PUC Lua interpreter. The work matters because it tests whether yk's approach scales from small interpreters like Lua to large, widely used runtimes like CPython, a question raised after the yklua results. Tratt cautioned that ykcpython is not yet ready for general use and that broader workloads will likely show smaller gains than the benchmark suite, positioning the results as a proof of feasibility rather than a product milestone.
Muhabbit's AI wrote this summary in its own words from Hacker News's report. It can get details wrong, so check the source.
Named in this story
yk, CPython, Laurence Tratt, ykcpython, PUC Lua