« first day (268 days earlier)      last day (1267 days later) » 

ngn
3:06 AM
@chrispsn i've no idea, to be honest. i just tried a few different ways to rewrite it and i timed them.
@rcabaco just in case you haven't encountered it before - <': means "is each element less than the previous one?"
x<y for booleans is the same as (~x)&y
 
ngn
3:30 AM
@chrispsn my messages above were a bit chaotic, so i'd like to say this again clearly: according to my experiments, the fastest version is /usr/bin/wc when run with ngn/k
k7 has too much overhead for spawning external processes (i'm sure they are watching us and that will change in the future)
 
 
4 hours later…
7:51 AM
@ngn yes, thank you.
 
 
1 hour later…
9:02 AM
@chrispsn can you solve the 1st part of aoc without a lambda? assume input vector is x.
 
 
1 hour later…
10:25 AM
What do you mean without a lambda? My answer reddit.com/r/adventofcode/comments/e4axxe/2019_day_1_solutions/…
 
10:52 AM
f:+/-2+3/
+/(6<)f\ \f d
 
11:05 AM
forget it. it's wrong.
 

« first day (268 days earlier)      last day (1267 days later) »