r/freebsd • u/TheAtlasMonkey • 6h ago
AI I reverse-engineered FreeBSD and rewrote it in Odin.
Hi r/freebsd,
Here is my clean-room reimplementation of FreeBSD in Odin.
I wanted to rewrite it in Rust, but that's a language I already know. The roadmap included a Pro Edition written in Rust and a Standard Edition written in Ruby.
To do this properly, I needed to pick a language I don't understand, so I could nod at every decision the model makes without introducing human bias.
The entire OS runs in Ring -4, just below Intel ME. Intel ME now runs inside its own jail. (Don't ask me how... the tests is green)
There are no kernel panics. If something panics, Claude takes over and fixes it in production. I call this Panic-Driven Development (PDD).
There are no device drivers either. Astra dynamically generates stubs for your hardware on the fly. Hardware compatibility is now a prompt engineering problem. Describe your hardware to get the driver.
The scheduler is powered by an LLM. Processes with better-written prompts receive more CPU time. Caveman get garbage collected.
Memory leaks are automatically resolved by increasing the context window or switching to a newer model.
Benchmarks are coming soon, once the model decides what numbers would best reflect the architecture.
Donations
Developing an operating system is expensive, especially when you have to pay for tokens instead of developers.
If you believe in the future of autonomous operating system development, please consider supporting the project.
BTC: 1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa
The text above is satire.
But yesterday, I saw someone presenting an NVIDIA driver written in Rust for FreeBSD as if it were a technological breakthrough. It got 300+ stars and 30+ forks, with three issues unanswered and zero external contributions.
These are software content farms.
Think about it. If you achieved a breakthrough in reverse-engineering modern NVIDIA hardware, Linux would be thebetter target, given its ecosystem and user reach.
FreeBSD was targeted because the Nova driver already exists in Linux. The code is authored by NVIDIA themselves with modern Rust 2024. We got Rust edition from the Covid Era 2021.
The code does not work as predicted. Yet it presented with benchmarks involving H100s, H200s, every 30/40/50 series. The LLM just copied code and facts from the GPL code early this year.
Last year, I asked Claude to get Wi-Fi working. It modified some code, installed the driver, ran benchmarks, and presented impressive Wi-Fi 6 speeds.
There were few errors that made me say WTF:
- The wireless card was from 2010-2009. (We had wifi 4 then)
- FreeBSD did not even have the Wi-Fi 6 infrastructure at the time.
The model had used grep wrongly and end up benchmaking the 1000MB Lan connection which was already working. The Wifi was just attaching to the hardware, it was not sending frames or receiving. The WPA3 code did not exist.
I'm not complaining about AI or gatekeeping anything, in fact i will be happy if i speand yesterday time to test that crap and it worked correctly, i might even have contributed to it, so we can rewrite it later in C and land it.
When i launched ChaosBSD, i was contacted by these farms, they offered me 10k stars for 1k USD in crypto. My fork will have more github stars than FreeBSD-src itself in 1 month, all fake or hacked accounts.
But the bigger issue here, is that LLMs learn from their own SLOP and enforce it. They are like politicians, they lie, then believe the lie.
You will ask me "How do that affect me or FreeBSD ?".
Most of our free work comes for an itch contributor(s) face or want to work on ( A button that dont work, light that don't turn off, brightness that dont cna't be controlled)
When you poison the documentation, that work become exponentially harder, especially if you want fill the provenance of the information or code. We do no always have official PDF from the vendors. We depend on the thousands of hours that other engineers did. Now we have a ton of plausible sounding slop in the wild.
Also think about all the people that will lose their time and mind thinking there is something wrong with their setup because they could not get the same gain/result from a repo with 200+ stars.
Just to wrap up: Gemini thinks i'm an OS.


