AZHenley/python1024

A Python in 1024 bytes

46

stars

5

commits

C

primary language

Sep 6, 2026

updated

README

python1024

I challenged myself to make a Python interpreter in 1024 bytes of C. It runs Pythony looking code, such as fizzbuzz! See the blog post, Making a Python interpreter in 1024 bytes.

Check the length: wc python1024.c

Compile with gcc (not clang!): gcc-16 -std=gnu89 -w python1024.c

Run it with a Python file: ./a.out < fizzbuzz.py

Contributors

AZHenley

5 commits

AZHenley/python1024

A Python in 1024 bytes

46

stars

5

commits

C

primary language

Sep 6, 2026

updated

README

python1024

I challenged myself to make a Python interpreter in 1024 bytes of C. It runs Pythony looking code, such as fizzbuzz! See the blog post, Making a Python interpreter in 1024 bytes.

Check the length: wc python1024.c

Compile with gcc (not clang!): gcc-16 -std=gnu89 -w python1024.c

Run it with a Python file: ./a.out < fizzbuzz.py

Contributors

AZHenley

5 commits

Languages

C

95.1%

Python

4.9%