top | item 47102764

"apython": Accelerated asm Python 3.12

5 points| jgarzik | 9 days ago |github.com

3 comments

order

jonjacky|7 days ago

Interesting project, so I'll comment.

Have you benchmarked it against CPython? apython is still a bytecode interpreter, like CPython. And, CPython is compiled to machine code, as apython is assembled to machine code. So we wouldn't expect a huge speedup.

A skilled assembly language programmer might be able to write faster code than the C compiler can make from CPython. Is that you? I see the code was written with Claude - does Claude write faster assembly code than the C compiler? Or did you tune the assembly code by hand, or somehow train Claude to write fast code for this application?

jonjacky|7 days ago

How did you use Claude? How much guidance did you give it? Did you just write CLAUDE.md and stand back, Claude did all the rest? Or did you write some assembly language samples - like object.inc etc. - to get it pointed in the direction you wanted it to go? Did you review and revise the code that Claude wrote?

How long did the project take? Hours? Months?

jgarzik|9 days ago

Rough draft for comment - passes core cpython 3.12 tests with an inspired design.