GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - sayan9168/sayanox: Sayanox is an original programming language (.sa) with a self-hosting compiler, pure-min seed→gen2 bootstrap, native x86-64 AOT, offline packages, and a growing stdlib.

BranchesTags
Open more actions menu

Latest commit

 

History

1,250 Commits
1,250 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
assets
assets
 
 
bootstrap
bootstrap
 
 
docs
docs
 
 
examples
examples
 
 
grammars
grammars
 
 
registry
registry
 
 
samples/Sayanox
samples/Sayanox
 
 
sayascrape
sayascrape
 
 
selfhost
selfhost
 
 
stdlib
stdlib
 
 
tools
tools
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
ACCESSIBILITY.md
ACCESSIBILITY.md
 
 
CODE_OF_CONDUCT.md
CODE_OF_CONDUCT.md
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
DEPENDENCY.md
DEPENDENCY.md
 
 
LICENSE
LICENSE
 
 
NOTICE
NOTICE
 
 
README.md
README.md
 
 
SECURITY.md
SECURITY.md
 
 
Sayanox.toml
Sayanox.toml
 
 
sx
sx
 
 

Repository files navigation

Sayanox

Sayanox

A completely original systems programming language with its own self-hosting compiler

File extension: .sa · Bootstrap written in Sayanox itself · Native AOT (x86-64 Linux)

License: Sayanox Language CI full-bootstrap Status

Sayanox is designed to be easy to read, easy to write, and powerful enough for real systems work.
The compiler, tools, and most examples are written in Sayanox.

Build/test operations use the native Sayanox driver, ./sx target <name>, and the gate is named next to the claim. What is finished is in Done; what is not is in Remaining. Nothing is listed as done unless a target proves it on a clean tree.


Why Sayanox?

Most new languages are either:

  • Too academic, or
  • Thin wrappers around existing runtimes.

Sayanox aims for a clean middle ground:

  • Simple, readable syntax
  • Strong focus on self-hosting (the compiler is written in itself)
  • Native code generation (AOT)
  • Built-in tools: formatter + package manager written in Sayanox
  • Educational + practical at the same time

Sayanox build driver — Makefile removed

Makefile has been deleted, not renamed or wrapped. Use the native Sayanox entry ./sx from the repository root (Linux x86-64):

sha256sum -c bootstrap/sx.sha256
./sx doctor
./sx verify-entry
./sx target test-ported test-ported-more test-memory
./sx target test-driver
./sx migration  # 236/236 original target names implemented

All 236 original target names are implemented in Sayanox. Unknown targets fail with exit 2, with no fallback. ./sx ci runs the complete original minimum-selfhost, gen3 and native acceptance chain; target registration alone is not proof of acceptance. See the migration ledger for measured results.

sx is an intentionally checked-in generated executable, not a shell script. The generated entry and pinned native compiler anchor are explicit binary trust inputs. All maintained implementation source is Sayanox; the final C seed and Makefile are retired. Source retirement and final guarded acceptance are recorded separately in the migration report. Self-reproduction is not independent trust proof. See entry provenance and independent rebuild and migration implementation and remaining obligations.

Quick Start

git clone https://github.com/sayan9168/sayanox.git
cd sayanox
sha256sum -c bootstrap/sx.sha256
./sx target doctor gen2
./sx target native
./selfhost/native_aot examples/hello.sa hello
./hello

Missing compilers are bootstrapped by the Sayanox driver. gen2 explicitly rebuilds the seed/compiler chain; native tool builds install atomically. ./sx target clean removes disposable build outputs but preserves ./sx, so cleaning does not remove the entry needed to rebuild.

Compile via C

./sx target gen2
./selfhost/gen2 examples/hello.sa hello.c
cc -o hello hello.c
./hello

CI/CD

Workflow Current behavior
CI Checks the entry/source pins and runs migrated suites; a separate mandatory full-acceptance job rejects incomplete migration or published-language v1 coverage
full-bootstrap Clean source-to-native-entry reconstruction, followed by the full-acceptance blocker
release Entry verification and full acceptance before packaging/publication; packaging is bound to the resolved tested commit id, an existing tag must already name it, and the published tag is re-read afterwards (./sx release-identity runs the check only)
./sx ci  # exits 1 until the entire original acceptance surface is implemented

The original hard-gate chain (doctor, true-selfhost, gen3, native-test) has not been replaced with just the migrated subset. Older proof references below and historical gate logs describe earlier runs, not a successful run of all those targets through the new driver. Check availability with ./sx migration.


Language Features (Current Milestone)

The pure-min dialect currently supports:

Feature Status
hold / show ✅
@budget(frames/locals/lists) on a make ✅ (checked by native32; erased on every other lane)
when / while ✅
else / otherwise ✅
Recursive functions (make / give) ✅
Integer + floating arithmetic ✅
Checked integer % ✅
Lists ✅
Nested structs ✅
List-valued struct fields + for v in p.xs ✅ all three backends
Struct-typed hold with identity checks ✅ all three backends
Struct-typed make parameters & returns ✅ gen2 / gen3 / native · ❌ seed
Generic structs (Box<T>, Pair<A, B>) ✅ all three backends
Nested generics (Box<Box<num>>, Box<list>) ✅ since 2026-10-22
Strings ✅
String interpolation (${id}) ✅ gen2 / gen3 / native · ❌ seed
File / argument builtins ✅
Byte buffers + bitwise (write_bytes, read_bytes, bit_*, shl, shr) ✅ gen2 / gen3 / sxc_native
Process & IPC builtins (run_command, getenv, spawn, child_*, read_line, read_n, path_*) ✅ gen2 / gen3 / sxc_native (pure Linux x86-64 syscalls)
Modules (use "file.sa") ✅ textual splice, depth 8
Transitive DAG modules & namespaces (module ... from "...", alias.member) ✅ sxc_native, sxbuild, and sxmod --transitive (multi-dir DAGs, singleton init, cross-module structs)
C-free self-compiling x86-64 ELF64 compiler (tools/sxc_native.sa) ✅ compiles itself, all tools, and compiler_min.sa directly to static ELF64 with zero cc / zero libc
Native AOT (x86-64 Linux, written in Sayanox) ✅ (selfhost/native_aot.sa, C backend deleted)
Portable IR VM (tools/sxirexec.sa) ✅ executes emit_to_ir portable IR directly in Sayanox
i386 Linux ELF, emitted by a Sayanox program ✅ integer expressions, static string spans, len, byte indexing, and bounded variable-to-variable concat
aarch64 & riscv64 ELF64, emitted & user-mode executed in Sayanox ✅ tools/native32.sa emits the same bounded integer/string subset; tools/sxisaexec.sa executes it with six-way parity

See docs/STATUS.md for the full tested feature matrix and known limitations.


Status

Two tables, nothing between them. 167 ./sx target test-* targets back them up; the four hard gates above have to stay green, with gen3 and gen4 byte-identical, for anything to move from the second table to the first.

Done — and the gate that proves it

