VOOZH about

URL: https://thenewstack.io/the-obfuscated-c-code-competition-returns/

⇱ The 'Obfuscated C Code' Competition Returns - The New Stack


TNS
SUBSCRIBE
Join our community of software engineering leaders and aspirational developers. Always stay in-the-know by getting the most important news and exclusive content delivered fresh to your inbox to learn more about at-scale software development.
REQUIRED
It seems that you've previously unsubscribed from our newsletter in the past. Click the button below to open the re-subscribe form in a new tab. When you're done, simply close that tab and continue with this form to complete your subscription.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.
Welcome and thank you for joining The New Stack community!
Please answer a few simple questions to help us deliver the news and resources you are interested in.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Great to meet you!
Tell us a bit about your job so we can cover the topics you find most relevant.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Welcome!

We’re so glad you’re here. You can expect all the best TNS content to arrive Monday through Friday to keep you on top of the news and at the top of your game.

What’s next?

Check your inbox for a confirmation email where you can adjust your preferences and even join additional groups.

Follow TNS on your favorite social media networks.

Become a TNS follower on LinkedIn.

Check out the latest featured and trending stories while you wait for your first TNS newsletter.

PREV
1 of 2
NEXT
VOXPOP
As a JavaScript developer, what non-React tools do you use most often?
Angular
0%
Astro
0%
Svelte
0%
Vue.js
0%
Other
0%
I only use React
0%
I don't use JavaScript
0%
Thanks for your opinion! Subscribe below to get the final results, published exclusively in our TNS Update newsletter:
NEW! Try Stackie AI
From clobbered drafts to real-time sync
Apr 14th 2026 10:00am, by David Moore
TypeScript 6.0 RC arrives as a bridge to a faster future
Mar 14th 2026 9:00am, by Darryl K. Taft
Mastra empowers web devs to build AI agents in TypeScript
Jan 28th 2026 11:00am, by Loraine Lawson
2025-01-10 06:00:02
The 'Obfuscated C Code' Competition Returns
Tech Culture

The ‘Obfuscated C Code’ Competition Returns

The International Obfuscated C Code Contest is back and aims to make C code harder to read than ever.
Jan 10th, 2025 6:00am by David Cassel
👁 Featued image for: The ‘Obfuscated C Code’ Competition Returns

After a four-year hiatus, the “International Obfuscated C Code Contest” is making its glorious return in 2025.

The goals of the IOCCC:

  • To write the most obscure/obfuscated C program within the rules.
  • To show the importance of programming style, in an ironic way.
  • To stress C compilers with unusual code.
  • To illustrate some of the subtleties of the C language.
  • To have fun with C!

As the fun ramps up again, the judges will begin accepting wonderful new “obfuscated C” programs starting on January 31 (with their window closing on April 1 — April Fool’s Day). But they’ve also spent the last four years massively updating the contest’s website — so even winning entries archived from the past 40 years now possess “the ability of reasonable modern Unix/Linux systems to be able to compile and even run them.”

An updated FAQ acknowledges that, rather than keeping that code obfuscated, the site “has shifted to a more educational theme.”

Maybe the organizers are finally recognizing their own status as a cultural icon — their ongoing role of inspiring young coders with examples of incredible complexity and creativity, while also bearing witness to their own bits of programming history.

Although, in the true spirit of the competition, sometimes they seem to be making things up as they go along.

👁 Screenshot from Landon Curt Noll's GitHub profile

Screenshot from the GitHub profile of IOCCC co-founder Landon Curt Noll

Where Chocolate Meets Steganography

The playfulness seems to be everywhere — and it ultimately becomes contagious. “Over the years, more than one IOCCC judge has been known to bribe another IOCCC judge into voting for a winning entry by offering a bit of high-quality chocolate,” noted the official guidelines. So one 2012 entry demonstrated its steganography application — hiding source code within an image — by using a photo of some luscious chocolates.

👁 chocolate

Rule 26 of the official rules consists of nothing but nonsense sentences using all 26 letters of the alphabet exactly once. Meanwhile, the contest’s official FAQ offers cheeky answers to questions like why they’re on Mastodon. “The IOCCC no longer uses Twitter, or whatever that someone who appears to have poor impulse control (allegedly) calls their platform these days. The IOCCC prefers to reside in the fediverse.”

And how did the contest start? “It was a dark and stormy night…”

Competing To Be the Worst

The contest began on March 23, 1984, when a 23-year-old Landon Curt Noll was working with Larry Bassel at the National Semiconductor, porting UNIX onto the company’s microcontrollers. Bassel was wrestling with a bug in the Bourne shell, while Noll was working on a version of the finger command from early BSD. Soon they’d announced a contest “to compete with the worst C hackers around,” and the first entries started pouring in.

“When we began to receive messages from outside of the U.S., Larry and I decided to include International in the name,” Noll wrote in the FAQ.

👁 Screenshot of home page for 'Obfuscated C Competition' contributor Oscar Toledo G

Even in that first year, they saw entries from some of the big names in the coding world, including Bell Labs programmer David Korn, creator of the Korn shell (1987), and Perl programming language creator Larry Wall (1986, 1987). It set a high bar that continued as the contest rolled along.

Over the last 40 years, its judges have recognized 197 different winners. And several of them have their own Wikipedia entries:

  • Google DeepMind researcher Nicholas Carlini won 2020’s “Best of Show: abuse of libc” award.
  • In 1989 the “Best of Show” award went to Ora Lassila, known for his early work on the Semantic Web and the RDF specification. Now a long-time member of the W3C advisory board and a principal graph technologist at AWS, Lassila won in 1989 for writing a compressed Lisp interpreter.
  • Other winners have been prominent figures in the C community, including Walter Bright, creator of the D programming language and the Zortech C++ compiler, and Fabrice Bellard, creator of the Tiny C compiler.

