Posts Tagged ‘erlang’

erlang profiling

Wednesday, April 22nd, 2009

i just found fprof, the erlang profiler by randoming clicking around the erlang man page list

try

fprof:apply(Module, Function, Args).
fprof:profile().
fprof:analyse().

for an interesting breakdown of a call

the median of a trillion numbers

Saturday, November 15th, 2008

i got asked in an interview once “how would find the median of a trillion numbers across a thousand machines?”

the question has haunted me, until now.

here’s my ruby and erlang implementation with a bit of running amazon ec2 thrown in for good measure….. matpalm.com/median/

grab the code from github