# What is done Proof
1 Self-hosting pure-min dialect. seed → gen1 → gen2 → gen3, and gen3 == gen4 byte-identical ./sx target true-selfhost, ./sx target gen3
2 Full-language readiness probes 8/8 — concrete struct function arguments and returns, identifier interpolation, expression-valued struct fields, checked index calls (gen2/gen3) ./sx target test-full-language-readiness (runs inside ./sx target gen3)
3 Sayanox seed runtime profile — traced strings/list headers/buffers preserve aliases; discarded-list churn fits 4 MiB and own-source C1 emission fits 64 MiB ./sx target test-seed-collector, ./sx target test-seed-gc, ./sx target test-seed-borrow, ./sx target test-seed-bootstrap-budget
4 Nested generic structs — Box<Box<num>>, Box<Box<Box<num>>>, Box<list>, Pair<Box<num>, str> on seed, gen2 and native, with the typedef order C accepts, plus pinned type-argument and literal-agreement refusals ./sx target test-generic-structs-nested, ./sx target test-generic-struct-limits
5 Stdlib: nested JSON reader + writer/pretty-printer + symmetric & public-key cryptography — stdlib/json_deep.sa reads/validates nested documents, stdlib/json_write.sa builds, updates (jw_obj_set/jw_obj_del), minifies and pretty-prints nested JSON, stdlib/crypto.sa implements SHA-256 and HMAC-SHA256, and stdlib/pubkey.sa implements Curve25519 (GF(2^255 - 19)) Schnorr-SHA256 public-key signatures. Byte-identical on all three backends ./sx target test-stdlib-json-deep, ./sx target test-stdlib-json-write, ./sx target test-stdlib-crypto, ./sx target test-sxpkg-pubkey
6 Package digests, provenance, HMAC signatures, and public-key package + index verification — pkg.meta carries sha256=, origin=, symmetric sig=/signer=, and asymmetric Curve25519 pubkey=/pubkeyid=/pubsig=; sxpkg sign-index / verify-index signs and verifies INDEX.sig + listed package digests against .sayanox/trusted_keys with .sec deleted ./sx target test-sxpkg-crypto, ./sx target test-sxpkg-pubkey, ./sx target test-sxpkg-transfer-hardening
7 LSP semantic + type-level hover & cross-file workspace resolution — definition, references, rename, hover (parameter types, inferred call/struct/generic Box<num>.val types), and signatureHelp resolve across local scopes, use "..." imports, open overlays, and unopened indexed workspace .sa files ./sx target test-lsp-semantic, ./sx target test-lsp-workspace, ./sx target test-lsp-types
8 A second machine target — tools/native32.sa, written in Sayanox, emits i386 Linux ELF for integer expressions, static string spans, len(string), byte indexing, bounded concat, string-value copy (hold b = a), string_eq and chr(n) (also nested inside those three calls); ELFCLASS32/EM_386 and determinism are pinned, with the supported boundary and explicit refusals tested ./sx target test-native32 (NATIVE32.md)
9 Third and fourth machine targets, emitted — tools/native32.sa with arm64 emits ELF64/EM_AARCH64 and with riscv64 emits ELF64/EM_RISCV (RV64IM); containers, goldens, three-way data-segment agreement across i386/arm64/riscv64 (now concat programs included: their literal pointers and heap cursor are written at run time), the string-copy, string_eq, chr, nested-chr, concat-expression and chr-expression fixtures on all six execution paths and the refusals are pinned ./sx target test-native-arm64, ./sx target test-native-riscv64
10 Module namespacing, one layer out — tools/sxmod.sa rewrites module NAME from "path" + alias.member into prefixed flat declarations. The gate first proves the flat dialect cannot compose two modules that both declare add (all three backends refuse it), then compiles the namespaced version to identical stdout, and pins 16 refusals ./sx target test-sxmod (MODULES.md)
11 Explicit native trust anchor pinned and audited — Sayanox SHA-256/size audit, source/anchor fixed point, isolated no-C/poisoned-compiler reconstruction and real own-source emission determinism; not independent trust proof ./sx target test-trust-anchor, ./sx target test-native-bootstrap
12 Phase D steps 1–10: the entire x86-64 native AOT backend is Sayanox (selfhost/native_aot.c deleted) — selfhost/native_aot.sa + tools/sx{enc,infer,data,emit,runtime,gc,link,pipeline}_lib.sa + tools/sxdefs.sa + tools/sxemit.sa replace and delete the 4,598-line C backend cleanly as the sole producer of ./selfhost/native_aot ./sx target test-native-sxemit, ./sx target test-native-emit-split, ./sx target native-test
13 Stage-2 native parity — concrete struct-typed make parameters & returns and ${id} string interpolation work natively in selfhost/native_aot.sa, matching gen2 byte-for-byte across 13 positive fixtures and 23 refusals ./sx target test-native-stage2-parity
14 Portable IR virtual machine (tools/sxirexec.sa) — loads and executes emit_to_ir --strict --source-offsets portable IR directly in Sayanox (including ELF-deleted compile-and-run and 4-way seed-min == gen2 == native_aot == sxirexec parity) ./sx target test-ir-exec
15 Sayanox build/bootstrap/parity driver (tools/sxbuild.sa) — doctor, inventory, build, native, tool, parity, and bootstrap written in Sayanox ./sx target test-sxbuild
16 No bash, awk, sed, Python, node or ruby in any maintained build or test path; the four sh test drivers and the whole package tool are Sayanox programs ./sx target test-language-deps
17 Documentation/source audits — zero maintained C/header/scripts, explicit native trust boundary, no runnable Stage-2 placeholder and historical-doc banners ./sx target test-doc-claims, ./sx target all-sayanox
18 C-free native compiler and Sayanox seed bootstrap — native compiler, C-output frontend and compatibility CLI build from Sayanox; no maintained C seed remains. Generated C compatibility output and its host compiler are retained ./sx target test-sxc-native, ./sx target test-native-bootstrap, ./sx target verify-seed
19 Pure-Sayanox compiler suite runner (tools/sxsuite.sa) — executes 6 compiler test suites (stage2_interp, struct_fn, generic_struct_limits, full_lang_ready, compiler_features, ir_audit) directly in C-free Sayanox ./sx target test-sxsuite
20 User-mode ARM64 & RISC-V ELF64 emulator (tools/sxisaexec.sa) — executes the tested AArch64/RV64IM integer and static-string compiler subset with 6-way parity; also probes scalar RV64F/D and AArch64 S/D arithmetic plus bounded openat/read/write/close syscalls. The AArch64 3-source multiply group decodes SMULH/UMULH (7 rows across all four sign combinations, with the three unallocated op31 shapes refused), and RV64 executes the 64-bit MUL/MULH/MULHSU/MULHU and DIV/DIVU/REM/REMU; 7 deliberate breaks are each caught by a named row. Bounded slice: the 32-bit MULW/DIVW/REMUW words are unchanged and no row names MULHSU/DIV/REM/REMU directly. Not a full RV64GC ISA or full-language compiler claim. ./sx target test-sxisaexec, evidence
21 Transitive multi-directory module DAG binder (tools/sxmod_lib.sa) — resolves multi-directory diamond/chain module graphs with cycle detection, topological ordering, singleton init, and cross-module Mod_<mod>_<Struct> types across sxc_native, sxbuild, and sxmod --transitive ./sx target test-sxmod-deep
22 Module-aware LSP IDE features (tools/sayanox_lsp.sa) — module ... from "..." hover/definition/signatureHelp, cross-module struct field resolution, multiline signatureHelp, lexical block-scoped shadowing, and textDocument/prepareRename ./sx target test-lsp-ide
23 Extended 5-backend standard library — stdlib/map.sa, stdlib/sort.sa, stdlib/path.sa, stdlib/cli.sa, and stdlib/bytes.sa (hex/base64/LE32/CRC-16) verified across 5 backends (seed-min == gen2 == native_aot == sxc_native == sxirexec) ./sx target test-stdlib-extended
24 CSV row codec in the stdlib — stdlib/csv.sa parses and writes RFC 4180-style rows (quoted fields, embedded commas/CR/LF, doubled quotes, three malformed-row refusals) with a packed-string row type; 44 hand-computed values identical on seed-min, gen2 and native ./sx target test-stdlib-csv
25 URL / query-string codec (stdlib/url.sa) — percent-encoding and decoding, packed query strings with parse/write/get/has, and refusal of malformed escapes and NUL bytes; 39 values pinned by an independent urllib oracle ./sx target test-stdlib-next
26 Gregorian calendar arithmetic (stdlib/datetime.sa) — Julian Day Numbers, leap years, weekday names, day-of-year, add-days, YYYY-MM-DD format/parse and the inverse conversion; 43 values pinned by Python datetime/calendar ./sx target test-stdlib-next
27 Checksums and Luhn digits (stdlib/hash.sa) — byte sums, rolling/djb2/sdbm/poly131 hashes, RFC 1950 Adler-32 and Luhn check-digit generation/validation; 24 values pinned by zlib and a hand-written Luhn oracle; explicitly non-cryptographic ./sx target test-stdlib-next
28 First-use generic literal type safety — gen2/gen3 now check the existing positional type-argument constraints before inferring a layout; 14 literal refusals plus strict O0/O2 positive parity retain seed/native agreement ./sx target test-generic-struct-limits, types contract
29 All-source native build/bootstrap migration — all 236 baseline targets are implemented; Makefile and frozen C seed retired, with explicit pinned native trust inputs ./sx target all-sayanox, migration acceptance
30 Precise generic-head diagnostics — gen2/gen3 report wrong counts, unsupported/unknown type arguments and bare templates; nine specific refusal checks retain fail-closed C output ./sx target test-generic-struct-limits, diagnostics
31 Published-language v1 C-output self-host — current published language, not just the pure-min compiler implementation subset; complete post-merge main acceptance passed ./sx target true-selfhost-full, contract, checkpoint evidence
32 GC: an empty managed heap releases the whole free-list cache — the emitted C-output collector no longer returns before trimming when nothing is registered, and its trim keeps nothing while sx_gcall is null, so a program that dropped every value returns the up to 2,097,152 bytes it used to pin (two blocks per class through 64 KiB). The probe fills all fifteen classes (4,194,176 cached bytes) on an empty heap and requires every list empty and every block freed once; the previous emitter aborts it at sx_gfree[c]==0 ./sx target test-gc (O0 / O2 / ASan+UBSan incl. fake-stack roots), evidence
33 LSP incremental UTF-16 text sync — initialize advertises textDocumentSync {"openClose": true, "change": 2}; didChange splices range + text (line/character clamped to line end and EOF, reversed range ⇒ insertion), applies up to eight change objects per notification in order, and still accepts whole-buffer replacements, then re-publishes that document's diagnostics. Two framed sessions pin 9 new facts (47 total) ./sx target test-lsp, ./sx target test-lsp-robust, evidence
34 stdlib/str_text.sa byte helpers against an independent stdout oracle — t_count_char, t_starts_with, t_ends_with and t_normalize_ws (22 helpers total); the fixture selfhost/stdlib_text_test.sa is compared to the hand-written selfhost/stdlib_text.want, which no compiler under test produces ./sx target test-stdlib-next (seed-min / gen2 / native AOT), evidence
35 JSON boundary/precision oracle — selfhost/stdlib_json_boundary.want pins 43 lines of json_write.sa + json_deep.sa behaviour: minification with whitespace inside strings, updates on an empty document, user vs user_id key prefixes, first/last/absent/only-key deletion, well-formedness after deleting the only key, nested dotted paths and indexes, the six-fractional-digit number policy, escaping round-trips and three malformed documents that stay invalid ./sx target test-stdlib-next (seed-min / gen2 / native AOT)
36 Native \r literal escape fixed (R13) — the pure-min native decoder required full-language mode before mapping \r to CR, so "a\rb" printed arb while seed-min, gen2 and the C-output contract printed a, CR, b. CR now decodes in every mode, the pinned native anchor was rebuilt from source to a three-stage fixed point with a regenerated audit, and selfhost/stdlib_text_test.sa keeps the source literals as the regression test ./sx target test-stdlib-next, ./sx target native-test, ./sx target test-native-bootstrap
37 Bounded byte regular expressions (stdlib/regex.sa) — a backtracking VM written in Sayanox with Python re syntax and preference order (classes, groups, alternation, greedy/lazy and counted repetition, anchors, ASCII \d/\w/\s, \xHH), spans and captures without a list-of-strings type, rx_replace with &/\1..\9, and explicit refusals (lookaround, backreferences, inline flags, possessive quantifiers, POSIX classes, unbounded repetition of an empty-matching body) plus stated 200-byte/1024-byte/16-group/256-match/step-budget limits; 288 frozen expectations whose oracle is Python's own re in re.ASCII mode, identical on seed-min, gen2 and native_aot ./sx target test-stdlib-next (STDLIB.md)

