lumbda/c
russell@unturf.com 27f468c5b7 portal-rng: Python + C impls of xoshiro256** + portal state capture
Zoe's contribution question: does our portal preserve RNG state so a
simulation can continue in another process with the same random stream?
Answer today: no — no RNG existed. Answer now (Python + C): yes, bit-identical.

- New builtins: random-seed!, random, random-int, random-state, random-state!
- xoshiro256** (Blackman & Vigna 2018) — deterministic, portable, no libc rand
- State = 4 x u64; portal-v1 JSON gains 'rng' field with 8 x u32 halves
- Python and C produce bit-identical streams (verified: seed=42, 10 draws)
- Asm impl + cross-impl tests + whitepaper note: next commits

Ticket: docs/tickets/0001-portal-rng.md
2026-04-20 10:57:39 -04:00
..
.gitignore rename: uncommonlisp -> lumbda throughout the repo 2026-04-19 10:20:11 -04:00
bench.c rename: uncommonlisp -> lumbda throughout the repo 2026-04-19 10:20:11 -04:00
builtins.c isqrt: add integer square root builtin to all three impls 2026-04-20 08:50:24 -04:00
eval.c rename: uncommonlisp -> lumbda throughout the repo 2026-04-19 10:20:11 -04:00
jit.c rename: uncommonlisp -> lumbda throughout the repo 2026-04-19 10:20:11 -04:00
jit.h rename: uncommonlisp -> lumbda throughout the repo 2026-04-19 10:20:11 -04:00
lumbda.h rename: uncommonlisp -> lumbda throughout the repo 2026-04-19 10:20:11 -04:00
main.c rename: uncommonlisp -> lumbda throughout the repo 2026-04-19 10:20:11 -04:00
Makefile rename: uncommonlisp -> lumbda throughout the repo 2026-04-19 10:20:11 -04:00
portal.c portal-rng: Python + C impls of xoshiro256** + portal state capture 2026-04-20 10:57:39 -04:00
printer.c rename: uncommonlisp -> lumbda throughout the repo 2026-04-19 10:20:11 -04:00
reader.c rename: uncommonlisp -> lumbda throughout the repo 2026-04-19 10:20:11 -04:00
test.c rename: uncommonlisp -> lumbda throughout the repo 2026-04-19 10:20:11 -04:00
TODO-named-let-bytecode.md rename: uncommonlisp -> lumbda throughout the repo 2026-04-19 10:20:11 -04:00
types.c rename: uncommonlisp -> lumbda throughout the repo 2026-04-19 10:20:11 -04:00
vm.c rename: uncommonlisp -> lumbda throughout the repo 2026-04-19 10:20:11 -04:00