MHN

Show HN: I built a hardware processor that runs Python

983 points by hwpythonner·581 days ago·runpyxl.com·Show in HN

Hi everyone,
I built PyXL — a hardware processor that executes a custom assembly generated from Python programs, without using a traditional interpreter or virtual machine. It compiles Python -> CPython Bytecode -> Instruction set designed for direct hardware execution.

I’m sharing an early benchmark: a GPIO test where PyXL achieves a 480ns round-trip toggle — compared to 14-25 micro seconds on a MicroPython Pyboard - even though PyXL runs at a lower clock (100MHz vs. 168MHz).

The design is stack-based, fully pipelined, and preserves Python's dynamic typing without static type restrictions.
I independently developed the full stack — toolchain (compiler, linker, codegen), and hardware — to validate the core idea. Full technical details will be presented at PyCon 2025.

Demo and explanation here: https://runpyxl.com/gpioHappy to answer any questions

Add a comment on Hacker News →
3 of 265 comments
  1. This is a very cool project but I feel like the claim is overstated: "PyXL is a custom hardware processor that executes Python directly — no interpreter, no JIT, and no tricks. It takes regular Python code and runs it in silicon."

    Reading further down the page it says you have to compile the python code using CPython, then generate binary code for its custom ISA. That's neat, but it doesn't "execute python directly" - it runs compiled binaries just like any other CPU. You'd use the same process to compile for x86, for example. It certainly doesn't "take regular python code and run it in silicon" as claimed.

    A more realistic claim would be "A processor with a custom architecture designed to support python".

    1. Which is what nuitka does. But the result doesn't allow for real time python programs, andy
      you don't get direct access to the hardware like here.

    2. Fair point if you're looking at it through a strict compiler-theory lens, but just to clarify—when I say "runs Python directly," I mean there is no virtual machine or interpreter loop involved. The processor executes logic derived from Python ByteCode instructions.

      What gets executed is a direct mapping of Python semantics to hardware. In that sense, this is more “direct” than most systems running Python.

      This phrasing is about conveying the architectural distinction: Python logic executed natively in hardware, not interpreted in software.