| 38 | Source-level debugger over the portable IR VM — tools/sxirexec debug/debug-bundle add breakpoints (by the source offset prog.ir prints, or by instruction index), step [k], next (step over a call), continue, where, bt, regs/reg, mem, info/delete/clear and quit inside the interpreter the 4-way parity gate already runs — with no script nothing is printed and no debugger branch is taken; sessions come from a file or stdin, one command is consumed per stop, and every stop reports at src 0x… (ip n/total, depth d); no source lines, variable names or types are claimed, because the portable IR carries neither | ./sx target test-ir-exec (DEBUGGER.md) | | 39 | Checked resource-budget contract (@budget) — @budget(frames: N, locals: N, lists: N) on the line before a make declares a compile-time upper bound that native32 checks against the emitter's own fn_frame_words[] and call graph: exact fit plus one-over at each boundary, chains 1/2/3/8, direct and mutual recursion, a call whose callee locals fit but frames do not, list literals 16/17 and empty-origin growth, and a 60-word string-heavy frame. Recursion cycles are refused below the 64-frame cap rather than analysed. Seven keys and value rules and every unestablishable cost form are refusals (22 line-numbered fixtures). The annotation is erased before any parser sees it, on all five lanes, and 12 accepted fixtures plus plain/plain_twin prove byte-identical output; 12 pre-existing i386 images keep their pinned sizes. Six negative controls each flip one named row | ./sx target test-fn-budget, ./sx target test-ir-exec, ./sx target test-sxisaexec (BUDGET.md, evidence) |

