akkartik/mu
View on GitHub ↗ ★ 1,431 Assembly
Soul of a tiny new machine. More thorough tests → More comprehensible and rewrite-friendly software → More resilient society.
102 mentions on Hacker News by 14 people: 6 stories, 96 comments · first 2015-03-09 · latest 2026-10-01
20082026
-
It's Arc, and the program is an ancient prototype of https://github.com/akkartik/mu
comment by akkartik · 2019-11-29 · in Syntax Highlighting Is Backwards (2018) -
…was a design document for soliciting feedback. You can see the progress on the implementation at https://github.com/akkartik/mu/blob/master/apps/mu.subx (colorized version: http://akkartik.github.io/mu/html/apps/mu.subx.html ) So far I've…
comment by akkartik · 2019-11-22 · in Mu: Sketching out a minimal system programming language -
…up needing to do that to a certain extent. My online help refers to the standard names in parens: https://github.com/akkartik/mu/blob/3a2d36a93680f2e9eb2bd2a3... b) Is it useful in enough places to be worth the lines of code it takes to…
comment by akkartik · 2019-10-19 · in Mu: A minimal hobbyist computing stack -
…while reading the post in a browser. Slightly evil, I know. The concrete rules are illustrated at https://github.com/akkartik/mu/blob/469a1a9ace9b290658beb9d0... . In this case `%<reg>` always translates to `3/mod <reg-code>/rm32`.
comment by akkartik · 2019-10-18 · in Mu: A minimal hobbyist computing stack -
…if you search for the pattern '/89' you'll find the first two versions. The 3rd one is here: https://github.com/akkartik/mu/blob/master/apps/factorial.su... Can you explain in a sentence what rules are used to complete the encoding for the…
comment by eterps · 2019-10-18 · in Mu: A minimal hobbyist computing stack -
…/plforums.org/practice/minimal-features-required-for-... That comment dates from before I built this: https://github.com/akkartik/mu#readme
comment by akkartik · 2019-10-04 · in My history with Forth and stack machines (2010) -
…that we need to go even deeper and think about why the maintenance burden for software is so high. https://github.com/akkartik/mu#readme This is a very long-term project, and it's still early days. But none of the short-cuts seem to pan…
comment by akkartik · 2019-09-16 · in Sandstorm Oasis Is Shutting Down -
…You have to start from scratch. (Like many others in that group, I'm trying to start from scratch: https://github.com/akkartik/mu/blob/master/subx/Readme.md . My focus isn't directly on the tools you describe. But hopefully it'll one day…
comment by akkartik · 2019-07-14 · in Ask HN: Any logic based software dev tool which helps building code gradually? -
…performance but for reducing dependencies, for building a more parsimonious stack at all levels: https://github.com/akkartik/mu/blob/master/subx/Readme.md . It's surprisingly pleasant. Lately I find myself thinking heretical thoughts, like…
comment by akkartik · 2019-06-23 · in Ask HN: Resources for getting started with bare-metal coding? -
…soon be self-hosting and come in under 2kLoC source and under 30KB executable (excluding tests): https://github.com/akkartik/mu/blob/master/subx/Readme.md Stats: https://raw.githubusercontent.com/akkartik/mu/master/subx/st...
comment by akkartik · 2019-05-28 · in An x86 Assembler in 256 LOC (2017) -
…languages, but with key implementation features that enable outsiders to comprehend a codebase. https://github.com/akkartik/mu/blob/master/subx/Readme.md
comment by akkartik · 2019-03-31 · in The Programming Language Conundrum -
…As it happens, my current project that uses it has a Readme in every folder: https://github.com/akkartik/mu
comment by akkartik · 2019-03-31 · in The Programming Language Conundrum -
…simple text-based tools (that should in principle be easy to write in machine code) My repo is at https://github.com/akkartik/mu/tree/master/subx#readme
comment by akkartik · 2018-08-27 · in C compiler with support for structs written in Assembly -
…encourage that! I accepted that possibility in my comment. See the kind of stuff I build: https://github.com/akkartik/mu . I introduced Posix purely as an example that builtins are as subject to standardization as coreutils. Other than…
comment by akkartik · 2018-04-20 · in Show HN: Lisp Shell -
…I consider an example of exemplary library use to be how I copied the termbox library into Mu ( https://github.com/akkartik/mu/commit/5f1285238b ), periodically merged commits from upstream ( https://github.com/akkartik/mu/commit/9ba313ab7f…
comment by akkartik · 2018-04-20 · in Ask HN: When do you use a library vs. implement something yourself? -
…tests. Good luck! (Speaking as someone who's trying to imagine OSs with automated end-to-end tests: https://github.com/akkartik/mu )
comment by akkartik · 2017-05-13 · in Patching Is Hard -
Fascinating! Seems to have some commonality with dependency injection, which is one of my interests ( https://github.com/akkartik/mu#readme ) Can you point me at any Lua docs where I can read more about overriding IO in Lua?
comment by akkartik · 2017-05-01 · in ZetaVM, my new compiler project -
…for everyone. Edit 16 minutes later : I just tried your benchmark with my VM-like language ( https://github.com/akkartik/mu ), and the time taken was almost identical. Interesting exercise! Here's the Mu and Plush/0 programs side by side:…
comment by akkartik · 2017-04-29 · in ZetaVM, my new compiler project -
…as part of that larger project, I've been improving my zoomable UI for browsing program traces: https://github.com/akkartik/mu/blob/9be4a67f42/100trace_brow... . I plan to turn this into a self-contained tool. All it requires is for…
comment by akkartik · 2017-03-10 · in What are you working on? -
For many years now I treat C++ as "C with destructors and the STL". Examples: 1. RAII: https://github.com/akkartik/mu/blob/61fb1da0b6/010vm.cc#L484 2. STL: https://github.com/akkartik/mu/blob/61fb1da0b6/020run.cc#L50 I really don't use…
comment by akkartik · 2017-01-07 · in C99/C11 dynamic array that mimics C++'s std::vector -
…2. http://akkartik.github.io/mu/html/000organization.cc.html ( https://github.com/akkartik/mu/blob/61fb1da0b6/000organizati... ) The ability to 'tag' tests into multiple suites is particularly nice. I might steal that at
comment by akkartik · 2017-01-07 · in Lispy sets -
…yet full-featured stack to hack on. Stephen Malina has good instructions here for getting started: https://github.com/akkartik/mu/wiki/Installing-OpenBSD-on-a-...
comment by akkartik · 2016-12-20 · in Linux at 20, some personal memories (2011) -
…starting insight as you: http://akkartik.name/about . And my project (with one other collaborator): https://github.com/akkartik/mu Nice to meet ya! I'd love to chat more at some point once the HN rush dies down, perhaps over email (address…
comment by akkartik · 2016-12-05 · in What's wrong with Software nowadays and how we can fix it -
…figured out what commands waf was running and then ripped it out. You can see my changes inlined at https://github.com/akkartik/mu/tree/master/termbox Edit : ack, sorry I momentarily forgot that I also recently ripped out my project's…
comment by akkartik · 2016-11-15 · in Termbox-Go – A minimalistic Go curses library -
…with more testable OS primitives. Among other things, I implemented a fake screen for this project. https://github.com/akkartik/mu#readme
comment by akkartik · 2016-11-14 · in Termbox-Go – A minimalistic Go curses library -
…Since you already took a look at Mu, here's a place where I try to elaborate on this belief system: https://github.com/akkartik/mu/blob/07b54625f7/001help.cc#L7...
comment by akkartik · 2016-10-26 · in Applying the Linus Torvalds “Good Taste” Coding Requirement -
…situation. In a VM and programming language and operating system that I wrote from scratch[1]. https://github.com/akkartik/mu/blob/a90faae990/edit/003-shor... [2] Moreover, I lived with it for months before I decided it wasn't worth the…
comment by akkartik · 2016-10-26 · in Applying the Linus Torvalds “Good Taste” Coding Requirement -
…they impose on the programmer aren't insurmountable. We'll see. (More info on the project: https://github.com/akkartik/mu#readme . On its memory model: https://news.ycombinator.com/item?id=11855470 . On the deep-copy implementation:…
comment by akkartik · 2016-07-24 · in Reference Counting: Harder Than It Sounds -
…all sources of undefined behavior. http://akkartik.name/post/mu http://akkartik.name/about https://github.com/akkartik/mu
comment by akkartik · 2016-07-10 · in Understanding Integer Overflow in C/C++ (2012) [pdf] -
…brackets with colons: address:array:character But you have full expressiveness if you need it. [1] https://github.com/akkartik/mu
comment by akkartik · 2016-07-07 · in Building a C Compiler Type System – Part 1: The Formidable Declarator -
I use a layer-based approach described at http://akkartik.name/post/wart-layers in https://github.com/akkartik/mu . It's 20kLoC of literate code, and I was super concerned about optimizing it for non-linear reading, because that's how I…
comment by akkartik · 2016-07-07 · in Literate programming: presenting code in human order -
I'm exploring something similar in my project: https://github.com/akkartik/mu . Where C was designed as a more portable+expressive assembly language, Mu is designed as a more portable+safe assembly language. You have to manually manage…
comment by akkartik · 2016-06-07 · in Bone Lisp – Lisp Without Garbage Collection -
…it usually takes. (I still can't get the feature to work in gdb..) Try it out: $ git clone https://github.com/akkartik/mu $ cd mu $ ./mu browse-trace .traces/factorial-test It'll take ~30s to compile the first time you run it (C compiler…
comment by akkartik · 2016-06-07 · in Distributed Systems Testing: The Lost World -
…in these questions stems from trying to program in an idealized assembly language for the past year: http://github.com/akkartik/mu . After writing 10kLoC of assembly to build a simple text editor ( http://akkartik.name/post/mu ) I'm…
comment by akkartik · 2016-05-08 · in A bit of background on compilers exploiting signed overflow -
…getting more and more brittle under the weight of added constraints. (I work on this problem: https://github.com/akkartik/mu/blob/7f5a95cdbe/Readme.md . It's been 31 days since I last got on my soapbox in this forum:…
comment by akkartik · 2016-04-15 · in The Linux Scheduler: A Decade of Wasted Cores [pdf] -
…the same benefits and more. As a concrete proposal, here's something I wrote a couple of days ago: https://github.com/akkartik/mu/blob/14d3dacc4d/Readme.md . I deleted it yesterday because a Readme feels like the wrong place for it, but…
comment by akkartik · 2016-03-11 · in What Makes Software Good? -
…it can check. You lose the expressivity of conventional HLLs, but still get their safety benefits. https://github.com/akkartik/mu
comment by akkartik · 2016-03-08 · in On the Madness of Optimizing Compilers -
…automatic. Some links about my project in case you'd like to learn more: http://akkartik.name/about; http://github.com/akkartik/mu#readme . I'd love to hear your thoughts, either here or over email (address in profile). [1]…
comment by akkartik · 2016-02-28 · in All Software is Legacy -
…added the warning.. and found several bugs in my mu code. Thanks! I've credited you in this commit: https://github.com/akkartik/mu/commit/8fd27372b6
comment by akkartik · 2016-02-15 · in Mu: making programs easier to understand in the large -
…it; I haven't touched it in a while. Further suggestions most welcome. [1] Colorized version of https://github.com/akkartik/mu/blob/379244666c/010vm.cc
comment by akkartik · 2016-02-13 · in Mu: making programs easier to understand in the large -
Try the README: https://github.com/akkartik/mu/blob/master/Readme.md It's a new programming language. edit: The source seems to be structured intentionally in a recommended reading order. See the comment at the top of…
comment by mintplant · 2016-02-13 · in Mu: making programs easier to understand in the large -
…undertake dramatic rewrites, and to reuse code between projects/rewrites. (More info on my project: https://github.com/akkartik/mu )
comment by akkartik · 2016-02-13 · in Moving on from Picasa -
My assembly language for beginners: https://github.com/akkartik/mu . Rationale: http://akkartik.name/post/mu
comment by akkartik · 2015-12-15 · in Why I no longer use MVC frameworks -
…address to an illegal value. More info about the goal and rationale: http://akkartik.name/post/mu; http://github.com/akkartik/mu . I also recently found out about http://eigenstate.org/myrddin which seems more mature with very similar…
comment by akkartik · 2015-12-04 · in Show HN: Demo of Wiki and Forum coded in C under 80k -
Author here. OP isn't exactly the best link to start reading about this project. Please check out http://github.com/akkartik/mu#readme and tell me what you think.
comment by akkartik · 2015-06-23 · in Is it a language, or an operating system, or a virtual machine? -
…with my current project. Problem: http://akkartik.name/about . Ongoing attempt at a solution: http://github.com/akkartik/mu .
comment by akkartik · 2015-03-09 · in Outcome-Oriented Programming