Sep 6, 2019
Update on the Mu computer

Syntax sugar for function calls is done. Here's factorial with no sugar, addressing modes and function calls, respectively.

Version 0 without any syntax sugar takes up 50 lines and 180 columns for factorial and one unit test.

Version 1 with syntax sugar for addressing modes takes up 50 lines and 40 columns.

Version 2 with syntax sugar for addressing modes _and_ function calls takes up just 28 lines and 40 columns.

Time now to start building a proper language, to occupy C's niche on this new stack. Type-safe, memory-safe, manual (but safe) memory management, manual (but safe) register allocation.

Though I might build a toy Lisp first. I figure I've earned some fun. Seeing a computer boot into a REPL would qualify.

https://github.com/akkartik/mu#readme

This post is part of my Freewheeling Apps Devlog.

Comments gratefully appreciated. Please send them to me by any method of your choice and I'll include them here.

archive
projects
writings
videos
subscribe
Mastodon
RSS (?)
twtxt (?)
Station (?)