3 ms·
In Q/KDB: /1 million random floats between 0 and 10 a:1000000?10.0; b:1000000?10.0; c:1000000?10.0; sum each flip (a;prev b;next c) /To do it in parallel s
by gd1 15y ago
In Q/KDB:
/1 million random floats between 0 and 10
a:1000000?10.0;
b:1000000?10.0;
c:1000000?10.0;
sum each flip (a;prev b;next c)
/To do it in parallel
sum peach flip (a;prev b;next c)
Sometimes it is like living in a world where people refuse to use sheet music/clefs/bars and instead they read and write music by listing the notes, their frequencies and how long to play them for. And you can't tell them otherwise. People who recoil at APL because there are a few unusual symbols involved will gladly play a guitar and deal with all sorts of arcane symbols. If we really wanted to do a good job we'd go beyond ASCII.
- gruseom 15y agoHey, stick around and comment more. The HN APL/J/K/Q mafia needs all the help we can get :)