Thanks! Nick Nickolov's k comes with solutions to ~150 AoC-{2015..2022} puzzles. All run when you make k! As an example, here is aoc/21/25.k (Game of Sea Cucumbers, which Russ vlogged about): #!../../k n:#'1*:\x:".>v"?0:"i/25" (l;d;r;u):n/'n!'/:(!n)+/:3(|1 -1*)\!2 /left down right up i:0;{i+:1;x:a[r]+x*~a:(1=x)>x l;(2*a d)+x*~a:(2=x)>x u}/,/x;i [Of course, the real fun is in solving these puzzles but it helps to know what others do!] Unfortunately no plan9 port as it relies on mmap. https://codeberg.org/ngn/k https://xpqz.github.io/kbook/Introduction.html https://github.com/razetime/ngn-k-tutorial It is also one of the fastest (~0.5 sec to generate and add a billion numbers on a Ryzen 2700). > On Jan 19, 2023, at 9:07 AM, Skip Tavakkolian wrote: > > Regarding Ivy, rsc has some fantastic example code in the form of > solutions to the Advent of Code 2021 puzzles: > https://www.youtube.com/@rscgolang/videos > > On Thu, Jan 19, 2023 at 7:48 AM Bakul Shah wrote: >> >> On Jan 19, 2023, at 7:57 AM, mkf9 wrote: >>> >>> Lassi Kortela wrote: >>>> Chibi-Scheme has run on Plan 9. >>> and also S9, which Bakul Shah ported to Plan 9, >>> https://github.com/bakul/s9fes. >> >> Nils M Holm, the author of s9fes, did the original >> port with some help from me. He didn't want to >> maintain plan9 related changes which is why I am >> maintaining it. Nils also has a book on it but >> AFAIK it doesn't cover anything specific to plan9. >> >> Speaking of little languages.... >> Nils also ported his klong array programming language >> to plan9 & has a book on it! Slightly more verbose >> than k (roughly k3 from kx.com) >> >> Then there is https://github.com/ktye/i which supports >> a dialect of k. Not sure which, probably k6 or k7. And >> there is minimal help in the form of readme.txt but it >> compiles & runs on 9front: >> >> % git/clone https://github.com/ktye/i >> % git/clone https://github.com/ktye/wg >> % cd i >> % go build '-buildvcs=false' >> % ./k >> ktye/k >> !10 >> 0 1 2 3 4 5 6 7 8 9 >> +\!10 >> 0 1 3 6 10 15 21 28 36 45 >> d:`a`b`c!(1 2;3 4;5 6) >> d >> `a|1 2 >> `b|3 4 >> `c|5 6 >> +d >> a b c >> ----- >> 1 3 5 >> 2 4 6 >> \\ >> >> There is of course Rob Pike's ivy. ------------------------------------------ 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/T7b0afbefb53189b6-M28a9059decf39a3bacc5e4c6 Delivery options: https://9fans.topicbox.com/groups/9fans/subscription