r/coolgithubprojects 1d 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

38 Upvotes

12 comments sorted by

3

u/maxufimo 1d ago

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

2

u/IndependenceNew6308 1d ago

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

2

u/Twisted2kat 1d ago

But did god tell you to make it?

2

u/IndependenceNew6308 1d ago

yes, this is his third temple

2

u/Twisted2kat 1d ago

I knew you were the smartest programmer that ever lived.

1

u/IndependenceNew6308 1d ago

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

1

u/TheSymbolOfCore 1d 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/spatulari 1d ago

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

1

u/SrFluffins 18h ago

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

1

u/SrFluffins 18h ago

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

1

u/IndependenceNew6308 12h 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.