hoodwink.d enhanced

Fri Aug 8

Your right to micro-manage the project: $500 extra.

Fast Boy Cycles

Parallel map

class Array def pmap mapped_array = [] threads = [] 0.upto(size - 1) do |n| threads << Thread.new do mapped_array[n] = yield(at(n)) end end threads.each {|thread| thread.join} mapped_array end end # Trade-off between resource consumption # and speed of execution. # Much faster in some scenarios, # much slower in others. # e.g. def expensive_operation open('http://google.com').read end # Expensive operation 50 times # user system total real # map 50x 0.3400 0.2100 0.5500 ( 17.334429) # pmap 50x 0.3000 0.2500 0.5500 ( 1.200705)
sper•mat•or•rhe•a
[spur-muh-tuh-ree-uh]noun
Involuntary discharge of semen without orgasm.

Body Part Bakery

The Way the Wind Blows

A Hawk and a Hacksaw

Oxygen-boost

Oxygen boost