refactor(stdlib): de-abbreviate namespaces (Mem/Sys/Net/Collide)

Expand the abbreviated public namespaces to full words, part of the
language-wide de-abbreviation pass:
  Mem -> Memory, Sys -> System, Net -> Network, Collide -> Collision

Math stays (universally accepted, like int/bool). Renames the dispatch
strings, LSP signatures, docs (dirs, files, frontmatter), and the
inventory manifest; behavior is byte-identical (the bare rt_ targets are
unchanged). Reseeded; C-free bootstrap fixpoint holds; all suites green.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Orkun ÇAKILKAYA 2026-08-30 01:30:47 +03:00
parent 6e6467b515
commit 2f19c8d8e2
50 changed files with 360 additions and 360 deletions

View file

@ -9,14 +9,14 @@ program T {
print(Math.floor(Ease.bounce(0.5) * 1000.0)) # 765
print(Math.floor(Ease.back(0.5) * 1000.0)) # -88
print(Math.floor(Ease.back(1.0) * 1000.0)) # 1000
print(Collide.rects(0, 0, 10, 10, 5, 5, 10, 10)) # 1
print(Collide.rects(0, 0, 10, 10, 20, 20, 5, 5)) # 0
print(Collide.point_rect(5, 5, 0, 0, 10, 10)) # 1
print(Collide.point_rect(15, 5, 0, 0, 10, 10)) # 0
print(Collide.point_rect(10, 5, 0, 0, 10, 10)) # 0
print(Collide.circles(0, 0, 5, 6, 0, 5)) # 1
print(Collide.circles(0, 0, 5, 20, 0, 5)) # 0
print(Collide.rect_circle(0, 0, 10, 10, 15, 5, 6)) # 1
print(Collide.rect_circle(0, 0, 10, 10, 20, 5, 6)) # 0
print(Collision.rects(0, 0, 10, 10, 5, 5, 10, 10)) # 1
print(Collision.rects(0, 0, 10, 10, 20, 20, 5, 5)) # 0
print(Collision.point_rect(5, 5, 0, 0, 10, 10)) # 1
print(Collision.point_rect(15, 5, 0, 0, 10, 10)) # 0
print(Collision.point_rect(10, 5, 0, 0, 10, 10)) # 0
print(Collision.circles(0, 0, 5, 6, 0, 5)) # 1
print(Collision.circles(0, 0, 5, 20, 0, 5)) # 0
print(Collision.rect_circle(0, 0, 10, 10, 15, 5, 6)) # 1
print(Collision.rect_circle(0, 0, 10, 10, 20, 5, 6)) # 0
}
}

View file

@ -1,19 +1,19 @@
program T {
entry {
let b = Mem.bytes(8)
Mem.poke(b, 0, 65)
Mem.poke(b, 1, 66)
print(Mem.peek(b, 0)) # 65
print(Mem.peek(b, 1)) # 66
Mem.fill(b, 0, 8)
print(Mem.peek(b, 0)) # 0
let c = Mem.bytes(8)
Mem.poke(b, 3, 99)
Mem.copy(c, b, 8)
print(Mem.peek(c, 3)) # 99
let w = Mem.words(4)
let b = Memory.bytes(8)
Memory.poke(b, 0, 65)
Memory.poke(b, 1, 66)
print(Memory.peek(b, 0)) # 65
print(Memory.peek(b, 1)) # 66
Memory.fill(b, 0, 8)
print(Memory.peek(b, 0)) # 0
let c = Memory.bytes(8)
Memory.poke(b, 3, 99)
Memory.copy(c, b, 8)
print(Memory.peek(c, 3)) # 99
let w = Memory.words(4)
w[0] = 12345
print(w[0]) # 12345
print(Sys.arg_count()) # 1
print(System.arg_count()) # 1
}
}