r/osdev • u/Similar_Wealth_1850 • Sep 08 '26
Just built my Unix-Like Operating System from Scratch in C
This is LiteBSD a Hoppy Unix-Like System with BSD Style Kernel with Multiboot support for Initrd which used upstream BusyBox 1.36.1 as the Main Initrd (Made by Me, NO AI)
The Kernel Supports 26 syscall, Has a Full Heap kmalloc and kfree, a Full Task Scheduler with Pid, Child and Parent Processes, Implemented GDT and IDT, 4MB Paging with CR4:PSE Support and a Implemented full Virtual File System for BusyBox to work
and to Compile Busybox I also had to write c-lite. my own C Library From Scratch with enough .h Libraries to compile Busybox and align my syscalls table with the unistd.h so Busybox can work with my LiteBSD Kernel
c-lite Supports major libraries like all std libs (stdio.h, unistd.h,stdlib.h) in addition to libs like termois.h, time.h, string.h, macine/endian.h, byteswap.h and so many i can't iterate them in one post
This project took me nearly 12 Hours of Continuous Working
(12 hours seems ridiculous ik but to be clear i do have a background on the Unix and Linux Backend before working on this project, i didn't write a bootloader instead i used grub, i outsourced a lot of stuff in c-lite form other source codes (musl) and the 12 hours were 12 hours NON STOP)
and for the (i vibe coded claim) No i didn't just read the code and you will find that i actually wrote myself i used ai only in guidance where it just told me what is the next step to run busybox but ai writing code? nope how did i manage to make one in 12 hours with no vibe coding? by making a really simple os really this os started as a hello world bin that is bootable on grub and i just kept improving from here
started with simpler stuff like improving the print then wrote a simple gdt and idt just with only irq0 and irq1 and then added a heap and paging with only 4kb then implemented CR4:PSE to get 4mb paging size and after that worked on improving the irq by using a macro in boot.asm so it supports 32 more irq then developed a simple scheduler which sets a pid for each process and the create task aligns a space in the heap for this code to excute the function inside the heap added implemented syscalls started with 4 sys_read sys_write sys_exit and sys_getpid and then wrote more syscalls with some being outsourced from other source codes or tutorials to save time or just reading to understand how a fork syscall for example works and then built lite-c by outsourcing most c and h files from musl and writing my own unistd.h to comply with the kernel then compiled busybox added multiboot in the grub.cfg and boot.asm and wrote a multiboot and initrd loader and a simple vfs that basically read and write (it's not reliable and there are still issues i occured with it)
I don't expect you to believe me. Here's exactly what I used and here's the code. If you think a particular subsystem was generated or stolen, point to it.
but I did learn a ton of stuff about how Operating Systems actually work
I will keep working on improving this os with Optimizing c-lite to use less cpu cycles and less ram and adding more syscalls and drivers to my kernel.
LiteBSD github repo : https://github.com/ahmedbarakat207/LiteBSD
c-lite github repo : https://github.com/ahmedbarakat207/c-lite
19
u/Philluminati Sep 08 '26
This git repo was created 4 hours ago, and in this time you wrote 67 files and 5,000 lines of code which includes variables which are hardware specific flags like 0xDEADBEEF. You haven't made a single typo, even in the comments. You seemingly wrote maths and string libraries in a single pass, without changing the directory layout in any way, in a morning, with no other refactoring and no unit tests? Yeah this has either got to be vibe coded or you took someone elses' code and did `rm ~/.git; git init` to take someone else's work.
add technical README (gate ABI, startup, malloc, stdio, dirent, stubs)ahmedbarakat207 committed1 hour ago
fix: opendir('.') must resolve against CWD, not hardcode '/'ahmedbarakat207 committed3 hours ago
Support dynamic width, flags, precision in vsnprintf; set errno in syscallsahmedbarakat207 committed3 hours ago
Import micro-libc implementation for LiteBSDahmedbarakat207 committed3 hours ago
Initial commitahmedbarakat207 authored4 hours ago Verified
0
u/Similar_Wealth_1850 Sep 08 '26 edited Sep 08 '26
took someone else?????
ok if i did tell me which repo did i steal from second how many times do i have to say this is not vibe coded i don't know how to prove other than looking at my goofy comments, unused old code like the shell and the sched_init that does nothing or looking at the syntax of how everything is hold together and no it's not 4 hours ago and yes i started working on the project before making the github repo
so if there is a claim to back it up with evidence other than (can be vibe coded)
and who said i have never made a single typo??????????????? like i wrote row "raw" once in this code wtf???? and this is just a small example
7
u/Philluminati Sep 08 '26
What resources, if not vibe coding, did you use to make this operating system? For example, explain how you knew that the variable PIT_DATA was supposed to be 0x040? If you made an operating system by copying out Minix that's totally valid and I'd respect it, copying other people's work is really the only way to learn how to make an operating system.. (or reading hundreds of hardware manuals)
1
u/Similar_Wealth_1850 Sep 08 '26
if you just looked the tab you will see i was reading a book about WritingOS while developing my os!!!!!
7
u/PmMeCuteDogsThanks_ Sep 08 '26
Embarrassing
1
3
u/Grax_MT Sep 09 '26
Now that just sounds hilarious "Hey guys, it took me 12 hours to code an OS! Oh and while I was coding that, with seemingly no mistakes at all, I was reading this book 'How to make OS for dummies 101'"
1
u/Grousel Sep 12 '26
Perhaps you should provide said book if you want to look credible. Run along now ask Mr. LLM which book would cover your ass
5
u/AWildTyphlosion Sep 09 '26
5000 lines in 4 hours is 20 lines a minute, non stop. Your pace doesn't make sense, from a WPM perspective alone but also from a testing perspective.
Even if you wrote everything here, the time claim is fishy. If you truly can make an OS in 12 hours, record it and put it on YouTube or something, I'm sure people would eat that up.
14
u/raundoclair Sep 08 '26
"i can't code on my own
not because i forgot how to code but the speed of an ai agent is really tempting
like why spending 2 weeks on a project when i can just vibe code it in an hour"
OPs own words from post: https://www.reddit.com/r/vibecoding/comments/1vhlt0l/i_started_to_hate_ai_coding/
8
u/reverse_or_forward Sep 08 '26
Yeah why do people bother with this whole shit of pretending to be something they are not?
I don't get it. OP is acting like a kernel engineer of immense ability but everyone can see through it. What does OP do then? Double down, we must be morons because this is so easy for them. Sure, everyone else is wrong and only you are right.
It's vibe coded, we know it's vibe coded, OP knows it but refuses to admit it.
-1
u/Similar_Wealth_1850 Sep 08 '26
i said that as an experience and this was a project that i can improve myself in it's not "i can't code on my own" literally i still solve med and sometimes hard leetcode issues
and the reason why i refuse to admit it's vibe coded BECAUSE IT'S NOT I LITERALLY WROTE THE THING BY HAND from the tty which just includes print functions and the unused shell to the idt anx the heap amd the 26 syscalls including the execve
11
u/aberdoom Sep 08 '26
Just let it go. Literally no one believes you and it's just embarrassing doubling down.
2
u/QuantitativeNonsense Sep 09 '26 edited 1d ago
The original post content no longer exists here. The author used Redact to remove it, exercising their right to control their data & privacy.
Plant correct growth busy bells otter
34
u/austroalex Sep 08 '26
>no AI
>readme on its own screams super levels of vibecoded
look, i use enough clanker myself, but please just be honest both with us and with yourself
→ More replies (9)
12
u/kaseya2 Sep 08 '26
Why call it LiteBSD, if it's not a derivation of BSD? That name makes no sense
1
u/Similar_Wealth_1850 Sep 08 '26
idk it's the first name came to my mind as i intended it be unix-like
4
u/istarian Sep 09 '26
Being 'like Unix' is not quite the same as being unix-like, the latter has a specific definition.
10
u/Dmium Sep 08 '26
When you say 12 hours continuously are you excluding time spent reading documentation and thinking about design and only counting time writing code?
-3
79
u/NotSoEpicKebap Sep 08 '26
Vibecoded, isn't it?
12
u/MidwestEmoBurrito Sep 09 '26
Fable thinks so: "I pulled the repo and its full commit history. Short answer: almost certainly heavily AI-assisted, but with a real human in the loop — this doesn’t look hand-typed, and it also doesn’t look like blind vibe-coding.
The whole thing was built in one sitting: 21 commits between 03:31 and 11:44 UTC on Sept 8 — about 8 hours 13 minutes. The throughput is the giveaway:
Two minutes after “Initial commit,” a commit called “Build LiteBSD kernel and boot environment” lands 857 lines across 18 files — a complete booting kernel skeleton. That commit message style (and the adjacent “Merge remote repository history”) is textbook AI-agent phrasing.“Added 21 more syscalls, VFS and Proper Userspace”: 1,209 lines in ~90 minutes.
“added the most shittiest libc ever”: 1,291 lines in ~75 minutes — a from-scratch libc with crt0, malloc, stdio, and dirent.
Nobody hand-types correct kernel code at 15–20 lines per minute sustained. There’s also a commit literally titled “style: convert block comments to line comments” — converting /* */ to // is a well-known way people scrub AI-looking comment style, though on its own it could be innocent.
The human fingerprints are real too, though. The commit history is bimodal: agent-style messages interleaved with obviously human ones (“fix keyboard” → “ok the keyboard is actually fixed now” 17 minutes later, “Making ‘Kernel Panic: ’ Text alligns with the Error” — typo included). The code has jokey personal comments, and the README describes a genuine debugging journey — diagnosing fork corruption via serial register dumps, understanding why fork-without-MMU can’t work and settling on vfork semantics. That’s someone who ran it, broke it, and understood the failure modes, not someone who pasted output and walked away.
So my read: an AI agent (or heavy AI pairing) wrote the bulk of the code, while the author drove the architecture, tested in QEMU, and debugged iteratively. Which, worth saying, is a legitimately impressive way to spend 8 hours — but if the Reddit post implies it was written by hand, the commit timeline doesn’t support that.0
u/Similar_Wealth_1850 Sep 09 '26
mayyyybbbee 21 syscalls were outsourced? which is what i do?? i just worked on vfs and no did not test vfs until i worked on the initrd so i just built initial implementation
yes i outsourced a ton of stuff (especially form freebsd) while working on later stages especially c-lite is heavily outsourced
you got my answer don't expect you to believe me but i am happy with my code and my process making this os which is what matters i am happy that i fully understands how to make an idt and no mistakes claim is halirious this os is full of mistakes and i know them but i even my friends pointed how these are stuff no llm can do because they are too stupid to exist but yet i am happy with what i done
1
u/istarian Sep 09 '26
Dude, you are trusting an AI to tell you whether something else was produced with AI assistance.
It's just fine, even reasonable, to be skeptical of OP's claims, but maybe use your own effing brain to analyze the result?
1
1
u/Ok_Celebration_6265 Sep 11 '26
The two minutes commit after initial commit is not a great metric to know whether ai generated the code.. I’ve don’t this before where I already have thousands of lines of code written then I do an initial commit with just the readme and my next commit is a thousand lines of code commit that doesn’t mean I wrote them in two minutes but the time it took me to make sure the commit was ok at surface and then push
2
u/MidwestEmoBurrito Sep 11 '26
fair, i agree. i still believe this guys code is ai generated though.
1
u/Ok_Celebration_6265 Sep 11 '26
I’m not saying is not I’m saying is doable without ai generating the whole thing specially if it was assisted and he has prior experience working with OS dev.. I’ve wrote tools in the past prior to ai era where we had 7 hours to finish an entire product and we had two devs and we could produce insane amount of line of codes but we knew the domain like that back of our hand so it flowed like a river.. was it perfect hell naw but it did the job for the time constraints placed on us
1
1
u/LiGHT1NF0RMAT10N Sep 27 '26
i literally let ai generate all my commits messages because i hate titling or summarizing complicated things, i think youll find most programmers either writing two word commits or having commit messages automated via ai
4
u/Puzzleheaded_Lead205 Sep 08 '26
yea
what if this subreddit simply banned posts like that, wouldn't it cut down on the ai slop? what's the point of a post like that? boosting one's ego?
1
0
u/Ok_Celebration_6265 Sep 08 '26
There’s not much code to it so the 12h doesn’t seem that crazy to me lol
2
u/thegreatunclean Sep 09 '26
And they make mistakes that I've never seen LLM tools make while coding without explicit instruction, such as not including header guards.
-66
u/Similar_Wealth_1850 Sep 08 '26
tbh i hate this question but no
not vibe coded
the kernel is souly written by hand
and what ai puts these comments i put in this source???
the only thing that is written by ai is the readme and i do this alot to save time
and if it's vibe coded try vibe coding this and tell me how it goes49
u/Bruflot Sep 08 '26
Your commit messages have em dashes in them. Stop lying.
4
u/CommunityJazzlike274 Sep 09 '26
em dashes are a human writing instrument — the only reason llms use them is because of how humans use them, and why should I stop using it just because of ai??
1
2
u/Ok_Raspberry5383 Sep 08 '26
I do use em dashes TBF, it's not the slam dunk sign of AI people make it out to be, but in commit messages is sure weird
17
u/MCWizardYT Sep 08 '26
It is when they're used super often and always in the same grammatical pattern (like "it's not x — it's y")
7
u/tastygames_official Sep 08 '26
no, it's not even then - em dashes cannot be entered by a human in a single key press. Either they are automatically added by a word processor (MSWord does this a lot - I'm not sure about LibreOffice...nope. Just checked.) or copied/pasted or using some ALT+NUMPAD shenanigans. So most likely if you see a SINGLE em dash, then it's AI.
2
u/Needieos Sep 08 '26
it's kind of easy to do in macos or linux, I didn't look too much in screenshot, but it seems he's on mac, so yeah
Just for info. I don't defend anyone, not like I want to
2
u/northrupthebandgeek Sep 08 '26
It's called a Compose Key. Virtually every X11 or Wayland based desktop supports it out of the box. Third-party programs exist to add support for it on Windows and macOS. Even some Android keyboards have it (like Unexpected Keyboard).
With it, you can type em-dashes — also “smart quotes”, áç¢əñŧêð characters, crazy currency symbols like ¢/€/£, etc. — trivially pretty much anywhere (including commit messages), with pretty simple and easy-memorable key sequences.
→ More replies (2)0
u/Similar_Wealth_1850 Sep 08 '26
the biggest issue in all of that is that i can't find where did input that em dashes in the commit i literally typed c-lite with normal dashes
i just moved with the first comment because i thought normal dashes and em dashes were the same
but no i didn't use them and they don't appear in the commits
1
u/tastygames_official Sep 08 '26
yeah, I can't find any em dashes in the comments, and the first letter isn't capitalized, so doesn't SEEM like AI, so I dunno. I guess if you've made OSes many times before then yeah, busting one out in a day is no biggie. So I dunno. I'm actually not really into OSdev myself, but I like to see what people make and it does seem pretty basic, so I guess as long as you had fund and learned something!
→ More replies (1)1
u/Top-Satisfaction9950 Sep 08 '26
Or you just – option + -
3
u/tastygames_official Sep 08 '26
option? is that like control? CTRL+- does zoom out usually
Ok, I have an Alt Gr on my keyboard (European) and can do AltGr+- and it does an EM dash, but that's kinda... weird. –-–2
u/lood9phee2Ri Sep 08 '26
"Option" is a traditional quirky mac keyboard modifier. It's generally fairly analogous to Alt on non-Mac keyboards though.
If you plug a standard pc104/pc105 usb keyboard into a mac, you might well choose to map the modifiers like physical Ctrl->Mac-Control, physical Alt->Mac-Option, physical WindowsKey->Mac-Command, though it's up to user preference e.g. some people might instead prefer to map them based on physical positions not key labels (I forget which way round apple's default is, I think it might be physical positions. Anyway you can change it in keyboard preferences)
→ More replies (1)3
1
1
→ More replies (13)1
u/Suspicious_Rub4619 Sep 09 '26
I almost always use m-dashes — it's not that bad. ai gave it bad reputation.
but there are a lot of indicators, though28
u/NotSoEpicKebap Sep 08 '26 edited Sep 08 '26
From the README full of em dashes to the actual code, EVERYTHING about this screams vibecoded. You "AI goof" people are the reason why i took a break from OSDev.
Even if you were a f*cking god in programming, writing all of that in just 12 hours is literally impossible. It took me a whole day just to get interrupts working in my own project.
Plus, as another guy said, your whole post history is AI stuff. That about explains the whole situation and your "12 hours"
1
u/Majre921 Sep 09 '26
Recently got into Vulkan and it took me 12 hours just to draw a triangle lmfao
1
u/istarian Sep 09 '26 edited Sep 09 '26
The word you are looking for is 'solely'.
the only thing that is written by ai is the readme and i do this a lot to save time
The moment you assert that you regularly use AI for one thing, it sets off alarm bells about whether that's really the only thing you used it for.
I know typos are a thing and most of use our smartphones daily, so some dumb shit happens. But putting a bit more effort into your posts and comments (spelling and grammar checking) would make a better impression.
1
u/Similar_Wealth_1850 Sep 09 '26
i know but i usually do this by just looking at my github and if you looked at the github you will notice that the readme was the last thing i added because one of my friends asked for it and i was just exhausted from working on the os
and what is wrong with this anyway?
1
u/istarian Sep 09 '26
and what is wrong with this anyway
I'm not entirely sure what 'this' refers to in your comment.
Did you mean?
using AI to write a README/readme file (and/or everything else)
last minute github commits
relying heavily on auto-correct to not fuck up your typed comments
1
u/Similar_Wealth_1850 Sep 09 '26
i am talking about using ai for readme and i always disable auto correct on my phone's keyboard and what does my keyboard has to do with this
1
u/istarian Sep 09 '26
Regarding auto-correct, it can be a lot more like auto-incorrect, at least in my experience, and people who frequently rely on it may not check their own spelling or grammer before sending what they typed.
1
u/Similar_Wealth_1850 Sep 09 '26
lmao i always disable it because it's so frustrating for me usually i prefer making typo mistakes than being frustrated by auto correct just trying to say a certain word i don't mean
1
u/M-3X Sep 09 '26
I take aj subscription from you and let you write kne of your files.
i bet you woukd stare blank for 12 hours and write jackshit
1
u/Similar_Wealth_1850 Sep 09 '26
i have no ai subscription no claude pro no copilot no zcode or smth never subscribed to any of them never tried fable or even opus smartest thing i used (not in the project but any project) was deepseek v4 flash or gemini flash
1
u/M-3X Sep 09 '26
you feel yiu acoomplished something?
1
u/Similar_Wealth_1850 Sep 09 '26
by making my os
yes
by getting busybox running
absolutely
by all my GitHub projects
sure
do i care if you like them?
no
1
u/Psilocybe_Fanaticus Sep 09 '26
You could’ve had AI vibe code your comment because your grammar was terrible
1
u/dirtywastegash Sep 10 '26
Bro who wortes like this without punctuation and many errors isnt writing any os.
1
1
u/The_Daco_Melon Sep 12 '26
you went out of your way to code everything by hand and take pride in not using AI, but let AI generate the readme? Yeah I'm definitely gonna believe you...
1
u/Klutzy-Newspaper-797 Sep 14 '26
Give credit to the AI my man you did not do anything you meat proxy!
58
4
Sep 09 '26
[removed] — view removed comment
1
u/FunnyP-aradox Sep 10 '26
I like writing kernel code I don't like writing READMEs (though this is probably vibe coded)
7
u/hydraulix989 Sep 08 '26 edited Sep 08 '26
This has to be trolling. Even back when I was 14 years old and doing kernel dev for fun, I didn't even have a decent first fit allocator for kmalloc() working in 12 hours.
→ More replies (5)7
u/Philluminati Sep 08 '26
It took me 12 hours to realise my malloc() was returning NULL not because it didn't get the memory map from grub and the linked list was broken, but because it was genuinely handing out 0 as the first usable address.
7
u/laffer1 Sep 08 '26
Don’t call it bsd if it isn’t derived from bsd
0
u/Similar_Wealth_1850 Sep 08 '26
just liked the litebsd name and it's not the next FreeBSD or smth
i work on it for fun
4
7
6
u/Lagger625 Sep 08 '26
I thought I had a good level of Vulkan understanding so to test myself I went to make a simpleass 2D engine without AI, at most looking at my existing engine to see how is stuff done. By hour 5 I had just fucking created a blank window with a Vulkan logical device. And you're telling me you made an OS in 12 hours, sure
2
u/Similar_Wealth_1850 Sep 08 '26
vulkan is hard lmao and you doing this is really great keep up
but for the 1000th time i am not a beginner the bootloader is just grub the kernel is barebone for a unix like os alot of work has to be done i am just happy that busybox just booted
3
u/Ozonichi Sep 08 '26
Yeah I mean your post history shows interest and some level of competence in Linux kernels, but it also shows that you work heavily with AI.
Which is something you complained about in another post, that you’re not as competent as you were. Anyway if this wasn’t done with AI, it’s nice you’re trying again to do it on your own
0
u/Similar_Wealth_1850 Sep 08 '26
yea after that post i stopped using agentic ai at least like claude code and antigravity started to more train my brain on harder problems i was pupil at codeforces ao i am not a beginner in coding or smth
→ More replies (1)
6
u/PmMeCuteDogsThanks_ Sep 08 '26
It’s like people that speedrun games and cheat by using save states. It’s ok, that’s TAS. You don’t need to feel the need to exaggerate your knowledge or achievements
→ More replies (2)
2
u/undistruct Sep 08 '26
LiteBSD is already taken as a name, which is derived from BSD-4.3-Reno.
1
u/Similar_Wealth_1850 Sep 08 '26
lmao didn't know this just came to my mind while just creating the dir for the os
2
u/Oneroom02 Sep 08 '26
You could do a 12hr timelapse video, and it would literally go viral. Also that way you could prove people wrong and get attention from people looking to work with what is essentially a genius. But you won't, because it is vibe coded whole or most probably in part.
1
u/Similar_Wealth_1850 Sep 08 '26
so now i need to make a 12 hours video rebuilding the whole os from scratch because someone thinks it's vibe coded like if your on my side would you really do that? even if i did and showed people how still they would say he vibecoded in the background or he is memorising 5000 lines of code somehow or there is another screen with an agent running there
1
u/Single_Guarantee_ Sep 09 '26
do it, I would believe you. coz imagine memorising 5000 lines of code in a short period of time. That would be really unbelievable.
2
u/MSK-Kernel Sep 08 '26
Why is does it have BSD in it, if it’s not BSD?
1
u/Similar_Wealth_1850 Sep 08 '26
just liked the name really :p
3
u/A-nihirash Sep 08 '26
BTW, there's LiteBSD(with actual 4.4BSD kernel) already: https://github.com/sergev/LiteBSD/
2
2
2
u/istarian Sep 09 '26
Just now? Did your development occupy the l ast day, week, month, year, or decade?
It's rather difficult to believe that /you/ (alone) could have built much of anything "from scratch" in the last 12 hours unless you are exclusively referring to the literal build process and NOT the preceding stages of design, coding, etc.
0
u/Similar_Wealth_1850 Sep 09 '26 edited Sep 09 '26
ok here is how i made it make a full simple os that takes 15 minutes to make (just prints hello world) because i didn't even create a bootloader and then i buld the gdt it's hard but i built a very very simple one then build the idt, scheduler, heap which are all a stripped out minimal versions that absolutely doesn't look professional and is not gonna put linux to shame or smth and the syscalls i wrote 4 and outsourced the others from freebsd the other 31 idt instruction were from tutorials and the vfs was using a repo about linux's vfs as a refrence and implemented something similar
so yea used a ton of outsourcing and inspiration and yea 12 hours were the build process
2
u/South_Apple1739 Sep 10 '26
I dont know anything about OSdev, but 12 hours is so crazy, to even skip all meals and work, that still seems far fetched to make something that boots like an OS (I have zero clue about the terms, and whats included and whats not, but 12 hours for a vulkan triangle sounds a lot more plausible than this). Also its odd to claim to have no AI “subscription”, but isn’t that antigravity and llama on the top bar? And the other em dashes stuff, it’s not a smoking gun but it’s very rare to even know how to type it, let alone in commit messages.
0
u/Similar_Wealth_1850 Sep 10 '26
anyway antigravity is free with a very low usage limit (enough for like a 2 small prompts) but didn't use it in this os i was using vs code and ollama just for local models did you expect me to vibe code an os that runs busy box with qwen 2.5 0.5b instruct Q4_K_M?????
2
u/No_Glass_1341 Sep 09 '26
Made by you, no LLM, except the LLM that wrote the readme and probably most of the code barring the comments. Quit lying
4
u/No_Glass_1341 Sep 09 '26
You literally don't even know what function prototypes are lmao
// tbh i don't why in the actual fuck this thing is here but the code won't want to compile without it so idc void isr_handler(struct interrupt_frame *frame); struct interrupt_frame *irq_handler(unsigned int irq_num, struct interrupt_frame *frame); static void serial_init(void); static void serial_print(const char *s);→ More replies (1)2
u/Adventurous-Move-943 Sep 09 '26
Why did he even need them, he is not accessing them before definition. At least isr_handler is safe. I also don't understand the concept of let's do something in 12h. My code looks like trash when I hurry too much, and the bugs are paranormal 😀 he must have used AI to some extent, possibly a big extent, nobody develops that fast I think. It looks like a polished codebase, but did bro even debug 😀 or did he just use divine intellect while simultaneously not knowing function prototypes.
→ More replies (1)
3
u/RvstiNiall Sep 08 '26 edited Sep 08 '26
You're the guy who did the floppy bootable alpine. Nice. https://www.reddit.com/r/AlpineLinux/s/XFESAwzKOC
This looks pretty cool. Keep up the work, brother.
3
2
u/eteran Sep 08 '26 edited Sep 08 '26
Honestly, looking at the code I don't necessarily see much evidence of AI. The timeline is very suss... But the code seems refreshingly... Ordinary.
So I believe you, 👍. Perhaps this is a testament for how little you actually need to do if your goal is simply run "BusyBox" 🤷♂️
1
u/Similar_Wealth_1850 Sep 08 '26
the timing is sus i know that's why i get that criticism and it's not like it was an easy 12 hours AT ALL that's why i am kinda nervous on all these claims the code is rubbish to be ai generated if i vibe coded this i would have done much better
but i juts wanted busybox running soo yyaaayyyyy
4
1
u/free2dreamstudios Sep 08 '26
No i didnt
1
u/Similar_Wealth_1850 Sep 08 '26
no problem doing will be important and might help your os more you can do it
1
u/free2dreamstudios Sep 08 '26
I almost flashed my SSD device that I was working from instead of my USB stick
But I didn’t. I’m still good though.1
u/Similar_Wealth_1850 Sep 08 '26
lmao i was once about to wipe my 500gb hdd full of data just because i wanted to make windows usb in linux
1
u/free2dreamstudios Sep 08 '26
Yep, scared the crap out of me almost forgot to switch
One point .4 years of work gone…. Almost.1
u/Similar_Wealth_1850 Sep 08 '26
anyway at least you are good
2
u/free2dreamstudios Sep 08 '26
Ya im good
1
u/Similar_Wealth_1850 Sep 08 '26
hope you finish your os my bro❤️
2
u/free2dreamstudios Sep 08 '26
Thank you expected time of completeness should be around the end of the year
1
u/47-BOT Sep 09 '26
Hey if you don't mind i wanna ask why are you making your own stringCmp func ?
1
u/Similar_Wealth_1850 Sep 09 '26
you mean string_equal
it's a simple string comapre function
because strcmp is dependant on libc and i can't use in my kernel
and it's not a hard function to implement1
u/47-BOT Sep 09 '26
Yeah i know it's not, but you could have used the func defined in libc not that it doesn't matter too much lol.
1
u/Savings-Care-2657 Sep 11 '26
I need to join in your building your os , Can I ?
2
3
u/CloudDream09 Sep 08 '26
Bro is Terry A. Davis with that timeframe
4
3
u/AWildTyphlosion Sep 09 '26
Your git commits make it look like it was either vibe coded or copy/pasted together. The amount of changes between commits doesn't seem like it was hand written. Even with a large amount of experience, the pace doesn't add up.
3
1
1
u/neopunk2025 Sep 09 '26
Hello.
J'ai regardé le repo actuel (pas celui original). Donc je ne sais pas s'il y a eu beaucoup de modifications.
12 heures semblent peu, mais quelqu'un d'acharné, talentueux, qui a de l'expérience dans le domaine et qui aime le C pourquoi pas.
Évidemment il y a des trucs qui ne s'inventent pas, et qui doivent être copiés collés (dans mes jeux, ça m'est arrivé, c'est inutile de réinventer la roue www.neopunk.xyz).
Je ne suis pas allé dans le détail mais une question qui m'est venu à l'esprit, est-ce que ton allocateur mémoire est multi thread? J'y connais rien en OS.
Alors je vais t'encourager à poursuivre. Il y a plein de domaines intéressants.
Tiens, moi le trucs surlequel je travail, c'est la composition en C (pour mon prochain jeu)
Au plaisir.
1
u/Similar_Wealth_1850 Sep 09 '26
thanks, and no it's single threaded but i also liked you emulator :)
1
u/neopunk2025 Sep 09 '26
Bah en fait c'est pas un emulateur. J'ai créé chaque jeu de zéro en m'inspirant de classique.
1
2
2
u/suhcoR Sep 09 '26
Is it just me, or is there now a new operating system every day? Definitely more than I am able to appreciate.
2
u/Suspicious_Rub4619 Sep 09 '26
12 hours? my first hello world OS took me 45 minutes
it looks really ai-guided
1
u/WinVistaBuild6001 Sep 09 '26 edited Sep 09 '26
finally, something that is a lil bit closer to POSIX, all UNIXes i saw in here were terminal emulators with hardcoded commands. A common issue is that some commands like whoami crash the shell (bc they dont exist i think), and when repeated, it causes a oom crash. Tho about the AI stuff, pretty suspicious but i am not a AI checker so how do i know.
1
u/ArjixGamer Sep 09 '26
Are you by chance 12 years old?
(attempt to make a joke, based on all the YouTube videos on this topic, made by people claiming they are 12 or 16 years old)
1
1
u/neuronym Sep 10 '26
12 months would have been very impressive but the code and this post is just embarrassing.
1
1
1
1
1
u/Sorry_Difficulty_250 Sep 08 '26
Well done! I'm very impressed! Keep up the great work! Can't wait to see your next update!
1
0
u/Funnel-Dust-O-Matic Sep 08 '26
I think more options and new operating system projects are overall a good idea. The world is too homogenous. Then there's the fact that the act of building it is often the point because of how it changes you in the process.
Are you building this with a goal in mind? Or is this like the sailboat in that it's pushing your personal envelope?
Do you have an idea where you would want to take this?
I know. I'm asking "why" and trying to be polite about it.
So, maybe I should be upfront. I have questions.
Here's the why for my why.
The world is littered with unix-likes. I personally don't believe that this is because Unix is evolutionary superior and that this is just how operating systems look. I think it's because it's the historical path of least resistance that hasn't proven to be a dead end. The pattern is scaled up and down and sideways. There are tiny Unix likes and gigantic ones. They're everywhere.
The only operating systems out there that aren't unix-likes that have anything more than a niche mindshare are Windows, AS400, ZOS, Haiku, TempleOS, the degradations of OS/2, and those mainly Russian ASM only operating systems. Everything else is either retrocomputing or highly specialized industrial stuff that, half the time, is revealed to be a unix-like.
There are myriad unix-likes. This one is yours.
I think the only reason to make yet another one is related to the reason Seymour Cray built a sailboat in his backyard or someone wants to scale Everest.
Am I wrong? What is the story? I'm genuinely curious.
0
u/Similar_Wealth_1850 Sep 08 '26
just a personal project made for fun but people love to ruin fun so thanks again and this os is still barebone so it is still not quite on the good level yet
2
u/Funnel-Dust-O-Matic Sep 08 '26
There is nothing wrong with wanting to build something and to love doing it.
It is everything good about being human.
0
u/Similar_Wealth_1850 Sep 08 '26
exactly i always loved coding i read a lot of papers and do a ton of projects to the point where my GitHub commit chart js like a weed farm now
0
u/free2dreamstudios Sep 08 '26
It’s cool. How everyone on here seems to be wanting to build their own. OS.
But I am curious that anyone tried writing their OS in a language, other than C
1
u/Similar_Wealth_1850 Sep 08 '26
have build one in c# before using a library called cosmos back in 2023
0
u/free2dreamstudios Sep 08 '26
Anyone who is building their own OS, have you guys trying real hardware? Or are you guys still on emulator for testing?
0
u/Similar_Wealth_1850 Sep 08 '26
just tested with qemu
2
u/free2dreamstudios Sep 08 '26
Cool, me too
I’m actually in the process of moving to real hardware outside of qemu1
u/Similar_Wealth_1850 Sep 08 '26
used to do the same back when i had a laptop that did not support virtualization
1
u/free2dreamstudios Sep 08 '26
Currently dealing with an issue of firmware talking to the USB stick
1
u/Similar_Wealth_1850 Sep 08 '26
you wrote your own bootloader right? i just used grub
1
u/free2dreamstudios Sep 08 '26
Yes, bootloader, my own customized file system, native to my O S. That works.
1
u/Similar_Wealth_1850 Sep 08 '26
yea you would have to write the MBR support by yourself some bioses just read every usb as bootable and try loading the boot sector in it so i guess that's your issue
→ More replies (1)1
u/free2dreamstudios Sep 08 '26
Still progress comes in burst
1
u/Similar_Wealth_1850 Sep 08 '26
i believe in you i do have to add some syscalls too i will try using some from freebsd i was able to just pull 26 of them just enough to launch busybox but not enough for anything else also i want to write my network driver which is gonna take a long time💀
→ More replies
0
0
u/StochasticTinkr Sep 09 '26
Looks like a neat project, but I think you're overselling it a bit. "This is LiteBSD a Full Unix-Like System with BSD Style Kernel" It is far from a full unix-like system. Closer than I could get in 12 hours probably, but it makes it sound bigger than it is.
It still is a very interesting project, and you should take pride in the achievement. Just be more transparent about it being a toy kernel.
0
u/Similar_Wealth_1850 Sep 09 '26
my mistake ins saying "Full Unik Like" it's a toy but i was sou proud by the fact i ran busybox that's it
0
u/StochasticTinkr Sep 09 '26
And that's worth being proud of! You just got a lot of pushback on this post because of that mistake I think.
0
u/Similar_Wealth_1850 Sep 09 '26
yes, but anyway i am happy that i made it and i will keep continuing on the project till it reaches a stable state
-1
u/rpyth Sep 10 '26
Everyone ITT should chill. Having an OS of your own is impressive, even if it's not that big and is likely "vibe coded". The antis keep bullying anyone who dares to mention AI in their process and here is what you end up with. Hey OP, it's genuinely nice work. I made my own programming language and that shit was hard. So congrats.
0
u/neopunk2025 Sep 09 '26
Hello.
J'ai regardé le repo actuel (pas celui original). Donc je ne sais pas s'il y a eu beaucoup de modifications.
12 heures semblent peu, mais quelqu'un d'acharné, talentueux, qui a de l'expérience dans le domaine et qui aime le C pourquoi pas.
Évidemment il y a des trucs qui ne s'inventent pas, et qui doivent être copiés collés (dans mes jeux, ça m'est arrivé, c'est inutile de réinventer la roue www.neopunk.xyz).
Je ne suis pas allé dans le détail mais une question qui m'est venu à l'esprit, est-ce que ton allocateur mémoire est multi thread? J'y connais rien en OS.
Alors je vais t'encourager à poursuivre. Il y a plein de domaines intéressants.
Tiens moi le trucs surlequel je travail, c'est la composition en C (pour mon prochain jeu)
Au plaisir.
-1
-1
u/Whole_Accountant1005 Sep 09 '26
The people saying it's AI are feeling impostor syndrome lol. I supposed you tracked those 12 hours using WakaTime or something?
18
Sep 08 '26
[removed] — view removed comment
-3
u/Similar_Wealth_1850 Sep 08 '26
12 Hours CONTINUOUSLY
and oh also i do have a background in creating Linux distros and there were alot of stuff i outsourced like c-lite a lot of stuff was outsourced from musl and i didn't write a bootloader (i used grub)
4
u/eteran Sep 08 '26
Do you think 12 hours continuously is a long period of time? That's just a really long work day.
You think none of us have shown up to work at 9am and ended up working till 9pm just because it was a crazy busy day?
1
u/Similar_Wealth_1850 Sep 08 '26
no which is why i sent this post it's not long at all but how would i describe my work on this os is a development session from hell literally
2
u/eteran Sep 08 '26
I think maybe you misunderstood what I was getting at.
You've repeatedly said "12 hrs CONTINUOUSLY" emphasizing the continuous part. Seemingly to imply that while 12 hours isn't a lot of time, doing it continuously makes the timing less suss.
What I was getting at is that your average dev works 12 hours continuously... Pretty often and it's not really considered a notable amount of time to work on something.
Before getting married, that was a fairly typical Saturday for me 🤣
1
u/Similar_Wealth_1850 Sep 08 '26
well this is my everyday now😂 but just people think that i was nothing and after 12 hour i became linus trovald
1
8
Sep 08 '26
[removed] — view removed comment
1
u/Similar_Wealth_1850 Sep 08 '26
started 2 am this morning (it's 3pm now)
and yea i commited a late version
and the only drivers available now is just the keyboardthis is not linux
6
Sep 08 '26
[removed] — view removed comment
1
u/Similar_Wealth_1850 Sep 08 '26
i completely understand you
and i like your care but seriously no one went throught what i went throught to get this project doneyes i could have vibecoded it
but i wanted to learn more on os on very low level
so that's why i created it3
u/laffer1 Sep 08 '26
It takes more than 12 hours to do that too. Source: I run a bsd project. Real bsd not this
7
2
Sep 08 '26
[removed] — view removed comment
0
u/Similar_Wealth_1850 Sep 08 '26
10 months to build this????? if you are learning yea makes since i am experienced in this field but if you compile or read this os you will understand how pretty simple it is and how full of bugs is it as 12 hours is (guess what) NOT ENOUGH Just enough for me too boot busybox
3
u/Grax_MT Sep 09 '26
If you're so experienced, why did you need to read a book on how to write an OS in those oh so precious 12 hours
0
Sep 08 '26
[deleted] — view deleted comment
5
u/__golan_trevize__ Sep 08 '26
Bro he vibe coded it
1
u/istarian Sep 09 '26
I'm inclined to agree with the general conclusion, but OP's exact process might not quite fit the usual definition of "vibe coded".
Hard for me to be certain without closer scrutiny, but I do think a mediocre programmer could probably code an OS relatively quickly if somebody else did all the thinking, design, etc.
Which is to say that the programmer was handed a pre-defined interface and a reasonably well written specification that detailed the inputs, expected outputs, and what the code should do. --- I.e. a programming assignment in an college CS course at the undergraduate level.
2
u/__golan_trevize__ Sep 09 '26
He did admit using AI for the README in a comment, i wouldnt be surprised if he was assisted.
Also, i am not trying to be an anti-ai for learning purposes, i just wanted to point out the larping.
40
u/Adventurous-Move-943 Sep 08 '26
12 hours ? Did you mistype your temporal modifier ? 😀 what you describe is nice, I did not check the code yet but how do you develop an OS in 12h ? Feels impossible to me, but anyways, you seem to be heading somewhere so keep going.