Hacker News new | ask | show | jobs
by klyrs 1120 days ago
You've never heard of quantum bogosort, then. It's stable and linear time in the right universe, and much more elegant than sleeping.
1 comments

¿Por qué no los dos?

Due to the inherent unpredictability and lack of scheduling guarantees of sleep on most OSes, it is likely that sleepsort won't work in the first try.

Append a check for order and a retry loop when the solution is incorrect and now you have a production-ready sort. A sleepbogosort

I declare this my new favorite sorting algorithm.

Also, where is your god now?

> where is your god now?

In a happier timeline, I hope.