News for hackers. Stuff that matters.
Re:Sort an array using only one local variable by mwsherman on Saturday April 23, 2016 @06:15PM (#11557657)
Cute. Could this be implemented as a compiler optimization for saving allocations?
Re:Sort an array using only one local variable by prmichaelsen on Saturday April 23, 2016 @09:25PM (#11558180)
I agree that it is cute! Unfortunately, it does not seem to have much of a practical use. If you're very curious, a professor at my school suggests testing out "how much memory is saved for compiler optimizations (like -O2 or -O3) for normal sorts vs this sort." You might be able to answer your question this way.

Thank you again, for reading! Cheers!