Settings

Theme

Python VM in Assembly (contributor is Claude)

github.com

5 points by tzot 21 days ago · 5 comments

Reader

theamk 21 days ago

I wonder what performance of that thing is.

From one side, large hand-written assembly programs don't usually have much optimizations - neither compiler-induced micro-optimizations, nor LTO optimization, nor high-level optimizations from complex algorithms. So normally, I'd expect large hand-written assembly to be slower.

From the other side, despite having lots of code, most of the time is spent in the main loop, so maybe that part is optimized tightly? It does not seem to be super tight at the first sight, but I did not look too closely..

Would be very interesting to see benchmark of this vs regular CPython vs pypy.

jonjacky 21 days ago

Previously, six days ago: https://news.ycombinator.com/item?id=47102764

chabes 21 days ago

Ah, Jeff Garzik… the guy famous for the off-by-one error when they tried to fork bitcoin

tzotOP 21 days ago

An implementation from zero of a Python 3.12 VM using x86-64 assembly.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection