*Advent of code in Mu*

Day 1 part 1 solution (don't click if you don't want to be spoiled): akkartik.github.io/mu/html/app

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: github.com/akkartik/mu

*Advent of code in Mu*

Day 1 part 2 (same deal, same spoiler alert, just more brute force): akkartik.github.io/mu/html/app

Part 1 took 40 minutes and part 2 took 18. Therefore I'm getting better at this.

Project page: github.com/akkartik/mu

@akkartik What is this mu thing? It looks delicious. :)

@cymen Thank you! Lately this is my 1-sentence summary:

> Rather than start from some syntax and introduce layers of translation to implement it, Mu starts from the [x86] processor's instruction set and tries to get to _some_ safe and clear syntax with as few layers of translation as possible.

Check out the Readme for more: github.com/akkartik/mu#readme. I'd love to hear what questions you have after skimming the first couple of paragraphs.

Follow

@akkartik It's not a question but: Shit, my processor is 64bit.

@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.

Sign in to participate in the conversation
tilde.zone

masto instance for the tildeverse