There are also several noted CS academics, including David ApplegateLennart AugustssonDaniel J. BernsteinVern PaxsonDiomidis Spinellis, and John Tromp.

And the guidelines even include a special rule directed specifically at Peter Honeyman, a professor emeritus at the University of Michigan:

“Some people, in the past, have attempted to obfuscate their identity by including comments of famous Internet personalities such as Peter Honeyman. The judges are on to this trick and therefore consider any obfuscated source or data file claiming to be from Honeyman to not be from Honeyman.”

The message seems to be that gloriously obfuscated C code should also be anonymous obfuscated C code — at least until the judging is finished. And this led to a funny and remarkable coincidence for one winning entry from 1990. The judges’ remarks grasped that the ANSI C standard now included three-character “trigraphs,” which “has made it easier to make programs hard to read.” So they created a special award for programmer Larry Jones, recognizing him for crafting 46 undulating lines of C code clogged with dozens of the three-character abominations (mostly question marks).

👁 Some code from Larry Jones winning entry in Obfuscated C Code Competition (1990)

After receiving his award for the “ANSI Committee’s worst abuse of C,” Jones contacted the judges with a simple question: “Were you aware that I am a member of the committee?”

The judges assured him it was a coincidence, and Jones added that he was “quite grateful” for the award. Although he “was really hoping for something more along the lines of ‘Closest Resemblance to Line Noise.'”

But mixed in with all the hilarity, the Obfuscated C competition still manages to become almost an accidental yearbook of each generation’s programmers, gathering them together in a display of our own collective history. Also contributing was Mary Ann Horton, a BSD contributor described as “a Usenet and internet pioneer” and an early activist for transgender rights. “To have invented the email attachment is one thing,” Horton said in a 2022 biography. “To have done so while transitioning from male to female and paving the way for Trans rights in the workplace is quite another.”

And somewhere in the mix is George Sicherman, whose claim to fame is creating an alternate numbering scheme for dice in 1978, which still produces the same probability distribution as regular dice.

👁 Screenshot of Sicherman_dice (of Creative Commons image on Wikipedia user Belbury editing original dice by Steaphan Greene)

Through the Ages

It’s all part of the event’s long and storied history. “We suggest that you avoid trying for the ‘smallest self-replicating’ source,” the guidelines warn — since someone has already won with a 0-byte-sized entry.

But other milestones are just as wacky and unpredictable:

  • Programmer Thomas Covell had the code for the contest’s first winner tattooed on his arm.
  • Then there was the time Bill Gates asked contestants in a 1993 trivia competition for the name of the event for creating “the most unreadable, creative, bizarre but working C program.” And one of the contestants answered “Windows.” That year the competition added a commemorative Bill Gates Award.
  • Even the new site’s logo links to a 2011 IOCCC entry, a ray-tracing program whose default output was … the site’s logo. (It won 2011’s “most shiny” award.)

There’s a sense that anything can happen, maybe because the judges really are making things up as they go along. “When the number of submissions thins to about 25 submissions, we begin to form award categories,” explained the official guidelines. So every year the names for the final awards “will vary depending on the types of submissions we receive.”

There’s been some C-specific award categories like “worst abuse of the C preprocessor” and “least likely to compile successfully.” A 2020 entry won an award for “most misleading indentation” for carefully justifying its code to the right margin.

But as the programs got crazier, so did the category names:

  • One 2001 entry won the “best abuse of the user” award. (Its repository page warns that the program “will mess with your mouse” and can also “make it hard to quit the program.”)
  • In 2006 an entry won the newly created “Homer’s favorite” award — for printing out an animated donut.
  • A 2012 entry won the honor of being the “best way to lose a life” for creating an arcade-style video game based on Conway’s “Game of Life”.
  • In 2015 programmer Christopher Mills won the “For the Birds!” award for recreating the mobile game Flappy Bird with customization options for changing physics in the bird’s universe.

Looking Ahead

What keeps it all going? Where do the judges find the passion to keep poring through piles of obfuscated C code — and for four consecutive decades? What gives all of this craziness its purpose?

Search the web long enough and you’ll find a clue on Landon Curt Noll’s personal website. It includes some very old photos from his time as a cryptologist/number theorist at SGI — and an official picture from when Noll was a city council member for Sunnyvale, California.

But it also offers a glimpse at his unique appreciation for the art of algorithms. “I think of mathematics as both an art as well as a science,” Noll writes.

“Some people, when they doodle while talking on the phone, will draw ‘bunny rabbits.’ I like to doodle equations and plots, usually via the Mathematica tool.”

But the return of the contest is almost like a reunion of long-lost relatives — a kind of geek alternate history that continues on into the future.

And 2025’s new crop of winners will be announced in a uniquely geeky way — by a git push from the judges of a new winners’ directory with an announcement on the new @IOCCC Fostodon feed.

TRENDING STORIES
David Cassel is a proud resident of the San Francisco Bay Area, where he's been covering technology news for more than two decades. Over the years his articles have appeared everywhere from CNN, MSNBC, and the Wall Street Journal Interactive...
Read more from David Cassel
SHARE THIS STORY
TRENDING STORIES
SHARE THIS STORY
TRENDING STORIES
TNS DAILY NEWSLETTER Receive a free roundup of the most recent TNS articles in your inbox each day.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.