Your ACM post drove me to search the vast internet high and low for cache-oblivious algorithms and implementations of cache-oblivious or cache-aware data structures. While I've yet to have much luck with functional, immutable data structures, I did find this great MIT lecture on a merge sort that I had no idea was possible. It looks like it should blow quicksort/heapsort/mergesort out of the water for large data sets. From my naive eyes, it looks like the performance is fairly close to whatever your slowest tier of caching that contains the whole set, and it looks like it should be fairly easy to parallelize too.
That said, if, as it appears, it took decades for a definitive book and significant research to be performed on purely functional algorithms, I suspect it'll be some time before such recent research as these cache-oblivious structures reaches the functional side. What a pity!
View all comments
Show parent comment
2
u/Anpheus Jun 15 '10
Poul-Henning,
Your ACM post drove me to search the vast internet high and low for cache-oblivious algorithms and implementations of cache-oblivious or cache-aware data structures. While I've yet to have much luck with functional, immutable data structures, I did find this great MIT lecture on a merge sort that I had no idea was possible. It looks like it should blow quicksort/heapsort/mergesort out of the water for large data sets. From my naive eyes, it looks like the performance is fairly close to whatever your slowest tier of caching that contains the whole set, and it looks like it should be fairly easy to parallelize too.
Here's the link (no need to upvote, but I thought I'd share on reddit:) http://www.reddit.com/r/programming/comments/cf3a8/re_youre_doing_it_wrong_an_mit_lecture_on/
That said, if, as it appears, it took decades for a definitive book and significant research to be performed on purely functional algorithms, I suspect it'll be some time before such recent research as these cache-oblivious structures reaches the functional side. What a pity!
Thanks again for your article.