Follow

*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

· · Web · 1 · 1 · 1

*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

in Mu

Day 3 solutions (spoiler alert):

akkartik.github.io/mu/html/app

60 minutes. Lost 11 minutes debugging a silly mistake (see commit log)

No new Mu bugs found, no machine-code hacking was needed.

Project page: github.com/akkartik/mu

in Mu

I seem to be settling into a pattern of solving these on alternate days. Late for one round, early for the next.

Day 4 solutions (spoiler alert):

akkartik.github.io/mu/html/app

akkartik.github.io/mu/html/app (utterly ghastly)

2.5 hours. 2 machine-code bugs found, 1 new (terribly named) library primitive added: github.com/akkartik/mu/commit/

Day 5 solutions:

akkartik.github.io/mu/html/app

akkartik.github.io/mu/html/app

30 minutes. No new Mu bugs found.

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.

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

Merveilles is a community project aimed at the establishment of new ways of speaking, seeing and organizing information — A culture that seeks augmentation through the arts of engineering and design. A warm welcome to any like-minded people who feel these ideals resonate with them.