News for hackers. Stuff that matters.
Re:Beating Decades of Optimized C with 80 Lines of Haskell by tluyben2 on Thursday October 31, 2019 @10:43AM (#21409349)
Here is one without the bug;

b:#a;c:,/a=/:" ";(b;b++/c@&~c&=':c;b+#,/a)

Now to see if I can check the performance.

Re:Beating Decades of Optimized C with 80 Lines of Haskell by yiyus on Thursday October 31, 2019 @04:35PM (#21413454)
We discussed this at length in the shakti mailing list [1]. This version by chrispsn is my favorite:

    {+/["\n"=x],+/[<':~x in "\n\r\t "],#x}
I think it's the one that more clearly express the intent. However, this other one by Attila Vrabecz performs better in the current version:

    {(+/x in"\n\n";+/0>':x in" \n\t\r";#x)}@1:"big.txt"
[1] https://groups.google.com/forum/?utm_medium=email&utm_source...
Re:Beating Decades of Optimized C with 80 Lines of Haskell by tluyben2 on Thursday October 31, 2019 @04:39PM (#21413485)
Nice, thanks for that!