Show HN: Micron – Oberon with the Power of C

Rochus 70 points 31 comments November 08, 2026
github.com · View on Hacker News

I have been developing Micron (for "MicroOberon"), a lean, statically typed, modular systems programming language that combines Oberon’s simplicity and explicit module structure with C’s low-level capabilities and interoperability. Micron is not my first langage design. I first built Oberon+, a modernized and unified Oberon, in order to under­ stand, by implementing it and by porting real systems to it, what Wirth’s design actually gives and where it fails. The systems ported to Oberon+ included the 2013 Project Oberon System and different versions of Oberon System 3. I then explored the opposite direction with Luon, a higher-level language for managed application progamming. Micron is the synthesis of this and my 30 years experience with C/C++ in systems programming. The goal of Micron is to use the same language for boot code, device drivers, an operating system kernel, and ordinary applications, without requiring a garbage collector or routing machine access through a separate, unchecked system dialect (such as Oberon's SYSTEM.ADR/GET/PUT which operates on LONGINT). The language supports explicit memory layouts, signed and unsigned integer types, pointer operations, and direct calls to C without wrappers. One of its central design choices is language levels. Each module declars the level and thus the feature it needs, ranging from code that requires neither stack nor heap to garbage-collected objects. A module can import only modules at the same or a lower level. For example, a kernel module declared at level 1 cannot accidentally acquire a dependency on heap allocation through an import. Other features include generic modules, structural interfaces, and compile-time procedures. Much of what would require a preprocessor in C is expressed through typed language features. There is a working compiler, interpreter, and IDE, along with a free textbook ( http://software.rochus-keller.ch/micron-textbook.pdf ). The book explains both how the language works and the reasons behind its design. Its systems-programming section walks through a port of Wirth and Gutknecht’s Project Oberon operating system to Micron, cross-compiled and linked into a single executabl that runs on an emulated RISC-V machine. The examples also include ports of a Smalltalk-80 VM, Scheme 9, and the original P4 Pascal compiler. The compiler and interpreter implement the language specification; native backends and tooling are still work in progress, and the current native code generation prioritises simplicity over optimisation. For more information see https://github.com/rochus-keller/Micron/blob/master/Readme.m... .

Discussion Highlights (11 comments)

andsoitis

Congratulations! I've always been super interested in Oberon (due to my Pascal / Object Pascal / Delphi heritage) and even tried things like A2 ( https://en.wikipedia.org/wiki/A2_(operating_system) ) but never fully got into the boat. Micron makes me excited to try your latest incarnation.

andsoitis

Love the examples you've implemented in Micron: The examples subdirectory ( https://github.com/rochus-keller/Micron/tree/master/examples ) contains: - a Smalltalk-80 implementation, - the original 1976 P4 Pascal compiler, - the Scheme 9 virtual machine, - the Project Oberon System running on the host, - and the Micron System described in the textbook, the migrated Project Oberon System natively running on RISC-V.*

berkeleynerd

Would be great to see Micron up on Rosetta with a good selection of examples ported there. Great work...will definitely be having a look!

HexDecOctBin

It seems like the language requires Pascal/C89 style declarations on top of the scope. I've never been sure why Pascal developers have stuck to this convention for so long. Is it the zeal to preserve single-pass compilation?

jsrcout

This seems like an extremely comprehensive work. Look forward to checking out the textbook and examples particularly.

chasil

"Early examples like UNIVAC and the IBM 7030 were used by scientists working on atomic research. The Cray-1 came along in the mid-70s and accelerated such work to new levels." Seymour Cray also designed the CDC 6600, which had a much more immediate impact on IBM et al. https://en.wikipedia.org/wiki/CDC_6600

neverartful

Very impressive work! I'd love to give it a try but my browser blocks download of the precompiled binaries due to it being served over http. I may build from source as it's intriguing. It would be nice to have the command-line compiler have fewer steps to build from source.

nigel_bree

Great work, Rochus; I loved what you had done with Oberon+ but I am impressed with how far this goes while being so in the spirit of Wirth's classic approach. And as others have said, the examples are impressive in their selection, they do a great job of demonstrating that it does what you set out, I'll be chewing on the thoughts in your book for a while I suspect. I'm so grateful that we have people like you and Nils M. Holm keeping lots of these old ideas about design fresh, you both inspire me to keep pushing myself in my own projects.

Panzerschrek

Is it memory-safe? Or just as safe as C?

Teyott

The examples are good! I guess the overall concept of MicroOberon is technically great for low-level developers or someone who's into OS things... Really of great use! Would love to try it out!

Emoticon4032

I cut my teeth on Pascal in the 1980s, and when Modula 2 and then Oberon came out, I got distracted by life. It didn't help that these were all more-or-less research/teaching languages that never quite seemed to be ready for production use. A couple of years back, I started looking at Oberon again, longing for a simpler life. It seems to me that the original goals that Wirth had are still very relevant today, especially given the gigantic heaps of abstraction on abstraction on abstraction etc. that we seem to have now. To me, all the complexity is slowing things down and making things less robust. Micron feels like the end point of what Wirth was working to. If there are easy ways to target different CPU/MCU architectures and also call existing C libraries, then I'd love to use it on my next embedded project.

Semantic search powered by Rivestack pgvector
3,874 stories · 35,194 chunks indexed