os: processors (OS slice 3, epic) #127
Labels
No labels
loop
queue/failed
queue/queued
ready
status/parked
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
torbscript/language#127
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Goal
Slice 3 of
docs/design/OS.mdsection 10: the processors ofstd/os(Processor,ProcessorDescription,ProcessorTimes,ProcessorUsage,Frequency) on every supported system, as section 4 (Frequency), 5.2 and 7 specify.Source
Epic: why, and the steps
The slice spans five runtime files, three TorbScript layers and the
x86/decoders: more than one PR of one or two commits. Per the definition of ready it is an epic; this issue carries noreadylabel and each step is filed when it starts next.Frequency,logicalCount,physicalCount,times,timesOfEach,usage(#488)x86/natives and pure decoders (vendor, brand, topology, caches, features), tested with captured register valuesProcessorDescriptionandProcessor.describeon x86-64 (Windows, Linux, macOS), composed from the 2a decoders and the system counts;packagesper system; non-x86 answersUnsupporteduntil 2cgetauxval,/proc/cpuinfo,/sys) and macOS (hw.optional.arm.*,hw.*cachesize), replacing theUnsupportedarms thereIsProcessorFeaturePresent, aprocessorTopologynative for caches), replacing the lastUnsupportedarm ofdescribefrequenciesandbaseFrequency/maximumFrequencyofdescribe(sysfscpufreq,CallNtPowerInformation,hw.cpufrequency/hw.perflevel*), then mark OS.md slice 3 done with a "How slice 3 landed" noteAcceptance criteria (of the epic)
docs/standard-library/os.mddocuments the whole processor APISeed impact
None expected (new std names and natives only; the compiler imports none of them). Each step says so again and falls back to the two-commit rule if CI shows otherwise.
Dependencies
#126 (OS slice 2) is closed and landed. Slices 4 to 7 (#128 to #131) do not wait on this one except #131 (FreeBSD), which replaces the
Unsupportedarms.Moved from the planning lists of the docs; the design record stays the specification.
[loop:torbscript] intake: in scope (author orion, label loop), source OS.md slice 3, not a duplicate. Depends on #126. next: waiting (dependency #126) until 2026-10-10T04:00:00Z
[loop:torbscript] claim refine by session:loop-torbscript-20261026 until 2026-10-26T02:30:00Z
os: processors (OS slice 3)to os: processors (OS slice 3, epic)[loop:torbscript] decided by the loop: split slice 3 into an epic of three steps instead of one issue. Why: five runtime files (
x86,windows,linux,macos,bsd), three TorbScript layers and the purex86/decoders exceed one PR of one or two commits. Numbers: step 1 (Frequency, counts, times, usage) touches ~3 runtime files; step 2 (describe, cpuid decoders, features) and step 3 (frequencies, done mark) follow when step 1 lands. Only step 1 is filed now (#488,ready), as the definition of ready requires; this issue stays the epic withoutready. Seed impact: none expected. No duplicate among open issues (keyword search: processor, cpu, Frequency, cpuid).[loop:torbscript] refine: #126 is closed and landed; no duplicates; issue rewritten as the epic (goal, steps, acceptance, seed impact); step 1 filed as #488 with testable criteria and set
ready. next: waiting (epic; steps filed just in time, step 2 when #488 lands). ~70k tokens.std/networkaddresses and network interfaces (OS slice 5) #129[loop:torbscript] claim refine (step 1 #488 landed, cut step 2) by session:loop-torbscript-20261028 until 2026-10-28T07:15Z
[loop:torbscript] refine: verified step 1 (#488) on main (
f12a2a4d, processor.trb with Windows/Linux/macOS halves, processor.test.trb) and ticked it; step 2 exceeds one PR (natives, decoders, three per-system halves, Arm64 sources), so only sub-step 2a is filed as #538 (x86 natives and pure decoders with captured-register tests, labels loop+ready, no seed impact expected); 2b (describe wiring, per-system halves, Arm64) follows when 2a lands; no duplicates found. Claim released. next: waiting (epic; step 2a is #538, implement). ~90k tokens.[loop:torbscript] claim refine (step 2a #538 landed on main; cut the next step of the epic) by session:loop-torbscript-20261028 until 2026-10-28T15:30Z
[loop:torbscript] refine: verified step 2a (#538) on main (
acf8510:x86.c,x86/native.trb,x86/processor.trbwithCpuidDump,x86.test.trb) and ticked it; cut step 2b as #543 (ProcessorDescriptionandProcessor.describeon x86-64 on Windows, Linux and macOS withpackagesper system, two commits, no seed impact expected, labels loop+ready, no duplicate among open issues); Arm64 vendor, model, caches and features stay in the checklist as step 2c, filed when #543 lands; epic checklist updated. Claim released. next: waiting (epic waits on its steps, #543 next). ~120k tokens.[loop:torbscript] re-sweep: ticked #543 in the checklist, because this step is closed and landed on main; the checklist now matches the state of its children.
[loop:torbscript] claim refine by session:loop-torbscript-20261114-1218 until 2026-11-14T14:18:00Z
[loop:torbscript] refine: verified step 2b (#543) landed on main (PR #545 merged as
28ac17d5;Processor.describeanddescribeX64instd/os/src/processor.trb, OS.md section 7 "As built (step 2b)"), checklist already ticked. Cut step 2c as #786: Arm64describeon Linux and macOS only (getauxval,/proc/cpuinfo,/syscaches,hw.optional.arm.*,hw.*cachesize), two commits, no seed impact expected, labels loop+ready, no open duplicate (searched arm64, processor). Arm64 Windows splits off as step 2d (needs a newprocessorTopologynative, a third system source and uncompiled Windows C, which would exceed one PR); epic checklist updated. Step 3 (frequencies) follows after 2d. ~60k tokens.next: waiting (epic waits on its steps, #786 implement)
[loop:torbscript] release refine by session:loop-torbscript-20261114-1218
[loop:torbscript] sweep: step 2c is #786 with PR #789 open (CI pending, argus review requested); step 2d is filed when 2c lands. next: waiting (PR #789 for #786)
[loop:torbscript] park: nothing of this epic is startable by the loop until PR #789 (step 2c, #786) merges; step 2d is filed after that and step 3 needs 2c plus 2d. Parked instead of deferring again (starved 3 ticks). Unpark with the merge of #789.