IOCCC29 winner: Pong game recompiles its own source code every frame, generated by a custom compiler
By
Luke James
Summary
Jonah Uellenberg won the Ping Pong Prize at the 29th International Obfuscated C Code Contest (IOCCC29) with a version of Pong that recompiles its own source code on every frame. Each run prints the C source for the next frame with the game state embedded, so compiling and running that output advances the game by one step. Ironically, Uellenberg didn't write the obfuscated code directly; he created a custom programming language called Insert, wrote clean commented source in it, and used a custom compiler to generate the obfuscated C entry.
Source
Key quotes
· 3 pulledJonah Uellenberg won the Ping Pong Prize at the 29th International Obfuscated C Code Contest earlier this month, with a version of Pong that recompiles its own source code on every frame.
Each run of the program prints the C source for the next frame, with the current display and game state embedded inside it, so compiling and running that output advances the game by a single step.
Somewhat ironically, Uellenberg didn't write the obfuscated code himself; instead writing clean, commented source in a programming language he built called Insert
You might also wanna read
2025 IOCCC: 29th International Obfuscated C Code Contest Winners Announced
The 29th International Obfuscated C Code Contest (IOCCC) for 2025 announces its winning entries. The contest challenges programmers to write
2024 International Obfuscated C Code Contest Winners Announced
The article discusses the 28th International Obfuscated C Code Contest (IOCCC) in 2024, highlighting the winning entries and providing resou
How Compiler Optimizers Recognize Patterns and Simplify Obfuscated Code
The article discusses how modern compilers and optimizers can recognize patterns in code and simplify complex-looking operations into effici
Challenges of Outperforming Interpreters with JIT Compilers on Modern CPUs
The author discusses the challenges of creating a JIT compiler for PostgreSQL that can outperform a well-written interpreter on modern CPUs.
49th ICPC World Finals Results: St. Petersburg State University Wins Programming Championship
The article presents the results and standings from the 49th International Collegiate Programming Contest (ICPC) World Finals held in Baku.
The Mathematical Mystery Hidden in Quake 3's Source Code
The article explores a fascinating mathematical mystery hidden within the source code of the 1999 first-person shooter Quake 3 Arena. It rev

Comments
Sign in to join the conversation.
No comments yet. Be the first.