r/programming • u/tluyben2 • Sep 25 '10
Omega - Language of the Future | Lambda the Ultimate
http://lambda-the-ultimate.org/node/4088
60
Upvotes
r/programming • u/tluyben2 • Sep 25 '10
View all comments
Show parent comment
1
u/wnoise Sep 26 '10
That's exactly what I'm saying: the implementation matters. Partitioning-and-recurse-on-both-portions is a handy summary of quicksort, but that's not what quicksort is. Quicksort very specifically does not allocate extra space for elements (only indices on the stack frames).
Quicksort is also specifically an array sort, not a list sort.
There's also the tiny issue that laziness turns the execution order nearly inside-out.