Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
yiyus
on Oct 31, 2019
|
parent
|
context
|
favorite
| on:
Beating Decades of Optimized C with 80 Lines of Ha...
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...
tluyben2
on Oct 31, 2019
[–]
Nice, thanks for that!
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: