國際C語言混亂代碼大賽(IOCCC, The International Obfuscated C Code Contest)是一項著名的國際編程賽事,從1984年開始到2006年,每年舉辦一次。2006年后中止了多年,2011年又開始恢復。比賽的目的是寫出最有創意的最讓人難以理解的C語言代碼,當然有好玩的成分,但也能充分展示C語言和程序員的強大。
下圖是上屆(第二十屆)Best of Show(最佳秀場)獎得主的代碼,驚艷一時!不過其作者,Google的華裔工程師Don Hsi-Yun Yang并未入圍本屆IOCCC,或許只是未參賽吧。
上屆Best of Show獎作品,點擊查看大圖
不過他最近還是出了一個新作品,一個二進制到加密文本的過濾器(Binary to encrypted text filter):
上屆同樣來自中國的Hou Qiming的計算器獲得最佳自注釋獎,這次依然憑借語法高亮工具獲得了最有用混亂獎。
以下是完整獲獎名單:
最有用混亂獎(Most useful obfuscation)
- Hou Qiming(CN) - Syntax heighlighter
最大陰謀獎(Most conspiratorial)
- Aaron Grothe(US) - Shamir secret sharing
- David Madore(FR) - Shamir secret sharing
最佳單行獎(Best one liner)
- Taketo Konno(JP) - Linear cellular automaton 1-liner
最隱秘獎(Most surreptitious)
- Don Yang(US) - Encodes text as a C program
最佳短程序(Best short program)
- Seonghoon Kang(KR) - Decodes spelled out numbers
最佳死亡方式(Best way to lose a life)
- David Lowe(US) - Conway's game of death
最引人注目以及最佳工具獎(Most notable and best tool)
- Alex Deckmyn(BE) - Music notation printer
天上掉餡餅獎(PiE in the sky award)
- Yusuke Endoh(JP) - Pi/e quine
最佳GIF動畫表現獎(Most GIFted expressions)
- Philip Blakely(GB) - Animated GIFs of surfaces
最強大功能獎(Most functional)
- John Tromp(US) - Lambda interpreter
最復雜ASC II流 - 榮譽獎(Most complex ASCII fluid - Honorable mention)
- Yusuke Endoh(JP) - ASCII fluid dynamics
cocoa最佳應用 - 銅牌(Best use of cocoa - Bronze award)
- Daniel Vik(US) - Steganography
最基礎C語言應用 - 銀獎(Most elementary use of C - Silver award)
- Tsukasa Hamano(JP) - PDF with little dancing men
平衡使用混亂?- 金獎(Balanced use of obfuscation - Gold award)
- Adar Zeitak(IL) - Brace matcher
第二十一屆IOCCC頒獎地址在此。