Pong game recompiles its own source code every frame — winning entry at IOCCC29 was generated by a custom compiler

Pong game that recompiles itself every frame wins the IOCCC29 obfuscated C contest
(Image credit: @timClicks via X.com)

Jonah 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, whose compiler generated the scrambled C that took the award.

Latest Videos FromTom's Hardware
Luke James
Contributor

Luke James is a freelance writer and journalist.  Although his background is in legal, he has a personal interest in all things tech, especially hardware and microelectronics, and anything regulatory. 

  • hwertz
    geez that's gnarly. I wonder how good the fps is? I guess compilers can run reasonably quickly on what is after all 1 screenful of code. Congrats in winning IOCCC!
    Reply