Lurker News
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/gpio Happy to answer any questions

Comments (265) 74 threads

Show all comments

Showing thread 8 of 74

rkagerer7 replies#
Back when C# came out, I thought for sure someone would make a processor that would natively execute .Net bytecode. Glad to see it finally happened for some language.
jiehong1 reply#
Java got that with smart cards for example. Cute oddities of the past
monocasa#
JavaCard was just implemented as just a regular interpreter last time I checked.
whoomp123423 replies#
I'd be surprised if azure app services didn't do this already.
actionfromafar#
Wouldn't that be a real scoop?
john-h-k1 reply#
I’d be willing to bet my net worth that they don’t
whoomp123421 reply#
then why does azure app services have you pick the .net version?!
john-h-k#
I can't tell if this is joke but will assume not. It's because the .net version is needed for some reason. There are not processors that run .net bytecode, primarily because they would be slower and worse (and again, don't exist)
bongodongobob1 reply#
Azure runs on Linux if I'm not mistaken.
ggiesen1 reply#
Nope.

Continue this thread — 1 reply

varispeed2 replies#
Didn't some phones have hardware Java execution or does my memory fail me?
Sesse__2 replies#
It's called Jazelle.

Continue this thread — 2 replies

f1shy#
Yes. I known at least one Motorola phone which had a co-processor for Java (not Jazelle)
ComputerGuru2 replies#
I want to say there was a product that did this circa 2006-2008 but all I’m finding is the .NET Micro Framework and its modern successor the .NET nano Framework.

I’ve been using .NET since 2001 so maybe I have it confused with something else, but at the same time a lot of the web from that era is just gone, so it’s possible something like this did exist but didn’t gain any traction and is now lost to the ether.

rcorrear#
Maybe you’re thinking of Singularity OS?
duskwuff#
There was Netduino, but that was a STM32 microcontroller running an interpreter, not dedicated hardware which directly executed CLR code.
zahlman1 reply#
In university, for my undergrad thesis, I wanted to do this for a Befunge variant (choosing the character set to simplify instruction decoding). My supervisor insisted on something more practical, though. :(
zahlman#
I probably should have added a link: https://esolangs.org/wiki/Befunge

The main thing that appealed to me about this idea is that it would require a two-dimensional program counter. As I recall from the original specification, skipping through blank space is supposed to take O(1) time, but I didn't plan on implementing that. I did, however, imagine a machine with 256x256 bytes of memory, where some 80x25 (or 24?) region was reserved as directly memory-mapped to a character display (and protected at boot by surrounding it with jump instructions).

john-h-k#
The tl;dr (I spent lots of time investigating this) is that it just fundamentally isn’t a good bytecode for execution. It’s designed to be small on disk, not hardware friendly