News for hackers. Stuff that matters.

ozkl

Re:Doomgeneric: Make Porting Doom Easier on Thursday January 26, 2023 @05:26AM (#34529974)
Dev here. When I was trying to port doom to my OS soso, I tried to keep it generic and doomgeneric was born!
Re:Doomgeneric: Make Porting Doom Easier on Thursday January 26, 2023 @05:21AM (#34529934)
Hey! I realized your PR months later and wanted to merge but it could not. So I add your project as a remote and cherrypicked that commit just to include your commit in the history! Thank you!
Re:Doomgeneric: Make Porting Doom Easier on Thursday January 26, 2023 @05:15AM (#34529883)
Dev here! I've just realized that you shared this. Thanks for sharing doomgeneric!
Re:Serenity OS update (August 2019) [video] on Saturday September 07, 2019 @06:01PM (#20906845)
Nice job. It looks so impressive. I wish we could download an OS image to try it in a VM without having to build.
Re:Show HN: A simple Unix-like operating system that runs Doom on Saturday September 07, 2019 @05:21PM (#20906591)
I chose x86 because I wanted to try the os in my ancient PCs like a Celeron 333MHz. And articles I was reading at the start was for 32bit.
Re:Show HN: A simple Unix-like operating system that runs Doom on Saturday September 07, 2019 @12:17PM (#20904704)
Yeah, and Lua is also great at dependencies. It doesn't depend anything :)
Re:Show HN: A simple Unix-like operating system that runs Doom on Saturday September 07, 2019 @12:05PM (#20904622)
By using 4Mb pages, we can skip one step which is page tables.

In other words, Page Directory points directly to a 4Mb Page Frame. In 4Kb mechanism, Page Directory points to a Page Table which then points to a 4Kb Page Frame.

Re:Show HN: A simple Unix-like operating system that runs Doom on Saturday September 07, 2019 @11:49AM (#20904513)
Thanks! Yeah it is my favorite editor and the os is entirely written in it :) In fact, doomgeneric is created just for Soso in order to port easily.
Re:Show HN: A simple Unix-like operating system that runs Doom on Saturday September 07, 2019 @11:43AM (#20904464)
Thanks! In fact, I prefer camel case for functions. You must be saying this for HashTable and List functions. I came from C++ world (where i name classes Pascal case and functions camel case). I wanted to group HashTable functions together like a class and named them that way. Yeah, it ended up being inconsistent unfortunately. I named structs in PascalCase.
Re:Show HN: A simple Unix-like operating system that runs Doom on Saturday September 07, 2019 @11:29AM (#20904365)
Thanks! I was going to go similar path you mentioned. Not 16-bit but in a way that is exe-like binaries and development with Visual Studio.

But it seemed to me that it is easier to support ELF binaries. And OSDev has great articles about elf files, binutils, cross-compilers, etc..

Re:Show HN: A simple Unix-like operating system that runs Doom on Saturday September 07, 2019 @11:20AM (#20904298)
Thanks. I think it would take 8 months night works. But it took longer because of breaks. I was always interested in low-level stuff especially about syscalls (how they jump to kernel from userspace). So, I was familiar with syscall internals and memory protection. But I learnt all including how paging is done in x86 when I was writing Soso thanks to OSDev.