interplane.Get Omega
Read in your language

interplane-forge

INTERPLANE Forge

Brought by drakestapleton

branch main Branches Tags History

interplane-forge / galaxy / page.om

713 lines · 18581 bytes Raw Blame History
1om2
2note galaxy.om: the INTERPLANE front page as one seeded Omega program. No scripts are emitted.
3note stdin "css" prints the stylesheet. Otherwise stdin is tab-separated public facts, one per line:
4note K key value a headline figure
5note S name open done24 a hive cell (a factory station), at most 10
6note R name tier a project star, tier core, rest or tail
7note M repo head note a merged head
8note stdout is the page. Every field is HTML-escaped. Exit 0 on success, 1 when stdout fails.
9note Star positions use the golden angle: cos and sin of pi(3 - sqrt 5), Wolfram, 17 digits.
10const GCP f64 0.73736887807831990
11const GS f64 0.67549029426152364
12global ib uchar 65536
13global ibl ulong 1
14note caps: a name prints at most FCAP input bytes, a merge note NCAP; at most 400 stars, 12 merges,
15note 10 cells and 400 dots per ring are drawn. README "Limits" carries the output bound these give.
16const FCAP ulong 64
17const NCAP ulong 160
18global ob uchar 1048576
19text tcore "core"
20text trest "rest"
21text ttail "tail"
22global obl ulong 1
23text tamp "&"
24text tlt "<"
25text tgt ">"
26text tquo """
27text tapo "'"
28text tna "not read"
29note retired-network words: a fed field holding one of them is not printed as fed (rterm)
30text rw1 "radicle"
31text rw2 "heartwood"
32text rw3 "rad:z"
33text rw4 "/rad/"
34text rw5 "rad clone"
35text rw6 "rad init"
36text rw7 "rad sync"
37text rw8 "rad id"
38text rw9 "rad patch"
39text rw10 "rad auth"
40text tretd "Retired"
41text kdel "delivered"
42text kver "verdicts"
43text kapp "approved"
44text kgpu "gpuw"
45text h01 "<!doctype html><html lang='en' data-theme='dark'><head><meta charset='utf-8'><meta name='viewport' content='width=device-width,initial-scale=1'>"
46text h02 "<title>INTERPLANE: the home for space junk</title><link rel='icon' type='image/svg+xml' href='/public/favicon.svg'><link rel='stylesheet' href='/assets/tokens.css'><link rel='stylesheet' href='/assets/galaxy.css'></head><body>\n"
47text h03 "<header class='top'><a class='wm' href='/'>INTERPLANE</a><nav><a href='#galaxy'>Galaxy</a><a href='/explore'>Explore</a><a href='/index.html'>Protocol</a>"
48text h04 "<a href='#proof'>Proof</a></nav><span class='live'><i class='dot'></i>Read from the Spark "
49text h04b "</span></header>\n<main>\n"
50text h05 "<div class='side'><section class='hero'><p class='eyebrow'>The home for space junk</p><h1>Bring the build that almost worked.</h1>"
51text h06 "<p class='sub'>Half-finished experiments, abandoned repos, AI slop: all welcome. Interplane checks each piece against evidence on its exact revision, keeps what passes and shows the proof, so the next builder can reuse it. No proof. Not done.</p>"
52text h06b "<p class='acts'><a class='btn' href='/explore'>Explore the junkyard</a><a class='btn ghost' href='/forge/'>What runs today</a></p>"
53text h07 "<p class='claim'>Running here now: Sovereign Intelligence. NVIDIA hardware compatible. CUDA not required. No plugins, and no scripts on this page.</p>"
54text h07b "<p class='scope'>Proven on the DGX Spark GB10. Other chips: not run.</p><pre class='cmd'>curl -fsSL https://www.aienos.com/si | sh</pre>\n<dl class='stats'>"
55text h08 "<div><dt>Delivered</dt><dd>"
56text h09 "</dd></div><div><dt>Verdicts, 24 h</dt><dd>"
57text h10 "</dd></div><div><dt>Approved, to merge</dt><dd>"
58text h11 "</dd></div><div><dt>GPU, watts</dt><dd>"
59text h12 "</dd></div></dl></section>\n"
60text h13 "<svg id='galaxy' viewBox='0 0 1200 800' preserveAspectRatio='xMidYMid slice' role='img' aria-label='The hive at the centre, every project a star around it'>\n"
61text h14 "<g transform='translate(600 400)'>\n<circle class='orb' r='295'/><circle class='orb' r='380'/><circle class='orb' r='465'/>\n<g class='spin'>\n"
62text h15 "</g>\n<g class='stars'>\n"
63text h16 "</g>\n</g>\n<g class='comb'>\n"
64text h17 "</g>\n</svg>\n"
65text h18 "<aside id='proof'><p class='eyebrow'>Proof</p><h2>Latest merges</h2>"
66text h19 "<p class='sub'>Each line is a merged commit. Compare the hash with your copy.</p><ol class='chain'>\n"
67text h20 "</ol></aside></div>\n"
68text h21 "<p class='legend'>Each cell: jobs in work now, then delivered in 24 h. <i class='k ka'></i><b>"
69text h22 "</b> unverified, in review, inner ring <i class='k kb'></i><b>"
70text h23 "</b> passed review, waiting to merge, second ring <i class='k kc'></i><b>"
71text h24 "</b> public projects, one star each</p>\n</main></body></html>\n"
72text f1 "</g>\n<g class='flow fa'>\n"
73text f2 "</g>\n<g class='flow fb'>\n"
74text o1 "<circle class='pl' cx='"
75text o2 "' r='3'/>\n"
76text kwai "waiting"
77text kasof "asof"
78text d1 "<circle class='d"
79text d2 "' cx='"
80text d3 "' cy='"
81text d4 "' r='1'/>\n"
82text s1 "<a href='/drakestapleton/"
83text s2 "'><circle class='st "
84text s3 "' r='"
85text s4 "'><title>"
86text s5 "</title></circle></a>\n"
87text s6 "<text class='lb' x='"
88text s6e "<text class='lb le' x='"
89text s7 "' y='"
90text s8 "'>"
91text s9 "</text>\n"
92text c1 "<g class='cell' transform='translate("
93text c2 ")'><polygon class='hx l"
94text c3 "' points='0,-64 55,-32 55,32 0,64 -55,32 -55,-32'/><text class='cn' y='-22'>"
95text c4 "</text><text class='cn' y='-8'>"
96text c5 "</text><text class='cv' y='18'>"
97text c6 "</text><text class='cs' y='36'>+"
98text c7 " in 24 h</text></g>\n"
99text m1 "<li><a href='/drakestapleton/"
100text m2 "</a><code>"
101text m3 "</code><span>"
102text m4 "</span></li>\n"
103text q01 "*{box-sizing:border-box}html,body{margin:0;height:100%;background:var(--bg-primary);color:var(--text-primary);font:14px/20px var(--font-sans,Inter,system-ui,sans-serif)}\n"
104text q02 "a{color:var(--accent);text-decoration:none}a:hover{color:var(--accent-hover)}a:focus-visible{outline:2px solid var(--focus-ring);outline-offset:2px}\n"
105text q03 ".top{position:fixed;inset:0 0 auto 0;z-index:3;display:flex;align-items:center;gap:24px;padding:12px 32px;background:var(--bg-header);border-bottom:1px solid var(--border)}\n"
106text q04 ".wm{font-weight:700;letter-spacing:.3em;color:var(--text-primary)}.top nav{display:flex;gap:20px;flex:1}\n"
107text q05 ".live{font:12px/16px var(--font-mono,ui-monospace,monospace);color:var(--text-secondary)}\n"
108text q06 ".dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--live-dot);box-shadow:var(--glow-live);margin-right:8px;animation:tw 2s ease-in-out infinite}\n"
109text q07 "#galaxy{position:fixed;left:472px;top:46px;width:calc(100% - 472px);height:calc(100% - 46px);z-index:0}\n"
110text q08 ".side{position:fixed;left:32px;top:62px;bottom:16px;width:424px;z-index:2;display:flex;flex-direction:column;gap:16px;overflow:auto}\n"
111text q08b ".hero,#proof{background:var(--bg-card);border:1px solid var(--border);border-radius:16px;padding:24px;flex:none}\n"
112text q08c ".claim{margin:0 0 4px;font-weight:600}.acts{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 16px}.btn{display:inline-block;padding:8px 16px;border-radius:8px;background:var(--accent-fill);color:var(--on-accent-fill);font-weight:600}\n"
113text q08d ".btn:hover{background:var(--accent-fill-hover);color:var(--on-accent-fill)}.ghost,.ghost:hover{background:none;border:1px solid var(--border-strong);color:var(--text-primary)}\n"
114text q09 ".legend{position:fixed;left:472px;right:0;bottom:0;margin:0;padding:8px 16px;text-align:center;font-size:12px;color:var(--text-secondary);z-index:2;background:var(--bg-header);border-top:1px solid var(--border)}\n"
115text q09b ".legend b{color:var(--text-primary);font-family:var(--font-mono,ui-monospace,monospace);margin:0 4px}.k{display:inline-block;width:8px;height:8px;border-radius:50%;margin-left:16px}\n"
116text q09c ".ka{background:var(--danger)}.kb{background:var(--warning)}.kc{background:var(--accent)}\n"
117text q09d ".fa{animation:spin 180s linear infinite}.fb{animation:spin 320s linear infinite reverse}.fa .pl{fill:var(--danger)}.fb .pl{fill:var(--warning)}\n"
118text q10 ".eyebrow{margin:0 0 8px;font-size:12px;font-weight:600;letter-spacing:.2em;text-transform:uppercase;color:var(--accent)}\n"
119text q11 "h1{margin:0 0 12px;font-size:36px;line-height:40px;font-weight:700}h2{margin:0 0 8px;font-size:18px;line-height:28px;font-weight:600}\n"
120text q12 ".sub{margin:0 0 12px;color:var(--text-secondary)}.scope{margin:0 0 16px;font-size:12px;color:var(--warning)}\n"
121text q13 ".cmd{margin:0 0 16px;padding:12px;border:1px solid var(--border);border-radius:8px;background:var(--fill-input);font:12px/16px var(--font-mono,ui-monospace,monospace);overflow:auto}\n"
122text q14 ".stats{display:grid;grid-template-columns:repeat(4,auto);gap:12px;margin:0}.stats dt{font-size:11px;line-height:16px;color:var(--text-secondary)}\n"
123text q15 ".stats dd{margin:0;font:600 20px/28px var(--font-mono,ui-monospace,monospace)}\n"
124text q16 ".chain{list-style:none;margin:0;padding:0}.chain li{display:grid;grid-template-columns:1fr auto;gap:2px 8px;padding:8px 0;border-top:1px solid var(--border-faint)}\n"
125text q17 ".chain code{font:12px/16px var(--font-mono,ui-monospace,monospace);color:var(--success)}.chain span{grid-column:1/3;font-size:12px;color:var(--text-secondary)}\n"
126text q18 ".orb{fill:none;stroke:var(--accent);stroke-opacity:.12}.spin{animation:spin 900s linear infinite}\n"
127text q19 ".d0,.d1,.d2{fill:var(--text-primary)}.d0{opacity:.3}.d1{opacity:.45;animation:tw 7s ease-in-out infinite}.d2{opacity:.6;animation:tw 11s ease-in-out infinite}\n"
128text q20 ".st{transform-box:fill-box;transform-origin:center;transition:opacity .15s}.st.core{fill:var(--text-primary)}.st.rest{fill:var(--accent)}.st.tail{fill:var(--text-secondary)}\n"
129text q21 ".stars a:hover .st,.stars a:focus .st{transform:scale(2)}.lb{fill:var(--text-tertiary);font:11px var(--font-mono,ui-monospace,monospace)}.le{text-anchor:end}\n"
130text q22 ".hx{stroke:var(--border-strong);stroke-width:1}.l0{fill:var(--heat-0)}.l1{fill:var(--heat-1)}.l2{fill:var(--heat-2)}.l3{fill:var(--heat-3)}.l4{fill:var(--heat-4)}\n"
131text q23 ".l2,.l3,.l4{animation:br 4s ease-in-out infinite}.comb text{text-anchor:middle;fill:var(--text-primary)}\n"
132text q24 ".cn{font:600 11px var(--font-sans,Inter,system-ui,sans-serif)}.cv{font:600 20px var(--font-mono,ui-monospace,monospace)}\n"
133text q25 ".comb .cs{font:10px var(--font-mono,ui-monospace,monospace);fill:var(--text-secondary)}\n"
134text q26 "@keyframes spin{to{transform:rotate(360deg)}}@keyframes tw{50%{opacity:.25}}@keyframes br{50%{fill-opacity:.6}}\n"
135text q27 "@media (max-width:1000px){main{display:flex;flex-direction:column}.side{display:contents}.hero{order:1;margin:72px 16px 0}#galaxy{order:2;position:relative;left:0;top:0;width:100%;height:80vh}\n"
136text q27b ".legend{order:3;position:static;padding:12px}#proof{order:4;margin:16px;flex:none}.top{gap:12px;padding:12px 16px}.top nav{gap:12px;overflow-x:auto}.live{display:none}}\n"
137text q28 "@media (prefers-reduced-motion:reduce){*{animation:none!important}}\n"
138note ---- output buffer
139fn emb c uchar to void
140o = get obl 0
141put ob o c
142put obl 0 add o 1
143end
144fn em t view uchar * to void
145n = len t
146o = get obl 0
147i = ulong 0
148while lt i n bound 65536
149put ob add o i get t i
150i = add i 1
151end
152put obl 0 add o n
153end
154fn emn v ulong to void
155d = new uchar 20 0
156n = ulong 0
157x = v
158if eq x 0
159emb 48
160end
161while gt x 0 bound 20
162put d n uchar add 48 rem x 10
163x = div x 10
164n = add n 1
165end
166while gt n 0 bound 20
167n = sub n 1
168emb get d n
169end
170end
171fn emi v long to void
172if lt v 0
173emb 45
174emn ulong neg v
175else
176emn ulong v
177end
178end
179note emfc: at most cap bytes of the input a..b, HTML-escaped; a cut never splits a UTF-8 character
180fn emfc a ulong b ulong cap ulong to void
181if le b a
182ret
183end
184e = b
185if gt sub b a cap
186e = add a cap
187k = ulong 0
188while lt k 3 bound 3
189if gt e a
190u = get ib e
191if ge u 128
192if lt u 192
193e = sub e 1
194end
195end
196end
197k = add k 1
198end
199end
200i = a
201while lt i e bound 160
202c = get ib i
203if eq c 38
204em tamp
205else
206if eq c 60
207em tlt
208else
209if eq c 62
210em tgt
211else
212if eq c 34
213em tquo
214else
215if eq c 39
216em tapo
217else
218emb c
219end
220end
221end
222end
223end
224i = add i 1
225end
226end
227fn emf a ulong b ulong to void
228emfc a b FCAP
229end
230fn emfn a ulong b ulong to void
231emfc a b NCAP
232end
233note ---- input scanning: every index stays inside 0..ibl
234fn find a ulong e ulong c uchar to ulong
235i = a
236while lt i e bound 65536
237if eq get ib i c
238ret i
239end
240i = add i 1
241end
242ret e
243end
244fn eol a ulong to ulong
245ret find a get ibl 0 10
246end
247note nextl: start of the first line at or after p whose first byte is ty, or ibl
248fn nextl p ulong ty uchar to ulong
249lim = get ibl 0
250s = p
251while lt s lim bound 65536
252if eq get ib s ty
253ret s
254end
255s = add eol s 1
256end
257ret lim
258end
259note fld: start of field k (0 based) of the line s..e; e when the line has fewer fields
260fn fld s ulong e ulong k ulong to ulong
261p = s
262j = ulong 0
263while lt j k bound 16
264p = find p e 9
265if lt p e
266p = add p 1
267end
268j = add j 1
269end
270ret p
271end
272note rhas: does ib[a, b) hold t (t lowercase ASCII), compared without case
273fn rhas a ulong b ulong t view uchar * to bool
274n = len t
275if lt sub b a n
276ret false
277end
278if le b a
279ret false
280end
281m = add sub sub b a n 1
282i = ulong 0
283while lt i m bound 65536
284k = ulong 0
285ok = true
286while lt k n bound 64
287c = get ib add add a i k
288if and ge c 65 le c 90
289c = uchar add c 32
290end
291if ne c get t k
292ok = false
293k = n
294else
295k = add k 1
296end
297end
298if ok
299ret true
300end
301i = add i 1
302end
303ret false
304end
305note rterm: the fed field ib[a, b) names the network Interplane no longer uses (Radicle was removed
306note on 2026-11-14); the page then prints a plain replacement instead of the fed words
307fn rterm a ulong b ulong to bool
308if le b a
309ret false
310end
311if or rhas a b rw1 or rhas a b rw2 or rhas a b rw3 rhas a b rw4
312ret true
313end
314if or rhas a b rw5 or rhas a b rw6 or rhas a b rw7 rhas a b rw8
315ret true
316end
317ret or rhas a b rw9 rhas a b rw10
318end
319fn pnum a ulong b ulong to ulong
320v = ulong 0
321i = a
322while lt i b bound 65536
323c = get ib i
324if ge c 48
325if le c 57
326v = add mul v 10 ulong sub c 48
327end
328end
329i = add i 1
330end
331ret v
332end
333fn feq a ulong b ulong t view uchar * to bool
334n = len t
335if ne sub b a n
336ret false
337end
338i = ulong 0
339while lt i n bound 64
340if ne get ib add a i get t i
341ret false
342end
343i = add i 1
344end
345ret true
346end
347note kpos: start of the value of headline key t, or ibl
348fn kpos t view uchar * to ulong
349lim = get ibl 0
350s = nextl 0 75
351while lt s lim bound 65536
352e = eol s
353a = fld s e 1
354if feq a find a e 9 t
355ret fld s e 2
356end
357s = nextl add e 1 75
358end
359ret lim
360end
361note emk: the value of headline key t, or "not read"
362fn emk t view uchar * to void
363v = kpos t
364if lt v get ibl 0
365emf v find v eol v 9
366else
367em tna
368end
369end
370fn knum t view uchar * to ulong
371v = kpos t
372if lt v get ibl 0
373ret pnum v find v eol v 9
374end
375ret 0
376end
377note cnt: how many input lines start with ty
378fn cnt ty uchar to ulong
379lim = get ibl 0
380n = ulong 0
381s = nextl 0 ty
382while lt s lim bound 65536
383n = add n 1
384s = nextl add eol s 1 ty
385end
386ret n
387end
388note cntr: the R lines (stars) the page draws: those whose name passes rterm
389fn cntr to ulong
390lim = get ibl 0
391n = ulong 0
392s = nextl 0 82
393while lt s lim bound 65536
394e = eol s
395a = fld s e 1
396if not rterm a find a e 9
397n = add n 1
398end
399s = nextl add e 1 82
400end
401ret n
402end
403note orbit: n dots (at most 400) on the circle of radius r, spread by the golden angle
404fn orbit n ulong r ulong to void
405x = 0.0f64
406y = 1.0f64
407rf = f64 r
408m = n
409if gt m 400
410m = ulong 400
411end
412k = ulong 0
413while lt k m bound 400
414em o1
415emi long mul rf x
416em d3
417emi long mul rf y
418em o2
419t = neg add mul x GCP mul y GS
420y = sub mul x GS mul y GCP
421x = t
422k = add k 1
423end
424end
425note ---- the galaxy
426fn dustpt k ulong x f64 y f64 to void
427r = mul 620.0f64 fsqrt div f64 add k 1 160.0f64
428em d1
429emn rem k 3
430em d2
431emi long mul r x
432em d3
433emi long mul r y
434em d4
435end
436fn dust to void
437x = 1.0f64
438y = 0.0f64
439k = ulong 0
440while lt k 160 bound 160
441dustpt k x y
442t = neg add mul x GCP mul y GS
443y = sub mul x GS mul y GCP
444x = t
445k = add k 1
446end
447end
448fn slabel a ulong b ulong px long py long to void
449note a star left of the centre carries its label on its left, away from the hive
450if lt px 0
451em s6e
452emi sub px 9
453else
454em s6
455emi add px 9
456end
457em s7
458emi add py 4
459em s8
460emf a b
461em s9
462end
463note tier letter to ring: core 0, rest 1, tail 2
464fn sring c ulong e ulong to ulong
465if lt c e
466if eq get ib c 99
467ret 0
468end
469if eq get ib c 116
470ret 2
471end
472end
473ret 1
474end
475fn srad ring ulong k ulong to f64
476u = add mul ring 85 rem mul k 37 50
477ret f64 add u 270
478end
479fn sdraw s ulong e ulong ring ulong px long py long to void
480a = fld s e 1
481b = find a e 9
482em s1
483emf a b
484em s2
485if eq ring 0
486em tcore
487else
488if eq ring 1
489em trest
490else
491em ttail
492end
493end
494em d2
495emi px
496em d3
497emi py
498em s3
499emn sub 5 ring
500em s4
501emf a b
502em s5
503if eq ring 0
504slabel a b px py
505end
506end
507fn star s ulong e ulong k ulong x f64 y f64 to void
508ring = sring fld s e 2 e
509r = srad ring k
510sdraw s e ring long mul r x long mul r y
511end
512fn stars to void
513lim = get ibl 0
514x = 1.0f64
515y = 0.0f64
516k = ulong 0
517s = nextl 0 82
518while lt s lim bound 400
519e = eol s
520a = fld s e 1
521if not rterm a find a e 9
522star s e k x y
523t = neg add mul x GCP mul y GS
524y = sub mul x GS mul y GCP
525x = t
526k = add k 1
527end
528s = nextl add e 1 82
529if ge k 400
530s = lim
531end
532end
533end
534note cell j of the honeycomb, rows of 3, 4 and 3
535fn cellat j ulong lv ulong to void
536row = ulong 0
537col = j
538if ge j 3
539row = ulong 1
540col = sub j 3
541end
542if ge j 7
543row = ulong 2
544col = sub j 7
545end
546cx = add 484 mul col 116
547if eq row 1
548cx = add 426 mul col 116
549end
550em c1
551emn cx
552emb 32
553emn add 300 mul row 100
554em c2
555emn lv
556em c3
557end
558fn cell s ulong e ulong j ulong to void
559a = fld s e 1
560b = find a e 9
561sp = find a b 32
562o = fld s e 2
563n = pnum o find o e 9
564lv = div add n 9 10
565if gt lv 4
566lv = ulong 4
567end
568cellat j lv
569if rterm a sp
570em tretd
571else
572emf a sp
573end
574em c4
575if lt sp b
576if rterm add sp 1 b
577em tretd
578else
579emf add sp 1 b
580end
581end
582em c5
583emn n
584em c6
585d = fld s e 3
586emn pnum d find d e 9
587em c7
588end
589fn comb to void
590lim = get ibl 0
591j = ulong 0
592s = nextl 0 83
593while lt s lim bound 10
594e = eol s
595cell s e j
596j = add j 1
597s = nextl add e 1 83
598if ge j 10
599s = lim
600end
601end
602end
603fn merges to void
604lim = get ibl 0
605n = ulong 0
606s = nextl 0 77
607while lt s lim bound 12
608e = eol s
609a = fld s e 1
610b = find a e 9
611h = fld s e 2
612t = fld s e 3
613em m1
614emf a b
615em s8
616emf a b
617em m2
618emf h find h e 9
619em m3
620te = find t e 9
621if not rterm t te
622emfn t te
623end
624em m4
625n = add n 1
626s = nextl add e 1 77
627if ge n 12
628s = lim
629end
630end
631end
632fn css to void
633em q01
634em q02
635em q03
636em q04
637em q05
638em q06
639em q07
640em q08
641em q09
642em q10
643em q11
644em q12
645em q13
646em q14
647em q15
648em q16
649em q17
650em q18
651em q19
652em q20
653em q21
654em q22
655em q08b
656em q09b
657em q09c
658em q09d
659em q08c
660em q08d
661em q23
662em q24
663em q25
664em q26
665em q27
666em q27b
667em q28
668end
669fn page to void
670em h01
671em h02
672em h03
673em h04
674emk kasof
675em h04b
676em h05
677em h06
678em h06b
679em h07
680em h07b
681em h08
682emk kdel
683em h09
684emk kver
685em h10
686emk kapp
687em h11
688emk kgpu
689em h12
690em h18
691em h19
692merges
693em h20
694em h13
695em h14
696dust
697em f1
698orbit knum kwai 295
699em f2
700orbit knum kapp 380
701em h15
702stars
703em h16
704comb
705em h17
706em h21
707emn knum kwai
708em h22
709emn knum kapp
710em h23
711emn cntr
712em h24
713end