|
|
|
|
|
by SilasX
4162 days ago
|
|
I'm not disputing the scaling properties of the Haskell one-liner, but it doesn't give you the benefits of the true QuickSort as your comment suggests, e.g. it doesn't guarantee in-place sorting or efficient use of when access be locked. The point is, I find it questionable to praise Haskell for how you can implement a one-line QuickSort that isn't really a QuickSort. |
|
Haskell says nothing about how lists are implemented, so with respect to "true"ness (I'm not really sure what this means), we can cannot generalize. A sufficiently optimized Haskell compiler implemented in silicon would have the liberty of using the memory in-place.