Remaining — and where the build refuses to claim it

# What is still missing Exactly what is open Refusal / record
2 Independent bootstrap trust proof Native anchor/entry are explicit binary trust inputs. Hashes and fixed points cannot exclude trusting-trust attacks; a conditional DDC harness and refusal controls exist, but an independently reviewed reference compiler and genuine DDC execution are still missing trust boundary
3 Precise / bounded-heap GC guarantees Seed strings, list headers and backing buffers are traced and collected. Post-sweep registry/scratch shrinking is implemented with allocation-failure probes (acceptance tracked in STATUS), and since 2026-10-31 an empty managed heap releases the whole C-output free-list cache instead of retaining two blocks per class. Conservative roots can still retain garbage, and live heaps/allocator overhead remain memory limits. Current budget tests do not prove bounded memory for arbitrary programs. The @budget contract added 2026-11-25 is a declared static upper bound over constructs the current subset can cost: it is not a whole-program memory guarantee, not a termination proof, not WCET, and not heap/RSS for the conservative collector, because live allocation beyond the fixed caps and C-lane allocator overhead stay outside it. Recursion cycles are refused below the 64-frame cap rather than analysed current seed runtime, historical GC notes
4 Stdlib depth json_write.sa updates top-level object keys functionally (numbers beyond 6 fractional places are rounded). str_text.sa now has 22 byte helpers, four of them checked against a hand-written stdout oracle on all three backends. unorm.sa now covers the compatibility forms too (NFKC/NFKD), verified against all 20,034 official NormalizationTest.txt rows for both canonical and compatibility columns, and csv_stream.sa reads CSV incrementally with a bounded buffer, checked against Python's own csv module at eight chunk sizes. uident.sa answers UAX #31 identifier questions from the XID property tables, with both properties swept over all 1,114,112 code points. uword.sa answers UAX #29 word boundaries from WordBreakProperty.txt and emoji-data.txt, passing all 1,944 official WordBreakTest.txt cases over both code points and strings and cross-checking its generated tables element by element against those data files. pubkey.sa / crypto.sa run on IEEE-754 doubles with no constant-time side-channel claim. HTTP stays optional and outside the bootstrap docs/STDLIB.md, ./sx target test-network (optional)
5 Package transport & key distribution Asymmetric Curve25519 package (pubsig=) and index (INDEX.sig) verification work offline against pinned .sayanox/trusted_keys; online key discovery/CA infrastructure does not exist, and HTTP transport still shells out to curl/wget docs/REGISTRY.md
6 An IDE-complete LSP hover, definition, and signatureHelp now infer static types and resolve across use "..." and indexed workspace .sa files, and didChange accepts incremental UTF-16 range edits (up to eight change objects per notification, full replacements still work). The server is still a line/brace-oriented analyzer rather than the full compiler front end: 4 open buffers, 128 indexed files, 256 KiB each, no compiler-grade incremental re-parse, and no workspace-wide diagnostic push docs/LSP.md — "still not IDE-complete"
7 Full ARM64/RV64GC native compiler/runtime tools/native32.sa currently emits integer expressions, static string spans, len, byte indexing, bounded concat (nested operands and show concat(...) included), string-value copy, string_eq, and whole-value chr(<integer expression>) for i386/AArch64/RV64IM, with six-way execution parity, now in a two-page text segment; sxisaexec also has emulator-only scalar-FP and file-syscall probes and now sets the 64-bit AArch64 add/subtract flags its cmp path needed. User functions are supported, numeric and str parameters and -> str results included (up to 8 functions, 6 parameters, recursion capped at 64 live frames). Still open: chr as an operand of anything other than concat/string_eq/len, concat inside another expression outside string_eq arguments and len(concat(...)), structs, growing lists, floating-point expressions and file APIs, deeper string expressions beyond literal/concat/copy/chr/call, lists, structs, FP code generation, file I/O runtime, GC, and broad RV64GC/AArch64 coverage. Programs with concat now keep an arch-neutral data image too (R14 fixed). docs/NATIVE32.md, docs/NATIVE_IR.md
8 Namespacing in the language sxmod is a source-to-source pass. The dialect still has shared declaration tables and no module identity, private visibility, nesting, search paths or import cache. Not planned in the bootstrap compiler docs/MODULES.md
9 .sa on GitHub Not registered in github-linguist, so GitHub may not show a Sayanox language bar even after C source retirement. The upstream contribution is prepared but not opened (Linguist wants demonstrated in-the-wild usage) docs/LINGUIST.md
10 Platforms and registry growth x86-64 Linux (plus i386 integer subset and portable IR VM) is executed; the package registry is local; the stdlib is sixty-one .sa modules, including csv.sa, url.sa, datetime.sa, hash.sa, and the Unicode layer utf8.sa/utext.sa/uwidth.sa/ugraph.sa roadmap below

Current priorities, acceptance criteria and external blockers are tracked in the remaining-work register. Open roadmap items are not failed clauses of the accepted published-language v1 C-output contract.

What is deliberately refused

These produce an error, not a wrong answer, and gates require the error: a concrete struct name as a generic type argument, an unknown type name, an escaped type parameter, a wrong type-argument count, gen2 push(p.xs, v) and whole-list show p.xs, every late builtin on seed-min and native, and the tested out-of-subset language forms. ./sx target true-selfhost-full requires the pinned published-language v1 inventory, all clause gates, signature/runtime matrices and negative controls. Its implementation is not itself an acceptance result; see STATUS. ./sx target all-sayanox audits maintained source and the explicit native binary trust boundary; it does not replace CI.


Sayanox-written Tools

./sx target tools

./tools/sxfmt input.sa formatted.sa     # formatter
./tools/sxpkg init                      # package manager
./tools/sxpkg add math 0.1.0
./tools/sxpkg list

./sx target tools/sxrepl && ./tools/sxrepl   # read-eval-print loop
./tools/sxcli new hello demo                # project scaffold
./tools/sxcli test hello                    # compile and run its tests

./sx target tools/sxbench && ./tools/sxbench --source examples/hello.sa --repeat 3

The REPL and the project CLI are the developer loop added on 2026-11-10: the loop recompiles the whole session on each prompt (that is what keeps earlier bindings visible) and prints only the new output, a fragment that does not compile is refused and dropped without ending the session, and the scaffold writes a project that builds and tests as-is. Both are pinned by the calc suite of test-sxdiag; see docs/REPL.md.

