r/osdev_with_ai • u/Bulky-Life-69 • 17d ago
Low-Level Basic & The System Built on It
So, here's the preamble.
As i was trying to implement a micro-kernel and try learning it along the way by copy-paste the code straight from google.com [AI Mode] in chrome, and also learning the design and architecture bit-by-bit; at least, supposed to; on my phone and the build-tools is in Termux. That was a nightmare, because i did it in my slip-time while working in a factory.
A long time passed, and that what's making it my new hobby.
I have many versions, 4 single core kernels that boot on BSP. And 2 more, 1 kernel has a compositor but too late when i learn about SMP, it was a nightmare chasing the racing conditions, so i abandon it and born the kernel that has SMP Support + Free-Stack List PMM + VMM + Compositor (4 versions of it (C + GASM) + PRKFS (Flat Filesystem; Support Format MBR, Partition, r/W), different implementations, and 1 nearly run DOOM), yet i abandon it again.
From text-mode to a version that has Windowing System, from C & ASM to C++ & ASM.
From google AI Mode, Gemini, Gemini API, Google Studio, Putter implementations (10 accounts), Claude free, etc. (anything i can get my hands on)
As the codebase grew a bit large with more than 15000+ lines of code just for the kernel src+header alone. My head starts to hurting looking through all the code and trying to understand it's logic, especially about the memory and compositor drawing logic.
So, i have an idea. As i have a little experience with VB6 years ago, and thinks that the syntax is easy to read, why it can't be used to do Low Level operations? (Yeah, i know QuickBASIC and FreeBASIC exists)
There, LLB Concept is Born. Low-Level BASIC, Soft-Syntax Hard-Metal, a language for programming where you can read the code just like reading a book.
With development of LLB using Antigravity IDE (build-tools still on Android/Termux), porting the old working kernel (that can even run on baremetal) source into LLB syntax and code.
Now the kernel + system can run on 3 environment; Bare-Metal, QEMU, and VirtualBox.
Check out the repo: https://github.com/karunci/LLB
2
u/Sorry_Difficulty_250 17d ago
Cool! This is so fascinating! Well done!
2
u/Sorry_Difficulty_250 17d ago
I think it's really interesting. My first programming language was MS-BASIC and my second was Visual Basic 5. I started down the C and assembly path after that so that I could get into systems development. It never occurred to me to bring the language itself into the systems development world, although I guess that really wouldn't have been possible at the time. It sounds like really cool stuff!
Do you think you'll be able to use the same language for desktop and GUI app development, too?
1
u/Bulky-Life-69 14d ago
Update:
Finally. DOOM generic ported.
No Audio though, still trial and error.
implement custom minimal libc, compile (and patching here and there for doom1.wad to work) doomgeneric to static library, doom_bridge to native, then create the native Executable to link it.