News for hackers. Stuff that matters.
Re:I built a hardware processor that runs Python by redox99 on Monday April 28, 2025 @12:14PM (#43823093)
What's the logic behind going for stack based?
Re:I built a hardware processor that runs Python by hwpythonner on Monday April 28, 2025 @01:02PM (#43823590)
Python’s execution model is already very stack-oriented — CPython bytecode operates by pushing and popping values almost constantly. Building PyXL as a stack machine made it much more natural to map Python semantics directly onto hardware, without forcing an unnatural register-based structure on it. It also avoids a lot of register allocation overhead (renaming and such).
Re:I built a hardware processor that runs Python by bhasi on Monday April 28, 2025 @01:36PM (#43823944)
What other models are there? Would love to learn about them.
Re:I built a hardware processor that runs Python by redox99 on Monday April 28, 2025 @04:00PM (#43825449)
Your typical PC is register based.