Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Show HN: st – simple statistics from the command line. Parent comment
function mean() { octave -q --eval "mean = mean(load('$1'))" }
I am sure your approach is much quicker, octave takes a good 0.5s(!) to load on my machine.
Regarding speed, for simple calculations like sum, mean and variance, the bottleneck is in I/O.
I am sure your approach is much quicker, octave takes a good 0.5s(!) to load on my machine.