Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them.
Page: /drakestapleton/aienux/blob/main/docs/design/tools/make-found.mjs
# aienux
Aienux, the AienOS kernel: boot, scheduling, IPC and capability boundaries. Pre-alpha; host, emulator and physical evidence are labelled separately.
Brought by drakestapleton
Sign in to star 0 stars 0 watching
About Files History Releases Proposed changes Issues For developers
branch `main` Branches Tags History
`aienux / docs / design / tools / make-found.mjs`
66 lines · 3671 bytes Raw Blame History
1 // make-found.mjs -- writes 05b-what-allen-found.html, the constellation of found parts, into the current directory.
2 // cd docs/design/screens && node ../tools/make-found.mjs
3 import { writeFileSync } from "node:fs";
4 // the parts, placed round Allen (960, 432) like the kernel's notes constellation; example values
5 const C = [960, 432];
6 const parts = [
7 ["Screen", "2560 by 1440, 144 a second", 600, 170],
8 ["Graphics", "RTX 4070, 12 GB", 960, 96],
9 ["Processor", "Ryzen 7 7800X3D, 8 cores", 1320, 170],
10 ["Memory", "32 GB", 1620, 430],
11 ["Storage", "1 TB fast, 2 TB", 1480, 668],
12 ["Network", "wired, connected", 1160, 760],
13 ["Sound", "speakers and a microphone", 760, 760],
14 ["Keyboard and mouse", "working", 470, 640],
15 ["Nearby", "2 AienOS computers, a printer", 300, 430],
16 ];
17 const threads = parts.map(([, , x, y0]) => {
18 const y = y0 < C[1] - 100 ? y0 + 66 : y0; // parts above Allen: meet the thread under their words
19 const dx = x - C[0], dy = y - C[1], d = Math.hypot(dx, dy), r0 = 150; // start outside Allen's light
20 return `