The formatter currently handles whitespace. The package tool is one Sayanox program, tools/sxpkg.sa (built to ./tools/sxpkg by ./sx target sxpkg): init, add, list, remove, seed, search, info, deps, verify, sum, sign, authenticate, publish, install, install-local, sync, fetch, the online opt-in policy, SAYANOX_ROOT/SAYANOX_REGISTRY/SAYANOX_ONLINE, and its own exit statuses. Its shell wrapper was deleted on 2026-10-22; the only program it still starts is the transport itself, curl or wget. Full registry support is still evolving — see docs/ONLY_SAYANOX.md.

The language server (tools/sayanox_lsp.sa) with its folder index, binder and incremental UTF-16 didChange splicing, the IR translator (tools/emit_to_ir.sa), four pieces of the native backend — its ELF image writer with the rel32 linker (tools/sxlink.sa), its x86-64 instruction encoder (tools/sxencode.sa), its front-end phase 1 (tools/sxdefs.sa) and a whole second/third ISA emitter for the integer subset (tools/native32.sa) — the module-namespacing pass (tools/sxmod.sa), the seed auditor (tools/sxaudit.sa) and the negative-diagnostic suites (tools/sxdiag.sa) are Sayanox programs too, and no maintained build or test path needs bash, awk, sed or Python (./sx target test-language-deps). Driving another program used to require the shell, because spawn(path) takes no arguments; since 2026-10-21 run_command(cmd) gives a Sayanox program the exit status of a command line, which is what let four sh test drivers and then the whole package tool move over, and since 2026-10-22 getenv(name) lets it read the environment the wrappers used to read.


Project Layout

Path Role
*.sa Sayanox source (compiler, tools, stdlib, examples, fixtures)
selfhost/compiler_min.sa Maintained pure-min compiler written in Sayanox (20,106 lines)
selfhost/seed/sxc_seed_min.sa Sayanox compatibility CLI; the shared Sayanox frontend emits C using the bounded runtime profile
selfhost/native_aot.sa Self-hosted x86-64 Linux native-AOT backend in Sayanox (selfhost/native_aot.c deleted)
tools/sx{enc,infer,data,emit,runtime,gc,link,pipeline}_lib.sa Shared Sayanox native backend libraries (encoder, phase-2 inference, data/string pools, emit tree, runtime, mark & sweep GC, ELF64 linker, pipeline)
tools/sxbuild.sa Sayanox build/bootstrap/parity/tool driver (doctor, inventory, build, native, tool, parity, bootstrap)
tools/sxstage2_parity.sa Sayanox Stage-2 native parity harness (struct-typed make + ${id} interpolation)
tools/sxirexec.sa Sayanox Portable IR virtual machine and 4-backend parity runner (emit_to_ir execution)
tools/native32.sa Sayanox i386 / AArch64 / RV64IM ELF emitter (integer, static strings, len, bounded concat)
tools/sxmod.sa Sayanox module-namespacing pass (module / alias.member)
tools/sxaudit.sa Sayanox binary/source byte-count and SHA-256 auditor; native-anchor digest pinned in bootstrap/sxc_native.audit
tools/sxdiag.sa Sayanox negative-diagnostic suites (replaced four sh drivers); the calc suite pins the REPL and the project CLI
tools/sxrepl.sa Sayanox read-eval-print loop: one fragment per line, session recompiled per prompt, :history/:env queries (docs/REPL.md)
tools/sxcli.sa Sayanox project scaffold (new) and project test runner (test)
tools/sxbench.sa Sayanox compiler report tool: times the native and gen2→cc stages, checks image determinism, compares what both programs print (docs/BENCH.md)
stdlib/ Twenty-one Sayanox modules, including json_deep.sa, json_write.sa, crypto.sa, pubkey.sa, csv.sa, url.sa, datetime.sa, hash.sa, and str_text.sa (22 typed byte-string helpers)
sx, tools/sxbuild.sa Native entry and Sayanox bootstrap/build/test driver; incomplete acceptance migration
docs/ Status, design notes, language docs
docs/gate-logs/ One dated folder per landed change: what was claimed, and the run that proves it

Language on GitHub

The badge above says Language: Sayanox because that is what the source is. GitHub's own language bar may still say C, and that is expected.

Sayanox uses the .sa extension, which is not yet registered in github-linguist's languages.yml. Linguist only counts languages it knows, so the 259 .sa files — about 1.4 MB, roughly 62% of the source Linguist would count — contribute nothing to the bar today, and what is left is the hand-written C seed; the native backend and build driver are Sayanox, and the old build file and tracked shell scripts have been deleted. A .gitattributes cannot register a new language; only an upstream Linguist change can, so the bar will keep showing C until that change is merged.

.sa is deliberately not mapped to Python, C or any other existing language to make the statistics look better — that would mislabel the source.

Everything needed for the upstream contribution is prepared in this repository: .gitattributes, samples/Sayanox/, grammars/sayanox.tmLanguage.json, the exact languages.yml snippet, a PR checklist and draft PR text. See docs/LINGUIST.md — including the honest assessment of why the pull request has not been opened yet (Linguist requires demonstrated in-the-wild usage of an extension). docs/GITHUB_LANGUAGE.md has the short version.


