All Topics
All Topics
Technology
Technology
AI
AI
Business
Business
Entertainment
Entertainment
News
News
Programming
Programming
Science
Science
Design
Design
Environment
Environment
Finance
Finance
Crypto
Crypto
Politics
Politics
Sports
Sports
Education
Education
Gaming
Gaming
Art
Art
Music
Music
Health
Health
Security
Security
Books
Books
Food
Food
Travel
Travel
Personal
Personal
Bluesky
Twitter

IOCCC29 winner: Pong game recompiles its own source code every frame, generated by a custom compiler

By

Luke James

8d ago· 4 min readenNews

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

bskyIOCCC29 winner: Pong game recompiles its own source code every frame, generated by a custom compilertomshardware.com

Key quotes

· 3 pulled
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
Snippet from the RSS feed
The IOCCC29 winner writes each frame as fresh C source, compiles it, then runs it.

You might also wanna read

Comments

Sign in to join the conversation.

No comments yet. Be the first.