Live data from Hacker News

Show HN: My from-scratch OS kernel that runs DOOM

github.com

31–40 of 90 posts

Re: Show HN: My from-scratch OS kernel that runs DOOM

#31

Very cool project! How are you handling process isolation and scheduling in TacOS?

I use paging for virtual memory, which gives each process it's own address space. I have a round-robin scheduler connected to the PIT driver, so every 10ms the PIT fires an interrupt which triggers the scheduler, which selects the next task, saves the current state of the previous task, switches to the new address space, switches the stack, restores registers of the task, then uses the iretq instruction to switch to ring 3 user mode and jump to the instruction pointer.

Re: Show HN: My from-scratch OS kernel that runs DOOM

#32
Ok, but can your tacos run DOOM??

I kid I kid ;) That's a commendable effort and nice job! Question though: was it an effort to make TacOS using DOOM as a "standard" or was it an effort to make an OS dedicated to running DOOM run from scratch?

And I don't ask from any place but actual curiosity. I made an absolute bare-bones-cant-do-anything-but-boot type OS way back "in the day" (like almost 30 years ago, ack!!!) just for my own education/fun, but the idea of having a dedicated OS that can basically only run DOOM, yet be ported to anything would just make the "can it run DOOM" meme so much more ironic and fun!

Nice stuff! Keep it up!!

Re: Show HN: My from-scratch OS kernel that runs DOOM

#33

Ok, but can your tacos run DOOM?? I kid I kid ;) That's a commendable effort and nice job! Question though: was it an effort to make TacOS using DOOM as a "standard" or was it an effort to make an OS dedicated to running DOOM run from scratch? And I don't ask from any place but actual curiosity. I made an absolute bare-bones-cant-do-anything-but-boot type OS way back "in the day" (like almost 30 years ago, ack!!!) ju…

Well, it can do a little more than run Doom, that's just the latest milestone as to what was ported last. It wasn't a huge effort, maybe took a week or so to get Doom itself running including adding libc requirements for Doom, but what came before that was a fair bit more groundwork. I used DoomGeneric, which is basically a fork of Doom which is made to be very portable. I hope I answered your question, I might have misunderstood.

Re: Show HN: My from-scratch OS kernel that runs DOOM

#35

Earlier quoted context omitted.

> A few months work by one guy and already more capable than the Hurd It is no way capable than Hurd. It is a cool project though. Have you used Hurd recently? It can run a modern desktop.

I searched YouTube for actual evidence of Hurd booting to a desktop and only found two videos of Hurd freezing during boot, and a third video of RMS explaining to a very confused convention attendee that he's "never installed GNU slash lynn-ox" because he could just ask someone else to do it. No videos of Hurd running Doom either, but anyone is welcome to create one and share.

The programming interface that Hurd provide is similar to that of any modern operating system. So, it can run pretty much any program that runs on Linux or BSD, but you have to port it. Doom is no exception. If you cannot find a video of Doom running on Hurd on YouTube, it doesn't mean that Hurd can't run Doom.

Hurd is sure not a successful project, but it is a capable operating system. Linux comes with a lot of device drivers for all sorts of hardware, so Linux nowadays can run almost everywhere. But that is not the case with Hurd because only a small number of people are contributing to this project and it is largely eclipsed by success of Linux. But it is an extensible system so if you want support for a hardware, you can develop a driver for it. But nobody is interested.

If you haven't seen Hurd running a desktop, I will introduce you to Debian Hurd (https://www.reddit.com/r/linuxmasterrace/comments/18i6e94/de...). It is a Debian distribution with Hurd as the kernel instead of Linux. It comes with Xorg and you can install XFCE, OpenBox. Basically, you can install any desktop that render on CPU. Desktops like GNOME and KDE need more infrastructure. They relay on modern GPUs and uses direct rendering. In Linux, we have DRI and Mesa for this. As of now, Hurd doesn't have any such infrastructure. As I have already said before, a lot of people are contributing to Linux and only a handful of people are contributing to Hurd.

Re: Show HN: My from-scratch OS kernel that runs DOOM

#37
post #36

A few months work by one guy and already more capable than the Hurd. Imagine what you could accomplish given 35 years.

Hurd isn't exactly a useful project, but using Doom as the benchmark for the capability of an OS is a bit ridiculous.

Given that pregnancy tests can now run Doom, I have to agree with you. It was more of a symbolic thing than a technical difficulty at this point lol.

Re: Show HN: My from-scratch OS kernel that runs DOOM

#38

From-scratch kernel straight to DOOM is some top-tier hacker cred stuff. You must be very happy with it running on real hardware. Very cool.

Yes, quite happy with real hardware. The kernel isn't exactly straight to Doom, it boots into a shell which you can just run Doom from, but yeah lol.

Re: Show HN: My from-scratch OS kernel that runs DOOM

#39
post #36

Earlier quoted context omitted.

Hurd isn't exactly a useful project, but using Doom as the benchmark for the capability of an OS is a bit ridiculous.

Given that pregnancy tests can now run Doom, I have to agree with you. It was more of a symbolic thing than a technical difficulty at this point lol.

They can't, actually.

Re: Show HN: My from-scratch OS kernel that runs DOOM

#40

Earlier quoted context omitted.

Given that pregnancy tests can now run Doom, I have to agree with you. It was more of a symbolic thing than a technical difficulty at this point lol.

They can't, actually.

https://www.popularmechanics.com/science/a33957256/this-prog...
Post reply on HN