548 points by joexbayer 2 days ago | 115 comments
moon2 2 days ago
I used to study a lot of hobbyist OS development in my late teens. It was awesome, I still try doing small kernels from time to time (last one was a RISCV small kernel that printed a message to my partner).
joexbayer 2 days ago
anonzzzies 1 day ago
mvkel 1 day ago
bobxmax 1 day ago
sarkron 2 days ago
Given the myriad of resources available, how did you manage to keep the project engaging rather than copying others people code?
joexbayer 2 days ago
Regarding language, I love C for its basic syntax and “straight to the point” style. Maybe I’d consider some other languages for userspace applications.
A goal for me from the start was always that I wanted to write everything myself, no porting of any software, and for me that’s the entire point of the project. I mostly adhered to the rule of copy ideas not code.
greenavocado 2 days ago
See the message from Linus Benedict Torvalds on 26/08/1991
https://groups.google.com/g/comp.os.minix/c/dlNtH7RRrGA/m/Sw...
zoky 1 day ago
All I can say is LOL
90s_dev 2 days ago
Technical debt is as sure as death and taxes. Good software grows over time, like a person growing up. Sometimes you have parts that are needed for a time but not permanently, like baby teeth. That's what technical debt is like.
Other times there are parts that are absolutely ideal long term, but it's a long time before they even make sense. And sometimes things only develop much later than we expect, like wisdom teeth. These are software features that won't make sense until you write the thing that you don't realize yet is only temporary.
I have the same goal of writing everything myself from scratch. It's a very important goal to me for a reason I don't fully understand yet.
Congrats on writing an entire OS, and getting it booting on real hardware! That must be such a rewarding feeling in its own right, even if no one understood how. And it looks so very cool.
You've given me more motivation to announce my project soon. Maybe next week. Thanks.
Have you played around with Zig yet? I hear that would be a good replacement for C here. Did you have any thoughts on porting your OS to that, or did you have any branches some Zig code made its way into?
joexbayer 2 days ago
ayaros 1 day ago
Each approach has a clear set of pros and cons, as others have explored in this thread. In the end, I think what ultimately matters is whether we're satisfied (and proud) of a project after a significant amount of progress has been made.
I also took the "I want to write everything myself" approach with my project since I wanted it to be a demonstration of my abilities. I wanted to prove to myself and others I could create a project of significant size and scope. It seems like this often means working without libraries and having to reinvent the wheel over and over again. It's tedious, but it certainly adds to the satisfaction you get as you look over your work and think "this is truly mine; I did this."
And yes, copy ideas, not code, is one of those things I do my best to adhere to. Sometimes, at least with JS, you run into problems, look into solutions, and it turns out there's really only one sensible way to do something; what you end up writing feels like a boilerplate solution to the problem. I often find myself going back and forth through search results from places like Stack Overflow and trying to siphon out the best techniques and ideas from multiple examples to mesh together into some usable code in a style I prefer.
Finally, since I failed to say this eariler, congrats on your project! I'm gonna have to try it out as soon as I get some extra time.
keyle 2 days ago
Having no plan is often better when you're facing a deep pit of work, pick at it every now and again, whatever you feel like working on that day.
vs. having a clear Todo list that is longer than a DNA chain and just giving on it after item 5 because 6 is boring.
Oh, and congrats, looks great.
stevage 2 days ago
joexbayer 2 days ago
stevage 2 days ago
exe34 1 day ago
ayaros 2 days ago
I don't know anything about your font system; I'm assuming it's fixed width bitmap fonts? I don't know how hard it would be to make these changes within your codebase so if it's too much work then don't worry about it.
I've been building a web OS site from scratch for a while now (not as technically impressive as what you're doing) and I just got through a total rewrite of the font classes, so it's at the top of my mind.
joexbayer 2 days ago
90s_dev 2 days ago
I think people skimming a project often just don't quite get how much we pour into our projects, and how very much it cost us. But it's okay, they don't have to understand just how cool it is what we made. At least we know.
When I saw your video of your project, I was thinking to myself, "wow, that's incredibly cool, and I can relate to the steps he's doing!" Just trying to be the voice here of someone who thought that way, in case there are no others.
JdeBP 1 day ago
Such as https://robey.lag.net/2010/01/23/tiny-monospace-font.html for example.
JdeBP 2 days ago
http://jdebp.uk./Softwares/nosh/guide/terminal-resources.htm...
If you want a quick improvement over that 8by8 IBM ROM font, I suggest two things:
1. Switch to a 16by16 square.
2. For the ASCII range, go with one of the old home computer fonts, rather than IBM ROMs. Viznut has .hex files for Commodore PET and BBC Micro graphics modes squirrelled away inside Unscii.
I've done the work of upscaling the 8by8 PET font to 16by16, and it works quite nicely as a monospace square font. These old home computer fonts were of course designed to. Whereas in the world of VGA you're soon in trouble with glyphs designed for 9by16.
joexbayer 2 days ago
ahefner 2 days ago
o11c 2 days ago
For vector fonts, the interesting question is "if I render this at a different resolution and then scale it, will it line up?" which fundamentally has no answer that can satisfy everyone. Most other difficulties are merely a Small Matter of Coding (and providing appropriate APIs).
joexbayer 2 days ago
peterfirefly 1 day ago
throw-qqqqq 2 days ago
- “Look, I wrote an operating system!”
- “Meh the font is weak”
Peak HN IMO :D
cyberpunk2066 2 days ago
ayaros 1 day ago
throw-qqqqq 1 day ago
My point was: I would not expect such a response anywhere else but HN :)
Someone in the crowd was already there and is wearing the t-shirt - that’s why I come here <3
alganet 2 days ago
The power of the crowd compells you.
The power of the crowd compells you.
7bit 2 days ago
throw-qqqqq 2 days ago
selimthegrim 2 days ago
eggy 2 days ago
joexbayer 2 days ago