Loading...
Loading...
One of the most exciting challenges available to any software developer is that of writing brilliantly working code that’s so obtuse, so indecipherable, and opaque, that even its own author would struggle to grasp its inner workings after returning to it a year later. While for some this is just how they naturally write code, for others it’s part of the International Obfuscated C Coding Challenge (IOCCC), with 2025’s entrants once again showing their mettle.
The IOCCC judges entries among a range of categories, as it can be hard to otherwise quantify what is the ‘best’ entry, with ground rules limiting what the entry can entail. Generally as long as your code adheres to the C11 standard with a source size of 4,993 bytes or less and final binary size of under 2,503, is accompanied by a GNU-style Makefile and doesn’t turn a judge’s computer into a raging inferno — it should qualify.
Among the winning entries we got fun ones like ‘Most likely to shock’ by [Yusuke Endoh] which generates a Lichtenberg figure in ASCII in the terminal. There are also quite practical ones, such as the ‘Best real emulator’ winner by [Nick Craig-Wood], whose entry is a functional Game Boy emulator. Although not full-featured, it can play a range of real GB ROMs, just do not expect to get any sounds or fancy terminal-based graphics.
点击"双栏对照"切换左右对照视图
对任何软件开发者而言,最激动人心的挑战之一,莫过于写出精妙绝伦却晦涩难解、扑朔迷离的代码——其错综复杂到即便是原作者,在一年后重读时也会费解其内在运作机理。虽然对某些人而言,这不过是他们与生俱来的编码风格,但对另一些人来说,这却是国际模糊C代码竞赛(IOCCC)的核心追求。2025年的参赛者们再次以卓越表现证明了他们的实力。
IOCCC按多个类别评审参赛作品,因为若不如此,很难量化评判何谓"最佳"条目。赛事基本规则限制了参赛内容的要求:只要代码遵循C11标准,源码体积不超过4,993字节,最终二进制文件小于2,503字节,附带GNU风格Makefile,且不会将评委电脑烧成火海——通常即可获得参赛资格。
在获奖作品中,我们看到了趣味十足的条目,例如【Yusuke Endoh】创作的"最令人震惊奖"作品,能在终端中用ASCII字符生成利希滕贝格图形。也不乏相当实用的作品,比如【Nick Craig-Wood】荣获"最佳真实模拟器奖"的参赛作品——一个功能完整的Game Boy模拟器。虽然算不上功能齐全,但它能运行众多真实GB游戏ROM,只是别指望能听到音效或看到华丽的终端图形界面。