alt.hn

4/4/2026 at 6:58:03 AM

Show HN: Anos – a hand-written ~100KiB microkernel for x86-64 and RISC-V

https://github.com/roscopeco/anos

by noone_youknow

4/7/2026 at 2:44:36 PM

Oh boy.. this is a perfect Show HN to wake up to :)

With the wild pace of everything going on right now. I can’t be alone feeling it truly captures the hacker spirit. Echoes to early Lisp days, or maybe my high school side quest to learn Minix? Ie building from scratch and seeing what’s possible.

Sadly most of us will never have the staying power (well definitely not myself) and yet you gave us a little window into your passion.

Thank you for the inspiration. Especially the focus on compounding small wins and including us in your orbit. Long live Anos

by wamatt

4/7/2026 at 4:42:33 PM

Thank you! A project like this is all about compounding small wins for sure, just building one thing on top of the previous thing until (hopefully) one day it’s a complete thing :D

I’m glad you found some inspiration and really appreciate your kind comment :)

by noone_youknow

4/7/2026 at 4:51:46 PM

Nah, it's just AI slop, despite OP's "hand-written" protestation.

by the_biot

4/7/2026 at 5:13:56 PM

It isn’t, actually.

by noone_youknow

4/6/2026 at 11:21:16 PM

Going to take a guess the author is not a Spanish speaker :p

by jonpalmisc

4/7/2026 at 12:18:36 AM

After Nvidia's cuLitho now we get Anos...

by pezezin

4/7/2026 at 6:16:19 AM

Ahem, well, that's embarrassing! :D

by noone_youknow

4/7/2026 at 5:54:04 AM

Ross Bamford doesn't sound spanish to me

by rurban

4/7/2026 at 10:36:02 AM

José is not an English name and here I am writing in English. People can learn other languages you know?

by pezezin

4/7/2026 at 7:37:23 AM

I love the adjective "hand-written" and I'm gonna add it to my repositories.

Although I don't practice vibe coding, I'v observed that the first principle of vibe coding is to never look at the generated code. (You learn the code from external metrics, such output correctness and memory usage)

by jason1cho

4/7/2026 at 5:46:25 AM

> Anos is a modern, opinionated, non-POSIX operating system (just a hobby, won't be big and professional like GNU-Linux®) for x86_64 PCs and RISC-V machines.

Love that Linus quip! Hopefully it will be. Non-POSIX sounds exciting

by rurban

4/7/2026 at 7:15:23 AM

Haha that quote felt pretty much obligatory :D Non-POSIX is definitely keeping things fun, letting me explore different ideas without having to fit into an existing interface design :)

by noone_youknow

4/7/2026 at 9:18:26 AM

While not basing the OS on POSIX is good, if you ever want to use it for more than a hobby, i.e. if you ever want to use it for your main personal computer, you will also need a translation layer for the LINUX syscalls, which would enable you to compile and run any of the existing open-source programs, or even run existing binaries.

Porting the programs that you are more interested in from Linux or *BSD to your own OS is the best, but this is necessarily slow and also the work of porting rarely used applications may not be worthwhile.

An alternative to a syscall translation layer is for your OS to act as a hypervisor for Linux or other OSes VMs. However, this would have a lower performance than using natively your IPC-based OS.

by adrian_b

4/7/2026 at 11:32:12 AM

I agree that for it to be generally useful, it’ll need to be easy to port existing software to. But I don’t think I’ll need a translation layer at the syscall level (unless I want to expose a Linux-compatible ABI as you suggest, which is totally a non-goal).

You can get surprisingly far in this area with a decent libc implementation - once you have that porting a lot of things becomes possible. There will always be harder problems (e.g. anything that hard-depends on fork) but with enough work pretty much anything in user-space should be possible to port eventually.

I’m using newlib for libc, with a custom Anos-specific libgloss that mostly talks to SYSTEM via IPC to get stuff done, and uses syscalls where needed (and a process has the appropriate capabilities). I’m filling out that low-level interface as I go, and will be using porting of exiting BSD or Linux software to drive that implementation :)

by noone_youknow

4/7/2026 at 12:05:17 PM

I agree that instead of implementing the Linux syscalls implementing just those libc functions that are OS dependent is sufficient for a large fraction of the existing programs.

However, this means implementing a POSIX layer, similarly to Windows NT. So it is a solution more distant from a "non-POSIX operating system".

While a large part of the Linux syscalls have been motivated by the necessities of implementing POSIX, there are also significant differences and the Linux applications that require the best performance must deviate significantly from POSIX, so they are no longer based on libc for I/O.

by adrian_b

4/7/2026 at 4:45:59 PM

There would likely be value in a POSIX layer as you describe, at least from the point of view of porting existing programs. And perhaps it will happen, if I get far enough along, but it will never be a kernel feature - it would be an entirely userspace concept intended only to speed up porting and building out said user space.

Perhaps in the fullness of time essential software can be rewritten to Anos’ “native API”, or perhaps that’s a pipe dream and not worth the work, but the option will be there.

by noone_youknow

4/7/2026 at 5:09:36 AM

In my opinion if you learned something from it, it was useful. Bonus points if others learn from it as well, but if not then as long as you did then it doesn’t matter. AI age or not.

I’ve always found hobby OS projects like this interesting, and I hope there’s never a shortage of them in the future

by rstat1

4/7/2026 at 6:24:21 AM

That's a good way to look at it, and on reflection I feel the same way.

It's certainly useful _to me_ and has helped me really nail down concepts I thought I already understood, but it turns out I didn't.

I just hope that, in an age where it feels like code, and maybe even deep technical knowledge have diminishing value, projects like this don't become completely anachronistic.

by noone_youknow

4/7/2026 at 4:38:49 AM

> I don't know how useful projects like Anos are any more

I get pretty excited when project like Anos come out, I love Anos. Long live all Anos.

by AbraKdabra