Duff's Device
Tom Duff

Described as "the most dramatic use of fall-through yet seen in C", Duff's device is a remarkable algorithm that somehow marries two C structures in a surprising and efficient way. The result is both ugly and beautiful; disgusting and elegant.

The purpose of Duff's device is to transform data into an output stream, although it's more commonly used to confuse students and experienced programmers alike.

feature about this project: Duff's Device


Please read this disclaimer before downloading

download here   | report broken link
project homepage: http://www.lysator.liu.se/c/duffs-device.html
keywords: abuse-algorithmic-hackerly-obfuscated-c-
efficient
category: algorithmic appreciation
uploaded by alex, 31 Dec 2003




newcomers, sign up here.

login

email

password

forgot your password?
latest projects
What You Got (J hu$tle's Flying Faders Short Mix)
text2image
Yooouuutuuube
Microcodes
The Oracle of Elsewhere
Dreaming of You
blog.botnik.net
Arteroids
[more]

featured projects
LYCAY (Let Your Code plAY)
Reject Me
Go-Logo
Outsource me!
The Invisible Hand Machine
aPpRoPiRaTe!
Towards a Permanently Temporary Software Art Factory
[more]