News for hackers. Stuff that matters.
Re:CoffeeScript / Node.js - ticksort by zbanks on Tuesday July 05, 2011 @09:48AM (#2729780)
This implementation claims to take SUM(argv) ticks, whereas the original sleepsort took MAX(argv) seconds.

Is this an error, or is something done fundamentally different?

Re:CoffeeScript / Node.js - ticksort by rgabo on Tuesday July 05, 2011 @12:11PM (#2730361)
It takes SUM(argv) as opposed to MAX(argv) as originally stated, which was wrong.

Every argument will put itself back into the event loop (tick) N times until it actually prints the value so we need to SUM the values and not just take the MAX.

Re:CoffeeScript / Node.js - ticksort by strmpnk on Tuesday July 05, 2011 @10:29AM (#2729939)
For those missing the sleep-sort reference: http://dis.4chan.org/read/prog/1295544154
Re:CoffeeScript / Node.js - ticksort by rgabo on Tuesday July 05, 2011 @09:46AM (#2729772)
anyone have an idea on how to get rid of `console.log` in ticksort.coffee?