Roadmap (High Level)

  • Self-hosting pure-min dialect (./sx target true-selfhost, ./sx target gen3)
  • Native AOT subset (x86-64 Linux) (./sx target native-test)
  • Formatter + local package tool in Sayanox, with digests and keyed signatures
  • Language server in Sayanox, with binder-based resolve, folder rename and file watching
  • Toolchain free of bash, awk, sed and Python (./sx target test-language-deps)
  • A collector in the bootstrap seed (strings) (./sx target test-seed-collector)
  • Nested generic structs on all three backends (./sx target test-generic-structs-nested)
  • Nested JSON reader and SHA-256/HMAC-SHA256 in the stdlib
  • Multi-ISA Sayanox emitter for i386/AArch64/RV64IM with integer, static-string, byte-indexing and bounded-concat subset; AArch64/RV64 output executes under sxisaexec
  • Module namespacing one layer out (./sx target test-sxmod)
  • Native anchor pinned and audited; frozen C seed retired (./sx target test-trust-anchor)
  • Native AOT backend completely in Sayanox (Phase D steps 1–10): selfhost/native_aot.sa + tools/sx*_lib.sa replaced and deleted selfhost/native_aot.c (./sx target test-native-sxemit, ./sx target native-test)
  • Sayanox build/bootstrap/parity driver (tools/sxbuild.sa, ./sx target test-sxbuild)
  • Stage-2 native parity: concrete struct-typed make functions and ${id} interpolation on native_aot (./sx target test-native-stage2-parity)
  • Portable IR virtual machine: tools/sxirexec.sa executes emit_to_ir portable IR with 4-way parity (./sx target test-ir-exec)
  • Public-key package signatures & signed registry index: Curve25519 Schnorr-SHA256 in stdlib/pubkey.sa + tools/sxpkg.sa (./sx target test-sxpkg-pubkey)
  • LSP type-level hover, module IDE, multiline signatureHelp, block scope & prepareRename (tools/sayanox_lsp.sa, ./sx target test-lsp-types, ./sx target test-lsp-ide)
  • C-free self-compiling x86-64 ELF64 compiler & toolchain (tools/sxc_native.sa) + zero non-anchor C/H files (./sx target test-sxc-native, ./sx target test-trust-anchor)
  • Pure-Sayanox compiler test suite runner (tools/sxsuite.sa) (./sx target test-sxsuite)
  • User-mode ARM64 & RISC-V 64 ELF64 instruction emulator with 6-way parity (tools/sxisaexec.sa) (./sx target test-sxisaexec)
  • Transitive multi-directory module DAG resolution (tools/sxmod_lib.sa) (./sx target test-sxmod-deep)
  • Sayanox CI/CD orchestration — all 236 original target names ported; complete guarded CI and no-Make driver integration passed. See accepted main checkpoints; release publication has a separate gated workflow
  • Portable stdlib data & time batch — csv.sa (rows), url.sa (percent-encoding + query strings), datetime.sa (Gregorian calendar / JDN), hash.sa (rolling hashes, Adler-32, Luhn); 150 oracle-pinned values on seed-min == gen2 == native (./sx target test-stdlib-csv, ./sx target test-stdlib-next)
  • Extended 5-backend standard library (map, sort, path, cli, bytes) (./sx target test-stdlib-extended)
  • Port the remaining 14 tracked POSIX .sh scripts to Sayanox: sxsuite, LSP protocol probes, package-transfer security harness, local HTTP/crawler tests, and sxpack; git ls-files '*.sh' is now empty (./sx target test-language-deps, ./sx target test-trust-anchor)
  • All maintained implementation source is Sayanox (evidence); the frozen C seed and Makefile are retired. Native-origin own-source fixed point and 64 MiB C1 emission pass. Final guarded acceptance is tracked separately.
  • Published-language v1 C-output self-hosting: the complete pinned user-language contract is accepted; the compiler implementation remains a bounded pure-min dialect (./sx target true-selfhost-full, checkpoint evidence)
  • GC free-list cache release on an empty heap: the C-output collector returns the cache instead of pinning two blocks per class, proven by a probe the previous emitter fails (./sx target test-gc)
  • Incremental LSP text sync: UTF-16 range splices with clamping, change: 2 capability, 43 pinned probe facts (./sx target test-lsp)
  • str_text.sa text helpers (22): t_count_char, t_starts_with, t_ends_with, t_normalize_ws checked against a hand-written stdout oracle on seed-min, gen2 and native AOT (./sx target test-stdlib-next)
  • concat data image is now cross-ISA identical (R14): a literal argument's (pointer, length) pair and the 4-byte heap bump pointer are written by the program at run time (the entry code seeds the cursor from the target's own data base) instead of being baked into the data segment, so every accepted program — chr_nested first — has a byte-identical data image on i386/AArch64/RV64IM and the temporary layout-only pin is gone
  • sxbuild inventory no longer counts the compiler's gitignored C outputs (R15): the six selfhost/*.c default outputs are named, and test-sxbuild creates all six (expects 0), then a genuine stray file (expects 1) before removing them
  • Literal-or-expression list elements in the multi-ISA emitter (R02 step 18): anything that is not an integer literal is compiled as an integer expression where the list is declared and stored through the same slot path a literal uses, so hold xs = [n, n + 1, n * 2] works inside a body and hold top = [k, k * k, k - 10] at top level, with literals keeping the data-word/immediate fast path and the data image still zero-initialized (arch-neutral); the new list_expr fixture runs on all six execution paths (i386 8252 bytes, reviewed AArch64/RV64IM goldens, output equal to the x86-64 native AOT lane), with every pre-existing fixture and the refusal matrix (64) unchanged (./sx target test-native32, test-native-arm64, test-native-riscv64, test-sxisaexec)
  • Signed list elements in the multi-ISA emitter (R02 step 17): - and digits are parsed explicitly (not through the numeric token reader, which treats a sign ambiguously) and stored as the 32-bit two's complement word — in the data segment at top level and through the push-immediate/store-variable pair inside a body — so signs survive in frame lists; the new list_neg fixture (mixed signs, a large negative, arithmetic in both orders, len, a conditional on a negative element, two body lists) runs on all six execution paths (i386 8276 bytes, reviewed AArch64/RV64IM goldens, arch-neutral data image, output equal to the x86-64 native AOT lane), with every pre-existing fixture and the refusal matrix (64) unchanged (./sx target test-native32, test-native-arm64, test-native-riscv64, test-sxisaexec)
  • Numeric list literals inside make bodies (R02 step 16): a body list reserves its words in the frame (growing downward from the reserved slot) and stores each element at run time with the existing push-immediate/store-variable pair, so a read is slot - 4*index, len(xs) stays the compile-time count, two lists in one body share the frame and a recursive body can use its own list; the new list_body fixture runs on all six execution paths (i386 8244 bytes, reviewed AArch64/RV64IM goldens, arch-neutral data image, output equal to the x86-64 native AOT lane), with every pre-existing fixture and the refusal matrix (64) unchanged (./sx target test-native32, test-native-arm64, test-native-riscv64, test-sxisaexec)
  • Numeric list literals in the multi-ISA emitter (R02 step 15): the first aggregate slice — hold xs = [7, 8, 9] stores the elements in the data segment at compile time (no element assignment exists in the language, so the declaration emits no code), xs[<integer literal>] is one variable load at base + 4*index, len(xs) is the element count as an immediate, and indices are compile-time checked (a past-the-end index and a runtime index are refusals, as are empty lists, non-integer elements, whole-list values and a list literal in a make body); the new list_num fixture runs on all six execution paths (i386 8272 bytes, reviewed AArch64/RV64IM goldens, arch-neutral data image, output equal to the x86-64 native AOT lane), refuse/list.sa became legal and was replaced by two index refusals so the matrix stays 64 (./sx target test-native32, test-native-arm64, test-native-riscv64, test-sxisaexec)
  • String equality inside make bodies in the multi-ISA emitter (R02 step 14): the step-13 refusal is replaced by a correct link — the shared comparison routine stays where it was (behind a jump after the main program) but its call sites are patched after the make bodies are walked, and a program that compares only inside bodies places the routine after the bodies behind a jump over the exit sequence, so show string_eq(x, "ab") in a body answers 0/1, as do body comparisons with concat(...)/-> str arguments, a body local built by concat, when/while conditions in a body, and a recursive body comparing at its base case; no pinned image moved (every pre-existing fixture keeps its exact i386 size and reviewed AArch64/RV64IM golden), the new streq_body fixture is the only one whose routine is reachable only from a body (i386 8361 bytes, regenerated goldens, arch-neutral data image, output compared with the x86-64 native AOT lane) and the refusal matrix is 64 → 63 (refuse/streq_in_body.sa became legal and was deleted) (./sx target test-native32, test-native-arm64, test-native-riscv64, test-sxisaexec)
  • String equality over string expressions in the multi-ISA emitter (R02 step 13): a string_eq argument may now be a whole concat(...) or a whole -> str call on either side (string_eq(concat(a, c), "alphabeta"), string_eq(concat(a, c), concat("alpha", "beta")), string_eq(concat(chr(65), "lpha"), "Alpha"), string_eq(wrap(a), "[alpha")), each materialized as a (pointer, length) pair before the shared comparison routine runs, with literal arguments pooled by the ordinal counted from the expression text; the new streq_expr fixture runs on all six execution paths (i386 8664 bytes, regenerated AArch64/RV64IM goldens, output compared with the x86-64 native AOT lane) and the refusal matrix stays 64 (the concat-inside-string_eq refusal became a legal program and was deleted, its form moved into the fixture, and a body-comparison refusal was added); the same work found and closed a silent miscompile — a string_eq inside a make body left its call site unpatched and printed the operand lengths instead of 0/1, so that form is now refused (refuse/streq_in_body.sa) until the bodies are emitted before the routine (./sx target test-native32, test-native-arm64, test-native-riscv64)
  • Bounded recursion with per-depth frames in the multi-ISA emitter (R02 step 11): every make invocation now owns a frame — the caller pushes the arguments, the callee saves the caller's frame base in its frame, zero-fills the body's locals below it and bumps a shared depth word, and the epilogue restores the stack pointer, the frame base and the return address before decrementing depth — so direct and mutual recursion compile instead of being refused, capped at 64 live frames by a shared overflow stub that exits 1 without writing any output; the new recursion fixture (fact, fib, mutual even/odd, a per-depth accumulator, parameter reassignment, and recursion inside an operand and a condition) runs on all six execution paths with reviewed AArch64/RV64IM goldens, fn_depth_cap is the cap's negative control on i386/AArch64/RV64IM, the three recursion refusals became three bound refusals (61 locals in one frame, 9 declarations, 7 parameters; matrix stays 52), and a real RV64 encoder defect is fixed — sd ra,8(sp) left the slot the epilogue reloads empty, so the first body-to-body call returned through an uninitialised word (./sx target test-native32, test-native-arm64, test-native-riscv64, test-sxisaexec, each exit 0)
  • A call as an operand in the multi-ISA emitter (R02 step 10): the integer expression emitter asks the function table before the variable table, so a NAME(...) subterm is emitted where it stands and its result is pushed like any other value — f(1) + 1, 2 * f(3) - 1, (f(1) + f(2)) * 2, f(1) * g(2), add(inc(1) + 1, inc(2)), a when/while condition, s[f(1)] and chr(f(1)) all compile, with the whole-value path and the operand path sharing one function so both emit the same call sequence; the acyclic check now also covers an edge discovered inside an operand, so give f(n) + 1 is refused with the cycle diagnostic, and the fn fixture grows to 19 output lines (i386 8305 bytes, regenerated goldens, identical output on three ISAs, refusal matrix 51 → 52) (./sx target test-native32, test-native-arm64, test-native-riscv64, each exit 0)
  • Calls between functions in the multi-ISA emitter (R02 step 9): a make body may call another function — AArch64 and RV64IM save the link register in the body prologue and restore it before every return (i386 keeps it on the stack), calls from a body record a call-graph edge, and a reachability walk refuses any cycle so self and mutual recursion are refused instead of silently reusing a parameter slot; the fn fixture now covers a body calling a function twice in one expression and a three-level chain (13 lines, i386 8293 bytes, regenerated goldens, identical output on all three ISAs, refusal matrix stays 51) (./sx target test-native32, test-native-arm64, test-native-riscv64, each exit 0)
  • Bounded numeric user functions in the multi-ISA emitter (R02 step 8): make NAME(a: num, b: num) -> num { … give … } compiles for i386, AArch64 and RV64IM — the statement walk became a function so a make body is walked by the same code, bodies are lifted out of the program text, emitted after the main program behind a jump and reached with a real call, with arguments evaluated on the value stack and popped into the callee's parameter slots; calls work as a whole value in hold/assignment/show, in conditions and as another call's argument, and recursion, nested calls from a body, string arguments/returns and untyped parameters are refused with their own diagnostics, with a fn fixture on all six execution paths, reviewed goldens and the refusal matrix raised from 40 to 51 (./sx target test-native32, test-native-arm64, test-native-riscv64, each exit 0)
  • chr of an integer expression in every chr position (R02 step 7): the integer expression emitter is now a single function (emit_expression), so concat(chr(n + 1), "x"), string_eq(chr(n + 61), "A"), string_eq("A", chr(n + 61)), string_eq(chr(n + 61), chr(n + 62)), len(chr(n + 61)) and len(chr(n - 4)) all compile — the argument's matching parenthesis is found by paren_close, the inner tokens are rendered by tok_range_text and compiled through emit_chr_expr_slot into the shared scratch word, while a one-token argument keeps the old direct lowering, so no reviewed golden changed; the chr_expr fixture grows to 18 output lines (i386 8515 bytes, including a nested call and explicit grouping inside the argument) with regenerated AArch64/RV64IM goldens, and the refusal matrix moves from 39 to 40 (./sx target test-native32, test-native-arm64, test-native-riscv64, test-sxisaexec, each exit 0)
  • chr of an integer expression in the multi-ISA emitter (R02 step 6): chr(n + 1), chr((n + 60) + 1) and chr(len(s) + 62) compile — the expression is compiled first and its value parked in a shared 4-byte scratch word, read back through the numeric-slot path, with literals and bare names keeping the old lowering; chr of an expression inside concat/string_eq/len stays an explicit refusal, a chr_expr fixture runs on all six execution paths with reviewed goldens, and the refusal matrix moves from 36 to 39 (./sx target test-native32, test-native-arm64, test-native-riscv64, test-sxisaexec)
  • General string-valued expressions in the multi-ISA emitter (R02 step 5): show concat(A, B) and concat nested as a concat operand, lowered by one operand resolver (variable pair, runtime-written literal pair, chr cell, or a nested call emitted into a hidden pair slot) feeding the single copy routine, with nesting capped at seven levels, a concat_expr fixture on all six execution paths, reviewed AArch64/RV64IM goldens and the refusal matrix raised from 31 to 36 (./sx target test-native32, test-native-arm64, test-native-riscv64, test-sxisaexec)
  • Nested chr in the multi-ISA emitter: concat(chr(65), "x"), concat(chr(a), chr(b)), string_eq(chr(65), s), string_eq(chr(a), chr(b)) and len(chr(65)) all lower through the same per-argument cell (hidden (pointer, length) slot, no new push form, no allocation), with a chr_nested fixture on all six execution paths, reviewed goldens, a pinned data-segment layout and the refusal matrix raised from 26 to 31 (./sx target test-native32, test-native-arm64, test-native-riscv64, test-sxisaexec)
  • chr(n) in the multi-ISA emitter: a one-byte string from an integer literal or a numeric variable (hold s = chr(n), s = chr(n), show chr(n)), with the low-byte rule, chr(0) as empty text, a per-occurrence data cell, six-way parity, reviewed goldens and four new refusals — and a second code page, because the streq image had consumed the whole first one (./sx target test-native32, test-native-arm64, test-native-riscv64, test-sxisaexec)
  • String equality in the multi-ISA emitter: string_eq(A, B) on i386/AArch64/RV64IM is one shared comparison routine (length test, then bytes) returning 0/1, with six-way parity, reviewed goldens, four new refusals and a fix to the AArch64 emulator's 64-bit add/subtract flags (./sx target test-native32, test-native-arm64, test-native-riscv64, test-sxisaexec)
  • String-value copy in the multi-ISA emitter: hold b = a / b = a copy a string variable's (pointer, length) pair on i386, AArch64 and RV64IM with six-way execution parity, golden images and three new refusals (./sx target test-native32, test-native-arm64, test-native-riscv64, test-sxisaexec)
  • JSON boundary/precision oracle: 43 hand-written lines for json_write.sa + json_deep.sa on seed-min, gen2 and native AOT (./sx target test-stdlib-next)
  • Native \r literal escape (R13): CR decodes in every mode and the native anchor was rebuilt to a new three-stage fixed point (./sx target test-stdlib-next, ./sx target test-native-bootstrap)
  • Release publication identity (R18): the release path archives the resolved tested commit instead of HEAD, refuses a checkout that differs from GITHUB_SHA, refuses an existing tag on another commit, creates a new tag with --target <commit>, only verifies an existing tag, and fails a moved tag after publication (./sx target test-release-identity, ./sx release-identity)
  • Full ARM64/RV64 native compiler/runtime beyond the integer subset (strings, lists, structs, make/give, floats, file I/O, GC); emulator FP/syscall coverage is in progress (docs/ALL_SAYANOX_PHASE.md)
  • Broader platform support

