(no title)
Scuds | 8 months ago
For what it's worth, here's quicksort in 5 lines of haskell https://stackoverflow.com/questions/7717691/why-is-the-minim...
Scuds | 8 months ago
For what it's worth, here's quicksort in 5 lines of haskell https://stackoverflow.com/questions/7717691/why-is-the-minim...
kragen|8 months ago
How long would a quicksort (say, of integers) be in 68000 assembly? Maybe 20 lines? My 68000 isn't very good. The real advantage of writing it in Haskell is that it's automatically applicable to anything that's Ord, that is, ordered.
duskwuff|8 months ago
About 70 lines, once you strip out the comments and blank lines.
https://github.com/historicalsource/supermario/blob/9dd3c4be...
qsort|8 months ago
That's the problem with comparing lines of code: you're comparing apples and oranges. In this case you aren't even solving the same problem.
sreekotay|8 months ago
Lol - ok that's genuinely funny :). slow clap
meepmorp|8 months ago
QuickDraw was a graphics library, not a sorting algorithm
flohofwoe|8 months ago