News for hackers. Stuff that matters.
Re:My from-scratch OS kernel that runs DOOM by UnmappedStack on Wednesday April 23, 2025 @09:03PM (#43778350)
Yeah definitely an achievement I'm happy with. I've got a bit of refactoring to do, ANSI parsing etc then I'd like to port more - perhaps even Vim (or another portable Vim-like editor called Dim)
Re:My from-scratch OS kernel that runs DOOM by edoceo on Wednesday April 23, 2025 @09:56PM (#43778590)
Could you explain more about why you'd need to port things? If you have a libc, shouldn't it "just work"? Do you have to scatter #define or #ifdef all over? What about if you wanted to support Golang? Would you have to implement a bunch of syscall?
Re:My from-scratch OS kernel that runs DOOM by UnmappedStack on Wednesday April 23, 2025 @10:13PM (#43778671)
Well, the LibC is still quite small, and the syscalls aren't really compatible with Linux. A lot of things to port, for example Vim, require system libraries such as ncurses which need syscalls that aren't in the LibC. I don't really need many #ifdefs, at least not for most things, as it's a more or less posix-based libc.