Maintained source and acceptance

The compiler, native backend, compatibility frontend/runtime templates, tools, build/bootstrap/dependency/cleanup/recovery logic, tests, audits, CI guards and release implementation are Sayanox. All 236 original target names remain implemented. There is no maintained C seed, Makefile or shell script. Necessary host tools and generated C compatibility output remain supported.

The pinned native compiler and generated entry are explicit binary trust inputs, not independent source-trust proof. Native-origin C2 == C3 and complete C1 emission under 64 MiB pass. Final guarded acceptance status is recorded in the migration report; registration or file removal alone is not substituted for that full run.

All ten steps of Phase D are complete and verified:

Phase D Piece State
step 1 (2026-10-18) byte buffers, bit_*, shl/shr, write_bytes, bytes_f64 done, test-native-primitives
step 2 (2026-10-20) read_bytes, the binary reader the buffers were missing done, test-read-bytes
step 3 (2026-10-20) tools/sxlink.sa — ELF image writer + rel32 linker (SX_LINK_DUMP) done, test-native-sxlink
step 4 (2026-10-21) tools/sxencode.sa — the x86-64 encoder (SX_ENCODE_LOG) done, test-native-sxencode
step 5 (2026-10-23) tools/sxdefs.sa — front-end phase 1, the use splice and the definition tables (SX_DEFS_DUMP) done, test-native-sxdefs
step 6 (2026-10-24) tools/sxinfer.sa — phase-2 kind inference: pk_*, 16-round fixpoint, generic struct & function instantiation done, test-native-sxinfer
step 7 (2026-10-24) tools/sxemit_lib.sa + tools/sxdata_lib.sa + tools/sxemit.sa — the full x86-64 emit tree inside EMIT-SEAM done, test-native-sxemit, test-native-emit-split
step 8 (2026-10-24) tools/sxruntime.sa — the 856-line emitted x86-64 runtime (24 routines, 3,521 bytes) done, test-native-sxruntime
step 9 (2026-10-24) tools/sxgc.sa — the 339-line x86-64 mark & sweep collector (6 routines, 1,209 bytes) done, test-native-sxgc
step 10 (2026-10-24) selfhost/native_aot.sa + tools/sxpipeline_lib.sa — Sayanox backend wired as sole producer; selfhost/native_aot.c deleted done, ./sx target native-test

