Apr 2 2009

The worlds worst sorting routine

Christoph

// Ok, here we go, the holy grail of programmers,
// a sorting routine!! Why have I chosen the worlds
// worst sorting routine? Its easy and fast enough….
// THE BUBBLE SORT (OH NO!!!!)

Source: Direct link to the source code
Software: Lazy Eight Data HB
Programming language: Java

1 Star2 Stars3 Stars4 Stars5 Stars (6 Bewertungen, Durchschnitt: 4,50 von 5)
Loading ... Loading ...

Apr 1 2009

Music kept breaking up

Christoph

/*
Originally this was a hacked version of shout.
Then, I wrote it in perl, the music kept breaking up on pauses
Then, I wrote it in C, the music kept breaking up on pauses
Then, I wrote another one in C using shared memory between two processes.
It worked.
Then, I discovered what happens when you run out of shared memory keys
Then, I ran fsck and pressed ‘y’ lots.
Shit.
Started again in C, same idea.
Shared memory became unwieldy.
This is a rewrite from scratch using pipes between processes.
I am pissed off.
*/

Source: Direct link to the source code
Software: MuSE – Multiple Streaming Engine
Programming language: C

1 Star2 Stars3 Stars4 Stars5 Stars (4 Bewertungen, Durchschnitt: 4,75 von 5)
Loading ... Loading ...