Good ideas and conversation. No ads, no tracking. Login or Take a Tour!
Lifted from Hacker News this morning.
It's old, 2011.
#!/bin/bash
function f() {
sleep "$1"
echo "$1"
}
while [ -n "$1" ]
do
f "$1" &
shift
done
wait
This is sort of like a simple bucket/radix sort but instead of using a space-based array, it's effectivly using a time-based "array" Yep. I wonder if you could generalise this to use time for any calculation, similar to how functional programming uses the stack for computation. A time-based language would be interesting. Useless, but interesting.22 Name: Anonymous 2011-01-20 17:12