News for hackers. Stuff that matters.
Re:Real pixel coding (2011) by tehwalrus on Tuesday March 05, 2013 @05:13AM (#5323774)
final vid needs Doctor Who music! hmm... I wonder how simple a MIDI file you could make to play something like that tune... and what that would look like as a RAW bitmap...
Re:Real pixel coding (2011) by dave1010uk on Tuesday March 05, 2013 @08:17AM (#5324270)
You can generate music with algorithms too. I came across this a while ago:

    echo "main(i){for(i=0;;i++)putchar(((i*(i>>8|i>>9)&46&i>>8))^(i&i>>13|i>>6));}" | gcc -x c - && ./a.out | aplay
The generated a.out is 8.5kB for me though.
Re:Real pixel coding (2011) by leephillips on Tuesday March 05, 2013 @09:22AM (#5324581)
That sounds better than most of the pop music out there. Amusing demonstration of ... something!
Re:Real pixel coding (2011) by zxcdw on Tuesday March 05, 2013 @10:52AM (#5325147)
Demonstration of using very few bytes of data to generate art. The same snippet of code can (very probably) be written as a < 128 byte ELF binary on Linux.
Re:Real pixel coding (2011) by algorias on Tuesday March 05, 2013 @10:27AM (#5324943)
Of course, it gets linked in the standard way. A program with an empty main takes up about the same space. The point is that this snippet could be compiled very compactly with the right tools.
Re:Real pixel coding (2011) by tehwalrus on Tuesday March 05, 2013 @10:41AM (#5325061)
dude, that is awesome!

(although, I will now spend a good few hours working out how on earth you get the 16 bar repeats, with variations, and indeed the kick, from some crazy bitshift magic.)