top | item 29057055

A completely-from-scratch hobby operating system

297 points| tirrex | 4 years ago |github.com

72 comments

order

junon|4 years ago

This is by Klange, the owner of the #osdev channel on Libera chat, associated with osdev.org. Super nice individual and always posts updates and interesting tidbits about ToaruOS.

Strange, but welcome, to see it on the frontpage! :)

klange|4 years ago

I wouldn't say I "own" that channel in any respect, I'm just responsible for dragging it over from Freenode during the exodus... we've got the same same staff as we did before the move and I'm not even the "founder" according to ChanServ.

picture|4 years ago

I love that the OS seems to be named after Toaru Majutsu no Index and Toaru Kagaku no Railgun. Misaka the kernel and Kuroko the interpreter are named after iconic characters from the series.

ulzeraj|4 years ago

Agreed. At first I thought my weeb brain was just making associations and then I read the component names I realized its all based on Raildex.

m4rtink|4 years ago

So following the English translation of the franchise the project can be called "A certain OS" - quite a nice name actually! :)

behnamoh|4 years ago

I like that the main website looks like the OS itself!

https://toaruos.org/

_tom_|4 years ago

Looks like the website has been hugged to death, for now.

I wonder if the web server is hosted on toarus?

bluecatswim|4 years ago

No inbuilt documentation system called Index?

picture|4 years ago

Oh that would be awesome

jstx1|4 years ago

I'm very impressed any time I see people pouring so much work over long periods of time into hobby projects.

bogomipz|4 years ago

Under features, the first bullet point is "Dynamically linked userspace." Can someone say what this means? How is this different than a userspace made up of dynamically linked utilities and shell?

kenferry|4 years ago

It’s not different, but it’s a feature that this is included vs only supporting static linking.

afr0ck|4 years ago

Libraries are shared by programs and refrences to library routines are automatically resolved at program load time.

amitport|4 years ago

How this compares with xv6 for first OS course purpose? Is it viable to use this to teach the same things? (Paging, inter process communication, threading...)

klange|4 years ago

I really like xv6 for its simplicity and restricted scope. It feels like a better Minix in the sense of being a codebase intended for university coursework. If your goal is learning the very basics of what an OS does, xv6 is a good place to start. ToaruOS can cover the same ground - of course there's paging and IPC and threads - but I don't have a cache of PDFs sitting around describing it, and there's no intentionally missing bits waiting for a student to fill them in for homework. If xv6 is "Operating Systems 101", then ToaruOS is a 300-level seminar/workshop.

My intended audience is hobbyists who are looking for a reference for writing their own OS - the sort of people we often find on osdev.org, or the #osdev channel on Libera, who have stumbled through an old tutorial on x86 bring-up and want some example of how "the next steps" work.

bitcoinmoney|4 years ago

Also interested in this question. Never finished the MIT os course utilizing xv6.

fouc|4 years ago

Nice. This came before SerenityOS and yet seems similar in approach.

saladuh|4 years ago

A certain (weeb named, from scratch, hobby) OS.

spicybright|4 years ago

I really like the UI! Most hobby OS's just do the same bland patterns most of the time.

rurban|4 years ago

Then why in the heck is he going for POSIX compatibility, when he can afford the luxury of not having to deal with blocking syscalls and all this crap? Much easier and safer multithreading. Also faster.

And why we are there, why not a safer microkernel, keeping everything in userspace? Questions over questions.

klange|4 years ago

When I started the project a decade ago, my aim was specifically to understand POSIX/Unix and to "learn by doing", so of course there's some POSIX-like elements underpinning the design. Back before I decided that literally anything can be in scope and was using third-party components, this aided in porting software, as other commenters have pointed out. These days, it gives more purpose to things I build for the OS if they can also reasonably be built for Linux or macOS - things like my editor (which I wrote for the OS and now use as my daily driver in Linux), or my Python knock-off.

As for the microkernel bit, this might sound like circular reasoning but I didn't go for a microkernel because no one really uses microkernels. It's not that I think microkernels are a bad idea, ToaruOS does push plenty of stuff into userspace. Rather, my main goal at the moment is to provide an educational resource that more accurately models the way "real" OSes work than the typical academic OS projects.

craigmart|4 years ago

>why in the heck is he going for POSIX compatibility

Because existing desktop applications can be ported to ToaruOS

>why not a safer microkernel, keeping everything in userspace?

This is a design choice, microkernels aren't necessarily better than hybrid, they're slower, harder to debug and process management can be complicated

turbinerneiter|4 years ago

You can do all of this in your own hobby project.

the-dude|4 years ago

Shallow dismissal of other people's work.

ape4|4 years ago

You need POSIX to compile nearly any program

VWWHFSfQ|4 years ago

And why in the heck didnt he write it in Rust!

...