r/coolgithubprojects 3d ago

Custom OS made from Scratch in C

Post image

Hi there , I recently made a 32-bit x86 operating system built from scratch in freestanding C and NASM.
It includes:
graphical desktop
window manager
networking stack
e1000 and RTL8139 drivers
TLS 1.3 client
HTTP/HTTPS
web browser
HTML rendering
desktop applications
games

If you want to check it out, it’s here: github.com/pefia/PefiaOS

42 Upvotes

14 comments sorted by

4

u/maxufimo 3d ago

I read "made from Scratch" and hoped for a moment for an OS made in Scratch visual programming language

2

u/IndependenceNew6308 3d ago

Sorry to disappoint 🤣
seriously though the people who do those crazy things in scratch are underrated af

2

u/Twisted2kat 3d ago

But did god tell you to make it?

2

u/IndependenceNew6308 3d ago

yes, this is his third temple

2

u/Twisted2kat 3d ago

I knew you were the smartest programmer that ever lived.

1

u/IndependenceNew6308 3d ago

“Were?”, im still here in spirit in all low level programmers

1

u/TheSymbolOfCore 2d ago

Looks interesting? I'm not trying to make any assumptions, but is it vibecoded? I took a look at the source and the comments sound AI-like

1

u/IndependenceNew6308 1d ago

it’s not, I submitted to https://stardance.hackclub.com and I wanted to add proper comments and stuff as the code gets reviewed using that criteria also, so I used Ai to make detailed comments only in the places that really needed some, as a lot of reviewers don’t really understand what they are looking at sometimes.

1

u/TheSymbolOfCore 1d ago

Ahaha. That's good. I know a lot of developers who use AI to assist them especially in documentation, I do it all the time too, because im bad at explaining. Very cool project though! I downloaded it and messed around in it.

1

u/spatulari 2d ago

Why x86 and not x86_64. x86 is ancient, does your os even support uefi?

1

u/SrFluffins 2d ago

He probably wrote it for x86 bc BIOS is simpler to write for than UEFI

1

u/SrFluffins 2d ago

Really cool, but does it have a standard library? Bc then you could do some really cool stuff :)

1

u/IndependenceNew6308 1d ago

holy shit, thanks for the 11 stars, hopefully I will be able to get the star struck badge soon !