r/osdev • • 1d ago

Ounce-Core v1.0 release

Enable HLS to view with audio, or disable this notification

What I've been building: Imagine building a miniature, software version of a modern computer chip (the same kind of ARM64 chip inside iPhones, Macs, and cloud servers) — completely from scratch, in code — so you can run real Linux programs inside it and prove that every single calculation matches a real physical chip down to the last bit.
That's what Ounce-Core is. Instead of just trusting that a simulator "probably works," I built three different engines inside it (a careful step-by-step engine, a faster translator, and a high-speed native compiler) and wired them up to automatically check their answers against real ARM hardware.
Why what I finished today is a big deal:
It runs real everyday Linux programs — including Python. Today I got real, unmodified Ubuntu Linux tools like grep, sed, sort, awk, gzip, tar, git, and Python (running real math, JSON, and cryptography libraries) working inside my own virtual chip and Linux layer. Getting real Python to boot and run inside software you built yourself is a huge milestone.
It passed brutal, industry-standard accuracy tests. It ran Berkeley TestFloat (the gold-standard test for decimal math accuracy — zero errors across 85 test suites), 5.2 billion instructions of a real hashing library (xxHash, 49,948 tests, zero mismatches), and hundreds of tests from real open-source Rust and Arm libraries — matching real hardware bit-for-bit.
I taught it modern chip features and made it twice as fast. I added support for newer ARM chip instructions (including modern vector math used by compilers to speed up heavy loops) and cut the main engine's run time in half on a 3-billion-instruction physics benchmark.
It's officially ready for version 1.0.0. Everything is tested, documented, and locked down into a clean, stable 1.0.0 release — website, docs, and safety checks all green — ready to launch on Monday.
In short: I built a verified virtual computer chip from scratch that can run real Python and Linux programs accurately enough to match physical silicon, and I just got it across the finish line for its 1.0 release.

0 Upvotes

21 comments sorted by

3

u/Relative_Dare8475 1d ago

>>What I've been building: Imagine building a miniature, software version of a modern computer chip (the same kind of ARM64 chip inside iPhones, Macs, and cloud servers) — completely from scratch, in code — so you can run real Linux programs inside it and prove that every single calculation matches a real physical chip down to the last bit.
---

Is this another emulator like bochs or mame?

1

u/Life-Seaweed-9957 1d ago

Not quite! There is some overlap in the underlying concept, but the objective is quite different.
Bochs is primarily a traditional PC emulator, while MAME focuses on emulating a wide range of hardware systems for preservation and compatibility.
Ounce-Core is an ARM64 execution and verification research project.
I’m building an ARM64 execution model from scratch in Rust, with a strong emphasis on correctness, reproducibility and independently verifiable evidence. This is all new territory for me, especially since it’s a completely different field to the one I’ve studied (psychology, industrial psychology, research psychology, and teaching); I’m learning as I go along and using the tools available to create something I’ve always dreamt of doing.

The interesting part isn’t simply getting software to run. It’s testing whether the implementation behaves as expected, comparing results against independent references, documenting discrepancies and being transparent about what works and what doesn’t.
Think less about building another general-purpose emulator and more about building a research and verification environment for ARM64 execution.
It’s still evolving, and independent reproduction is something I actively want from other developers.
So, related territory, but a different objective.

1

u/Relative_Dare8475 1d ago

So, this is similar to Bochs, in the sense that it emulates the ARM64 platform.

In fact, QEMU already performs the same function very well and supports a wide range of ARM platforms; so, what makes yours unique?

1

u/Life-Seaweed-9957 1d ago

QEMU is the better general emulator. It's far more mature, covers many more platforms, and I'm not claiming mine is faster. I'm not trying to replace it. A run produces a fixed machine-readable report (exit status, instruction counts, why it stopped) with a deterministic mode, so it can sit in CI and answer "does my build give the same answer on ARM64?". Three engines run the same program and are compared with each other and with a named reference: real ARM64 hardware runners and an Apple Silicon Mac. In some suites the reference is qemu-user itself, which is a limitation I've written down. Every result is saved with counts and limits in a public repo, including what was not checked.

1

u/Relative_Dare8475 1d ago

Got it, so the core idea is differential testing your own engines (interpreter vs. translator vs. JIT) and logging deterministic comparisons against hardware.

Two quick questions on that:

  1. If someone wants to know "does my build give the same answer on ARM64?" in CI, why wouldn't they just use a native ARM64 CI runner or qemu-user (which already supports -icount for determinism and has decades of Linux syscall edge cases ironed out)?
  2. Comparing exit codes, instruction counts, and final outputs on specific test suites is differential testing, not a formal proof of bit-exact hardware equivalence, especially when qemu-user is the reference in some suites. Does Ounce-Core compare full architectural state (registers/memory) step-by-step against hardware, or only final program outputs?

•

u/Life-Seaweed-9957 1h ago