Earlier moves on the same path: on 2026-10-17 the 150-line C IR translator became tools/emit_to_ir.sa with byte-identical output, the LSP folder index moved into Sayanox (the C directory header and its binder were deleted), the 127-line C framed-session test client became tools/lsp_workspace_test.sa, and ten unreferenced legacy C files were removed. Phase E — the seed — stays with option 2, one pinned and audited C anchor (./sx target test-trust-anchor), until Phase D makes option 1 (a prebuilt bootstrap binary, rebuildable from .sa) honest.


Logo

Sayanox mark

The mark is a rounded-square badge on an indigo → cyan gradient, carrying a geometric S built from two 270-degree circular arcs. It is the boot chain made visible: a self-hosting compiler has to be folded out of itself, and two arcs whose tangents meet eastward at the waist are the smallest shape that says so without drawing a compiler.

The full set — vector masters, rasters, the wordmark lockup and a 1280×640 social card — lives in assets/, with the palette, the exact geometry and the usage notes in assets/README.md.

<!-- the mark, at any size -->
<img src="assets/sayanox-logo.svg" alt="Sayanox" width="64" />

<!-- wordmark lockup, for a dark or coloured ground -->
<img src="assets/sayanox-lockup.svg" alt="Sayanox" height="48" />

<!-- browser tab icon -->
<link rel="icon" type="image/svg+xml" href="assets/favicon.svg" />

Contributing

This is an active research + engineering project. Issues and pull requests are welcome.

./sx doctor
./sx target true-selfhost
./sx target native-test

A change lands with the gate that proves it: add a ./sx target test-* target, keep the four hard gates green with gen3 == gen4, update the two status tables above, and leave a dated folder in docs/gate-logs/. If a claim cannot be checked by a target, it belongs in the Remaining table instead.


License

Sayanox License v1.1 © Sayan (sayan9168)

Full text: LICENSE · License home: sayanox-license


Built by Sayan the researcher
Portfolio · GrokOSINT

About

Sayanox is an original programming language (.sa) with a self-hosting compiler, pure-min seed→gen2 bootstrap, native x86-64 AOT, offline packages, and a growing stdlib.

Topics

aot-compilerbootstrapcode-generationcompilercompiler-designeducationalgarbage-collectionlanguage-designlspmit-licensenative-codeopen-sourcepackage-managerparserprogramming-languageprogramming-languagessayanoxself-hostingsystems-programmingtype-checker

Resources

Readme
License

Code of conduct

Code of conduct

Contributing

Contributing

Security policy

Security policy

Accessibility

Accessibility
Activity

Stars

4 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.