r/teenagersbutcode • • 11d ago

Coding a thing (AI assisted) OS Dev

Post image

Hey, I thought it might be interesting to post this here.

For the past 1 month, I think, I've been programming my own Operating System from scratch. Now, I'm not sure the tag is correct for this post because technically the AI didn't generate any of the code for me.

Before this, I already had some experience with C and assembly, but what I did not know was how the hell to make an OS. I'm an ambitious person, so I wanted to try it. So, I hopped onto Claude and asked it to create an OS dev course for me because I'm lazy and don't wanna read the OSDev wiki, and prefer the college lecture style, so that's what it made me. It has been teaching me the steps to build an os, how the parts work and go together, and I've been taking that knowledge and converting it into code.

I've been having quite a lot of fun building this, and am on track to get most of the important features by maybe February next year. I thought it would be interesting to share this here, and if y'all have any feedback or tips

26 Upvotes

9 comments sorted by

1

u/Objective_Buy_7235 10d ago

Too lazy to take advantage of existing resources is not a great start.

1

u/LolMaker12345 10d ago

Maybe I shouldn’t’ve said lazy, but I’ve been really busy lately and that wiki is huge, and this project would take like 5x the amount of time if I just used the wiki. If I had the time I’d use it for sure, but since I don’t, this helps me shorten the time I spend on this

1

u/Objective_Buy_7235 9d ago

I understand how that goes. And honestly, asking the AI to help the way you did is a good use of it. It is so important at this point for you to code BY HAND for this stuff sink in. And I was wrong not to comment on what achievement you have made. I'm sure that was a large effort.

1

u/letmehaveanameyoudum 11d ago

I'm also building a kernel currently, and i will say, this is impressive.

1

u/Elegant_Athlete_3737 11d ago

Is there any benefit to learning how to make a OS or kernel other than kernel or os dev? 

1

u/KananMajidzada 9d ago

Probably control and ınstrumentation field,cuz in there we use something calling RTOS (Real Time Operating System) to control machines.

1

u/Elegant_Athlete_3737 9d ago

oh yeah i know about RTOS, though isn't that well still count as OS dev lol? just you pair it with other rthings.

1

u/KananMajidzada 9d ago

I would call it os dev bcs basically its os

1

u/realrealvantheman 10d ago

There is a reason dedicated shit exists for this. Buy a book, eg. 'The Design of The UNIX Operating System' or read papers on something fancier like barrelfish or minix3. I first learned programming by buying an LSI11/03 processor handbook. Trust me.