SparkOS V1: A Bare-Metal Kernel for Byte-Exact Judgment
SparkOS V1 is a bare-metal AArch64 kernel written entirely in assembly, with no C runtime, no scheduler and no object model. It keeps one operation — comparing stored bytes for exact equality — and the structures that survived experiments around it: indexes, gaps, reversible negation, and a variable layer built by single-linkage clustering with a cut at the largest merge gap. Negation is reversible without counting: a negation is a claim with reasons, and when every reason has itself been negated the record returns to the affirmative side. Chains alternate by level; reasons that defeat each other are detected as a cycle and recorded as undecided rather than resolved. Clustering is ported without simplification — pairwise Euclidean distances, integer square root, insertion sort, single linkage, and a cut at the largest ratio between consecutive merge distances. Tests are not recorded, they are performed: a test routine sends commands through an actuator table and reads through a sensor table, then derives motion from the signed difference between consecutive frames. Seven assembly files, about 2,780 lines. The image boots on two QEMU profiles (virt and raspi3b) and prints six lines including the clustering result and the four measured properties. The code has never run on physical hardware, and the properties printed by the variable line describe the built-in pattern driver, not a world.
Authors
- 谷文堃
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-12-03
- DOI
- https://doi.org/10.5281/zenodo.24775042
- Primary Topic
- Logic, programming, and type systems
- Type
- preprint