24 points · by hailxenu · 17y ago · 5 comments
I remember a puzzle in an old demoscene document: Assuming EAX contains all zeros except for a byte value in AL, what is the shortest number of instructions needed to copy AL's value to the other three bytes in EAX?
The puzzle was hard not because the task was particularly difficult but because the audience had spent so long optimizing assembly for speed that the hopelessly inefficient one-instruction answer would not occur to them.
( Source: http://download.intel.com/design/processor/manuals/248966.pd... )
I just read a code analysis for one of Rob Hubbard's music routines, and that was pretty interesting. The size of software back then is mind-blowing today. And what's interesting is that I couldn't even use a very high level language (like Ruby or Perl or Python) to write a music player, plus the music, in the same number of lines, without resorting to loading libraries that are comparatively very large. The move away from specialized chips to very powerful generic processors has interesting repercussions.
I guess a lot of kids of the 80's are reaching the point where they get to feeling nostalgic, because I've seen a lot of 8-bit retro related activities of late. Chiptunes are bigger than ever (_why just released a chiptune library, for instance), someone just made a Haskell library for writing BASIC programs, and pixel art is also showing up everywhere. Weird how that happens. I guess the 70s and 80s had their 50s and 60s flashback with Happy Days and such, so it shouldn't be surprising that our generation is doing the same.