Root cause bisection out of the box. 3 engines - which I’m improving on. We don’t run full programs as yet. I keep a strict record of what failed and where - saved evidence is bundled in ounce-artifacts. It has targeted verification harnesses. I keep the scope explicit. I have receipts, not claims, broseph. I’m not trying to compete with an industry standard. The tools and project is evolving. I’ve even bundled hardware verified runs, edge cases, and real gaps with SHA 256. Hash checks verify file integrity. So, am I able to match the full experience of QEMU? No, but I’m creating it for rust developers without the headaches. I have limits, yes, 3 engines with the same decoder. The emulator runs in safe rust. Plus an optional Tier 4 JIT which is slower but getting faster. The QEMU emulation is part of the comparison.

3

u/ventZl CMRX microkernel 1d ago

Dude, this is yet-another-dynamic-translator and/or emulator, so why all the bells and whistles?

Yes, vibecoded stuff gets a ton of hate here. You may not like it and feel underestimated for what you (your AI) achieved.

The thing is that most of vibecoded stuff doesn't get hate for the sole fact it was vibecoded. That mostly doesn't matter. You could probably build an OS (as we're in r/osdev ) from building blocks solely by copy-pasting pieces of code found online with no use of AI. This was possible for more than a decade now I guess. Its even suggested way how to **learn** writing OSes - follow examples.

Vibecoded stuff is hated for something else: The brutal disparity between providing any real value for anyone, "author" included and boldness of statements in its announcements.

Like in this particular case:

> Why what I finished today is a big deal:

No, this is not a big deal. There is a dude somewhere on the internet who wrote exactly the same thing like 10 or 15 years ago. Just. His thing runs on obsolete $0.50 microcontroller with ~2kB of own RAM and emulates a machine capable of booting Linux. How do I know? He booted Linux on that damn thing. **THAT** is a big deal.

Oh and of course, then there's Fabrice Bellard who can probably make anything run on anything if he wants.

Here you made nothing extraordinary, you learned nothing (if AI did all the "hard" work) but you vibecoded teaser as if you made a market-disrupting product.

1

u/Life-Seaweed-9957 1d ago

Thank you for your honesty. It’s a big deal for me as this is something that’s always been a dream for me. It’s built from scratch. I’ve made sure to include the proof in https://github.com/hffgzktbcc-blip/ounce-artifacts. So all I’m asking if someone can run the program for me.
I’m learning as I go along; I’m not saying that this will replace what’s already out there. But it’s something that hasn’t been in my world before. I appreciate the valuable input and would like to create value for the community.

5

u/arbv 1d ago

Of course, fully vibecoded, that goes without saying, right?

7

u/spidLL Kora 1d ago

The video itself is vibed

-2

u/Life-Seaweed-9957 1d ago

Yes it is, my good sir. It’s a work done with multiple AI tools; pleas have a look at the work yourself and see the evidence as well as the limits. I have a masters level in Research methodology, so I’ve applied it to this project of mine. I respect the hard criticisms and will work on them. All I ask is that someone outside is able to verify and reproduce the work.

1

u/spidLL Kora 1d ago

I don’t understand, you vibe coded the post and the video. I don’t see what’s difference there is with qemu.

0

u/Life-Seaweed-9957 1d ago

Fair, the post oversold it. AI tools did a lot of the typing; what I own is the test design and the claims, and the repo lists what was and wasn't checked

1

u/spidLL Kora 1d ago

And you still don’t answer because it’s not you who’s answering: what’s the difference with qemu?

0

u/Life-Seaweed-9957 1d ago

QEMU is way ahead and faster, with 23 years in the making. Mine is narrower. It's a verification tool for ARM64 linux programs. Three engines run the same program. Because they share the same decoder, it's only a regression check. I'm working on improving the project as I go along.

•

u/Life-Seaweed-9957 1h ago

Unless you want Jesus to answer??

0

u/Life-Seaweed-9957 1d ago

I’m not asking anyone to believe it. Please test it yourself and see the evidence so far as well as its limits.

•

u/Life-Seaweed-9957 1h ago

Thank you everyone for the feedback. Today was a productive day to see where the gaps lie. I would love more feedback. AI slop? Is it? Have a look and the evidence and limits I lay out in my repo. AI assisted? Yes. Have I done my research? I’m trying my best. If it was slop, I wouldn’t have continued to improve the workflow and architecture and just said, “Believe!” Break it! Unwrap it! Contest it! I urge you to! That’s what we are here for. I hate AI slop, when I started this journey, I had no idea the bigger industry out there, but I respect them enough to know my boundaries…and my lane. So insult the project. That’s fine. But I ain’t stopping. I have a degree in clinical, industrial psychology. Honours in clinical/counselling and research Methodology, and masters level studies in Research Psychology with a PGCE in education with 14 years of teaching experience. I claim no coding experience or computer engineering. But I do know statistics and research methodology.

1

u/chafey 1d ago

Nice job, but you didn't provide any links..

1

u/Life-Seaweed-9957 1d ago

Apologies. I’ve just added the links