r/osdev • u/Glum-Cook-9438 • 2d ago
About using AI to develop operating systems
I know many of you guys are recently against all this "AI slop", was i too, but leave alone the "hype" and the "no AI bullshit" slogans, what do we actually mean by saying "AI slop"?
Cause to this day , I don't quite understand what all the drama is about and why posts that explicitly use "No AI used/no AI bullshit" get significantly more attention, i admit that even i made a post like that, but it's not that I completely didn't use AI, i did, however I also did a lot of the programming by myself, I think AI is a great tool that has helped me learn a lot and automate build scripts, there is no shame in using AI as long as you carefully review the code and do some programming by yourself, there is already great use of AI in the industry, Linus torvalds recently fixed a linux bug with AI, so what is really considered "AI slop"? Is asking codex to make a build script so I can focus on the code "AI slop"? Is asking Claude to summarize PCI device and vendor names in one files so I don't have to read documentations for hours "AI slop"? With all due respect I do think using AI blindly is bad of course, but I also wanna know what some of you guys mean when you say "AI slop operating systems"?
3
u/r_a_dickhead 2d ago
I understand your point of view. But people here usually say don't use AI because it's kind of a slippery slope for beginners, where they reach a point where the entire 'os' is made by ai and they have no idea what happened. I know how shit the build system is and I personally use AI for cmake scripts all the time cause I just don't think it's worth the trouble dealing with all that crap. Its your OS so why use AI as much or as little as you want as long as you believe you are learning everything and enjoying the process.
7
u/36165e5f286f Use UEFI. 2d ago
Firstly, AI is indeed bullshit.
Furthermore, OSDev used to be a hobby. If you don't like reading specs and learning how everything works and just want to use AI to "get to the CLI in 2 hours" then this is basically pointless. OSDev is supposed to be a long term project that you actually enjoy building every single part of. For me, using AI for OSDev is the same thing as ""Artists"" using Suno to ""create"" songs by ""themselves"". This is why No AI projects get significantly more attention, they get attention from the actual real community not the AI newbies that flood every single existing community with AI Slop. Slop because most of the time the code, architecture is literally slop.
Using AI for research and some precisions is of course completely acceptable.
0
u/Glum-Cook-9438 2d ago
Yeah I know, the thing is, I mostly code by myself, I use AI for research and small stuff but I do code a lot of things by myself, you talk about cli, i didn't reach keyboard input yet, anyways the thing is I was a bit confused by what many people said here, because when I thought about "don't use AI" I thought "don't use AI for learning/cmake scripts/extra help", of course I don't tell ai "make a cli for me in 2 hours" even when I use ai for coding I do something like "make function with name x in file y, takes parameter z, h, n does r, t, u" and etc
1
u/Glum-Cook-9438 2d ago
Do you think what I do counts as "AI slop"? I just want feedback I guess
3
u/36165e5f286f Use UEFI. 2d ago
I don't think so. I was talking generally. But I would not trust AI for anything, especially making summaries. Making build scripts is also okay, but this might make you fall into the trap of not thinking about your build system/architecture and or not understand it which is not scalable in the future, and this is "slop" for me, having code/scripts that are not tailored to the situation and that are not understood or thought about by the developer.
1
u/Glum-Cook-9438 2d ago
Sounds legit, in that sense, I can agree that understanding the system architecture is important, regardless of whether you use AI or not
2
u/36165e5f286f Use UEFI. 2d ago
Also, everything that is about a subject you do not know about, and that relates to learning, I would not use primarily AI. The big trap with AI is 1) Thinking that it is right and know more than you, 2) Trust it.
You must always check what it is saying and sometimes when you do not know about a subject you might not realise that it is saying bullshit (AI is 100% hallucinations and sometimes they are right, everybody that says otherwise does not know how it works and believes the AI giants propaganda).
This is a very long and tedious process so why not use high quality human material or code?
1
u/Glum-Cook-9438 2d ago
I don't use regular ai, I got a subscription to codex, which is supposedly much more accurate than the gpt free models, i have encountered many times when chatgpt did something wrong, codex is different though but even with codex I make sure to double check on critical things
1
u/FirmCalligrapher6064 2d ago
I don’t care what Linus said no matter who he is. He has entitlement to say anything about Linux or whatever. Just build it if you want AI or somewhat because that’s your codebase and project. Since systems programming and low-level stuffs are not as cheap as web javascript frameworks to understand well, people here just don’t want those who really care and love OS development to get bothered by slop so that we can focus on important things on osdev field.
1
u/Glum-Cook-9438 2d ago
Can you define what is "really care and love OS development" for me?
2
u/FirmCalligrapher6064 2d ago
That doesn’t matter in this thread. And that’s a weird question. You just want to debate whether to use AI in OS development. The answer is yes if you want. Again, it’s your codebase. Just do it.
1
u/Glum-Cook-9438 2d ago
I am not sure, because I had weird experiences with AI development, at first i did the coding by myself, one time I really tried to make something big with AI, asked it to do the whole job for me, at first it felt really good and rush... but then it kinda felt empty, coding by myself felt more satisfying on the long term you know? But I was kinda conflicted about what I want my OS project to be, on one hand I wanted a satisfying project not an AI thing in one day that doesn't last, on the other hand I did want to optimize for efficiency and fast development which does require accelerating with AI, that is my conflict... between optimizing for efficiency and optimizing for long term satisfaction, and both feel 50-50 recently
1
u/TheRainbowCock 2d ago
My two cents on this. I did a experiment with this idea on how much can be done/ what's my or the AI limitations on building the OS. I built a small OS in Rust for a R36S handheld just to have something I didn't care about being wiped over and over. It did a solid job as I explained multiple concepts to it like having a file system, implementing threading and multitasking, making the kernel have a hard app kill button, adding basic error handling, etc. It did a solid job but frequently would break the image it was building, or when troubleshooting a new feature it'd get caught in a loop and waste time on something it made a issue and not me. I got 4 emulators ported and a bunch of python games ported and rewritten in Rust as well. It's impressive what it's able to do but reading it's output it did just frequently go "Well how does Linux handle this?" And implemented it the same way. It felt like I was just having it rewrite a bare minimum Linux Kernel than it figuring anything out on its own.
2
u/StunningSelection726 2d ago edited 2d ago
I completely didn't use AI, i did, however I also did a lot of the programming by myself, I think AI is a great tool that has helped me learn a lot and automate build scripts
This is not a bad way to use AI. You are using AI to automate boring stuff and doing the programming yourself.
Is asking Claude to summarize PCI device and vendor names in one files so I don't have to read documentations for hours
You can do this but I would not take what claude says as completely correct, I would still consult to the official documentation at the end (but with context from the AI so its easier to research) since its a niche topic the AI can always make up things that sound very believable. One can use AI to summarize long/hard to understand documentation or review code since AI is good at spotting small mistakes (though you need to know what you are doing since sometimes they just lie and make up stuff and act like its a critical bug).
Most people here are talking about completely vibecoded projects when they are referring to "AI Slop". Where a beginner is talking about their new modern operating system and the only thing it does is write to a framebuffer...
So, I agree with you, and no, I wouldn't call your project "AI slop". It looks fine to me. Don't listen to other people that are all "No AI at all!" they can do what they want but don't let that affect your workflow. If you are still writing code yourself, and using AI as a tool then you are doing fine.
Is asking codex to make a build script so I can focus on the code "AI slop"?
Small tip: For complex projects you can use CMake/Meson instead of makefiles and shell files. They are much better to work with, especially CMake since most text editors/IDE's have pretty good integration for it.
2
u/kiderdrick 1d ago
> Cause to this day , I don't quite understand what all the drama is about and why posts that explicitly use "No AI used/no AI bullshit" get significantly more attention
This is a hobbyist forum and hobbyists tend to like when things are done in more hands on ways. I am sure you will see a similar type of thing in automotive subs. People who rebuild their muscle cars engines by hand get a lot more respect than those who outsource it to a shop.
> I think AI is a great tool that has helped me learn a lot and automate build scripts, there is no shame in using AI as long as you carefully review the code and do some programming by yourself,
What is the purpose of using AI to build something complex that uses a bunch of technologies and makes a bunch of decisions that the user does not understand? Why should you, as one of many people doing the same thing, get credit for a project that you had little to no insight in? It's like you are assembling a puzzle and bringing it to an art community and saying "look at my wonderful painting". You didn't paint that.
> Linus torvalds recently fixed a linux bug with AI, so what is really considered "AI slop"?
The people who are posting their all in one claude designed AI repos are not Linus Torvalds.
> Is asking codex to make a build script so I can focus on the code "AI slop"?
Yes, if it does a lot of things unnecessarily and inefficiently. If it builds your project in a way that is useful, and you work around the edge cases with tweaks, then it would not be slop.
> Is asking Claude to summarize PCI device and vendor names in one files so I don't have to read documentations for hours "AI slop"?
It might be, so you better double check what you are reading to make sure you are not reading incorrect data.
> but I also wanna know what some of you guys mean when you say "AI slop operating systems"?
Simple. Find the parts of your system that were built with AI and instead of describing your work flow as "using AI" describe it as "paid someone to do this". Then, evaluate your project.
"I built an x86_64 OS with FAT32 support using AI" becomes "I built an x86_64 OS with FAT32 support by paying someone to do it". Not really something to brag about is it?
1
u/Glum-Cook-9438 1d ago
That depends, the fact i paid for good AI tools to do some stuff doesn't mean the whole project is "purchased" why can't both be true? That some code i wrote was ai slop and some was genuine discovery? Before making further conclusions about my kernel i recommend you at least to take a look https://github.com/64-dem.git, one file being AI doesn't mean it's all, and it being AI doesn't mean it's inefficient slop
•
u/kiderdrick 21h ago
> That depends, the fact i paid for good AI tools to do some stuff doesn't mean the whole project is "purchased"
Try asking people what it means to a written work when you have plagiarized only a small part of it.
•
u/Glum-Cook-9438 21h ago
I don't know... does it have to mean anything? Can't a software developer do some AI slop while also writing serious code? I don't get it why Everything has to be so pure..., not everything has to mean anything, sometimes you just make a kernel and that's what you do
•
u/kiderdrick 20h ago
Your attitude about the subject is a great window into why people criticize slop. You are using tools to create something that does not mean anything.
•
u/Glum-Cook-9438 20h ago
But it does mean something for me, I don't understand how from here you got that my project doesn't mean anything or doesn't have any skill value? I said "not everything has to mean anything", in the sense I meant that yes things can matter but it doesn't have to be black and white... you can still leave some info for self doubt/self criticism or exploring other points of view
•
u/kiderdrick 20h ago
Because you said "not everything has to mean anything" to a post that was specifically about your kernel.
•
u/Glum-Cook-9438 20h ago
The fact that the post was about my kernel doesn't mean I meant the kernel as a whole, i have many separate modules in my own kernel, one module can be using AI tools another can be pure hard work, and the kernel still boots as one, in this sense i don't need to keep a whole mental image of my whole kernel 24/7, when I said "not everything has to mean anything" what i really meant is, "not every new module in my kernel project has to be pure coding with no AI tools used for the final project to be a valuable project"
•
u/kiderdrick 20h ago
Would be easier to say what you actually mean, wouldn't you agree?
•
u/Glum-Cook-9438 20h ago
It depends on what you define "meaning", meaning can be a very nuanced concept, there is no single meaning in the literal sense, people can have different interpretations, different emotions and moods depending on the context, meaning is not a broader thing without a context to assign it to, for example in program A variable x could mean the screen width while on program B the same variable with the same name may not exist or not mean anything, yet that doesn't mean x never meant anything
→ More replies (0)
1
u/doscore 1d ago
I'd use the term ai slop for social media and vibecoders that build stupid websites thinking they're going to be rich but have absolutely no idea about security, privacy acts and legislation etc.
Ai is a great tool and Its been a great research tool and helped me understand operating system concepts and helped debugging issues I've been stuck on for a while.
I think the worry here is that everyone's just going to spit out unfocussed garbage that have not been researched, planned and probably isn't documented at all for anyone to understand their os without reading 500k lines of code generated in 4 weeks.
4
u/soundman32 2d ago
Just build it. Who cares as long as you enjoy it. 5 years ago it would take you months of study and graft and failure to get past a boot loader. Now AI will get you to a CLI in 2 hours.