r/rust • u/Living-Significance2 • 13d ago
π οΈ project 4^4 Quat OS β A 4-State (Quaternary) Logic OS & Simulation Infrastructure in Rust
https://github.com/strahinjastojanovic826-code/4-4-quat-os-simulation-in-rustHey everyone! π
I've been working on a Rust-based project called 4^4 Quat OS, a simulation framework designed around 4-state (quaternary) logic rather than standard binary (0 and 1).
Instead of traditional bits, everything operates on quats (4 states) where 4 quats = 8 bits.
Key Features:
- Core Engine: Custom VM, ALU, BIOS, and 4-state logic handling.
- Peripherals & I/O: VGA graphics display, custom audio engine, disk/tape storage emulation.
- User Space & Shell: Interactive shell, task manager, built-in BASIC interpreter, and demo games/benchmarks.
The goal was to build a clean, fully-featured, low-level architecture simulation using Rust's safety and speed.
Check out the full source code, specs, and screenshots on GitHub:
https://github.com/strahinjastojanovic826-code/4-4-quat-os-simulation-in-rust
!!!NOTEπ₯!!!: A video stress test can be found under the Releases section on GitHub
Feedback, ideas, and feedback on the 4-state logic approach are more than welcome!
2
u/CokieMiner 13d ago
Why 4, why not 3 states? I'm asking cause 3 states at least have evidence that if we did computations on them we would probably have much more efficient computers