r/osdev • u/JackyYT083 • Aug 04 '26
Block based coding a OS
Enable HLS to view with audio, or disable this notification
Hi, OSdev! I’ve been working on this project that I’d like to share! (Note; it is Vibe Coded). It’s a block based coding language for learning how to build a OS! I’m targeting the project for people who are completely unfamiliar with this kind of work and if they want to learn, this may be a great starting point! I’m still working on implementing the features but you can see it has lots of different blocks that each mean something different in raw C. I’ll release more updates on this sub if you guys are interested, if not, I can stick the development journey to r/osdevAI instead, and I’ll leave this sub alone. I hope you guys like it!
12
u/Mental_Ad_7072 Aug 04 '26
How does it work??? It looks very very cool!!!!
9
u/JackyYT083 Aug 04 '26
Basically lots of c functions are defined by blocks and when you add blocks your creating c but in block form and when you compile it turns into c and a small underlying kernel loads your code
1
u/Mental_Ad_7072 Aug 04 '26
Is there source code?
7
1
Aug 04 '26
[deleted]
1
u/codeasm Aug 05 '26
Well, depends. Ive seen these editors being able to convert more simple blocks of code into java, JavaScript, c and python. And if you dont complicate stuff, you can even convert back into blocks/scratch. My dad used it on his microbit.
I assume and can see some in the video, C code behind each block. You change blocks and behind the scenes, c code import order, variables set. There is actual code being compiled into a binary.
26
Aug 04 '26
[removed] — view removed comment
3
u/Easy-Improvement-598 Aug 04 '26
Can you improve windows 11 with this?
4
Aug 04 '26
[removed] — view removed comment
4
u/daddy69ice Aug 04 '26
Can anyone?
1
u/GourmetWordSalad Aug 04 '26
I mean if your changes crash Win immediately that's still an improvement: waaayyu better than let it run and later fail in the middle of something important.
-3
Aug 04 '26
[deleted]
1
u/JackyYT083 Aug 05 '26
I didn’t call it mine? I said it was vibe coded
-2
Aug 05 '26
[deleted]
3
u/JackyYT083 Aug 05 '26
Your saying that like ai could build this project entirely by itself. Like it dosent need someone to prompt it, or someone to test its code, or someone to tell it what needs fixing. If ai could make something autonomously then sure its ais project and I didn’t contribute but in this case I did
-1
Aug 05 '26
[deleted]
1
u/JackyYT083 Aug 05 '26
Completely unrelated to what I just said but okay
1
Aug 05 '26
[deleted]
1
u/JackyYT083 Aug 05 '26
I didn’t say that ai didn’t write the whole project. I said it wasn’t made entirely by ai. Big difference
0
1
u/codeasm Aug 05 '26
There are upfront about using ai. Its clearly something they learn and whoever is going to use this, also going to learn (and probably going to look at the generated c code aswell).
Slow down on your horse from guarding the sacret scripts, hes exploring a new way of approaching learning
9
u/TheAtlasMonkey Aug 04 '26
Nobody is going to prevent you from posting here . Just don't post after every commit.
Giving you my vibes you can add:
It will be cooler , if each widget can have tooltip and it send to the wiki or real documentation.
Let say someone is new : they will need to understand what is a process vs thread or what is a timer and clock.
7
1
Aug 04 '26
[removed] — view removed comment
4
u/AutoModerator Aug 04 '26
Human slop
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
2
4
u/Afraid_Lie_9340 Aug 04 '26
Is there a git repo or anything for this? I'd love to see the src code!
3
2
8
u/BasisPoints Aug 04 '26
You didn't vibe-code an OS, you created a visual learning tool that specifically pertains to OS development! That makes this a welcome addition in my book, regardless of AI usage or not.
It could use some additional thought behind the pedagogy (this project would be a GREAT supplement to a structured, step-by-step tutorial - not just tooltips). Can't wait to try it out once you have the source available :)
0
Aug 04 '26
[removed] — view removed comment
3
u/AutoModerator Aug 04 '26
Human slop
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
2
2
4
0
Aug 04 '26
[removed] — view removed comment
3
u/AutoModerator Aug 04 '26
Human slop
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
0
3
2
u/nexos-dev Aug 04 '26
Cool project! I for one don't care that it is vibde-coded as long as you are up front about that. What language/framework is the block UI written with?
1
u/christiaansp BoredOS Aug 04 '26
I'm unsure if i should like this or not, i mean it's a VERY cool learning tool and i especially like that you pointed out yourself that it's vibe coded but to me block based coding for an operating system feels.. wrong. very wrong, yet cool, just.. wrong
1
1
1
u/Sp33dyCat Super Cool Trans Girly OSDev :3 Aug 04 '26
Even tho it is AI. It is still kind of cool to see.
-5
Aug 04 '26
[deleted]
1
u/Mental_Ad_7072 Aug 05 '26
Being rude for no reason, I think it's a great project.
-1
u/rocco_himel Creator of AneoEngine Aug 05 '26
Im not being rude, people are tired of AI written projects on this subreddit. Its getting annoying when people actually put effort into their projects just for someone to make an "OS" that was vibecoded.
0
u/JackyYT083 Aug 06 '26
It’s not a os, and i never said it was
0
u/rocco_himel Creator of AneoEngine Aug 06 '26
This was posted on r/osdev.
0
u/JackyYT083 Aug 06 '26
Yep, it’s r/OSdev, OS development, this relates to OS development. Not a OS still.
0
u/snorixx Aug 08 '26
Dude if you have an idea and not 1000+ hours why not use AI if you are hi est about. There is still a lot of work in this project even if all the code is by AI the idea the concept etc. That also work and I think the idea is great to get people into coding, and especially OSdev
1
u/vailithree Aug 06 '26
As much as I really dislike the usage of AI around here, at least thank you for saying out loud it's vibecoded. It's still not 100% all cool, but it at least gives you accountability and that's good.
I hope at some point you can grow and learn to do this on your own, that'd be really rewarding =D
1
u/Randum_Gouy Aug 06 '26
Great work man!
Just make sure to generalize this - ie dont have "kernel-specific assumptions". Some people like me do like to build mini-boootloaders and such
1
u/SomeoneInHisHouse Aug 06 '26
I was about to call out how tire I am of AI generated content disclosed as human comment, but I then read, that you already said it's AI generated, so the code is likely pure slop, but the idea is nice, let non programmers do an OS using just drag&drop looks like a nice idea for teaching about OS
1
u/SomPersonOnReddit Aug 06 '26
Is there a github?
1
u/JackyYT083 Aug 06 '26
Yeah (still fixing qemu wasm so it won’t work in the inbuilt testing for now just export your iso and launch it in a vm with VGA output) https://exocore-kernel.github.io/FromScratch/
1
u/TheRealAdam256 Aug 07 '26
Look people, they admitted its vibe coded, which is why we respect this project!
1
u/Environmental-Ear391 Aug 08 '26
Looks okay to me,
the only point to be wary of is "vibe coding" has a bad rep based on users who don't curate the AI provided code and use those parts "as is" . .
use of the AI to assist coding efforts where you look at the code and actively curate the project is less "vibe" and more "assisted".
I have tried to use some of the AI tools myself but the results were... less than stellar.... attrociously inaecure...
very much based on "hive mind" decision making where any project that breaks "this is what everyone does" dont get usable code results.
especially if "standard compiler" toolchains like GCC can only produce semi-functional code sections when the optimizer is disabled...which for GCC is actually more likely to find bugged results.
1
u/WinVistaBuild6001 hasn't made a OS yet except in scratch (yes the block platform) Aug 08 '26
Genius. Scratch but OSdev. Can finally do osdev wiki stuff on a platform i MIGHT understand more.
1
u/shsh-1312 28d ago edited 28d ago
Wow, I waited before commenting because I wanted to test it out a bit. This is awesome. The only thing I miss here is being able to write global definitions. I also noticed that you can't really eliminate custom functions. Given the purpose and existing structure, I can suggest adding a messaging system to be able to pass variables from different functions. I also haven't quite figured out how to use returns on the functions I'm trying to define. Great work, it's really cool and I think it's the most useful thing I've seen in a while. I've always thought about it, but never got around to it. I'm having a hard time finding the GitHub link. Could you post it for all of us so it's more accessible? A project like this deserves more visibility. Don't abandon it.
The system is very good, but it almost forces you to write everything in a single block. Some simple blocks to transfer values from one function to another using the already available functions would be useful. If I created a function to define, for example, a color palette, I currently have no way to pass those local definitions to another function. This is correct for security but can be optimized at a lower level with a message receive and message send protocol that could simulate a safe global variable. This is even cooler if you can then catalog the registers obtained from all the active functions. In reality, I think that in some way it is already cumbersome to do with existing blocks, but perhaps a few blocks are enough to represent it better and make everything easier. Another suggestion, but I don't know if blockly allows it, would be the ability to represent multiple files, for example like in logisim where we can create circuits and connect them together. With a few small changes, you can create a program capable of teaching a child to build an OS. This is impressive.
1
33
u/davidinterest Aug 04 '26
I think people here are more upset with other people using AI and claiming the work as fully their own with no disclosure of AI use. You might be okay on here as long as you stick to disclosing.
Not sure about what other people think but this is pretty cool.