Live data from Hacker News

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

github.com

81–90 of 90 posts

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

#81
post #28

Earlier quoted context omitted.

[flagged]

Completely fair point. I've vouched several green user comments in the past six hours that had been flagged and gone to dead for no apparent reason, the GP comment you spoke for was one that others had kicked to dead ( usually I'm flagging obvious spam comments straight to dead ).

[deleted]

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

#82
post #78

Slight tangent but I've wondered about something similar to this, has there been much initiative to make games that directly boot on modern PC hardware? So not load a full OS but just go directly to the game. Similar to older generation gaming consoles. It should be possible, granted if you want to stay simple, things like wifi, bt, GPU would be hard to utilize without modern drivers, but a keyboard and mouse should…

I don't know if it's been much used but it is known and works. I was doing this early on in my x86-16 assembler experiments but ended up using DOS as a program launcher for an easier emulator to use than qemu (dosbox-staging).

The big limits if you don't want to get into disk IO, is 512 bytes or less since you're basically running your program as a master boot record. To get more you'll need to load some LBAs from disk which yes there is an interrupt for and osdev has even better stuff.

Other than that, the difference between a .com file (usual limit 64kb single segment) and an MBR style bootable program is pretty minimal

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

#84
post #73

Earlier quoted context omitted.

Doom is a fine milestone for an OS that intends to have graphical capabilities. Maybe Doom in text mode for other OSes :P It's a known quantity, and doom has been ported to everything, so it shouldn't be too hard to make work either (he says, not having done it). An OS that can run Doom is clearly capable of graphical interfaces with user interactivity, and maybe sound (although sound would be easy to leave out).

Yeah, that's perfectly fair. I raised my question because it occurred to me this kind of sells the operating system short. In other words: even DOS could run Doom (with some help with a memory extender I guess, which is a technology we can all very happily not worry about anymore).

I think the thing is, Doom was originally written __for__ DOS. Part of the cool part is porting 3rd party software to my OS that wasn't originally written for it. That was part of my reasoning at least.

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

#86

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

> 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.

FWIW, GNU/Hurd has been able to run a desktop environment the last 20+ years.

And as someone who portedgor Doom working on GNU/Hurd decades ago … I’m going to wager that the GP has never used it. :-)

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

#87

Hey unmapped (I am ThatOSDeveloper on GitHub and discord it's my display name) I never knew you got doom running on it, pretty cool, but I have a few questions, is it the original doom, is it on disk or an initramfs and do you use freedom or the shareware doom wad with the engine you use?

Hi, I use DoomGeneric which is a portable fork of Doom. It's on a TempFS loaded from an initrd. I use doom1.wad.

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

#88
Very cool, but why choose an unsafe language when today there exists low-level memory-safe languages? We all know already that most of security bugs are memory related.

I get that this is an hobby project, but still why not deprecate unsafe languages where there are much better alternatives?

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

#89

Very cool, but why choose an unsafe language when today there exists low-level memory-safe languages? We all know already that most of security bugs are memory related. I get that this is an hobby project, but still why not deprecate unsafe languages where there are much better alternatives?

Mostly just because C is a lot simpler, and in kernel dev, simplicity is everything. I've used rust for other projects but I feel like in kernel dev I would much rather use a simple and readable language than a safe language.

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

#90
post #72

What did you do make the project interactive enough so you don’t end up copying existing implementations?

I'm not too sure what you mean. I kinda just avoided looking at existed implementations because it's a bit more interesting to do it myself.
Post reply on HN