*Advent of code in Mu*
Day 1 part 1 solution (don't click if you don't want to be spoiled): http://akkartik.github.io/mu/html/apps/advent2020/1a.mu.html
Took me about 40 minutes. In the process, I had to:
* Fix a bug in reading lines from stdin into streams
* Start trailing newlines when parsing ints from streams
* Implement `find` in an array
We'll see how long I can keep this up. Linear scans will soon not cut it.
Project page: https://github.com/akkartik/mu
*Advent of code in Mu*
Day 1 part 2 (same deal, same spoiler alert, just more brute force): http://akkartik.github.io/mu/html/apps/advent2020/1b.mu.html
Part 1 took 40 minutes and part 2 took 18. Therefore I'm getting better at this.
Project page: https://github.com/akkartik/mu
@akkartik What is this mu thing? It looks delicious. :)
@cymen Should work on x86_64! It'll just run in 32-bit mode.
At least until Linux kills 32-bit.
Please tell me if there are issues.