ludic/selfhost/tests
Orkuncakilkaya 121053e179
Some checks failed
docs / build-and-deploy (push) Has been cancelled
feat(stdlib): 2D Vector type + Vector.* namespace (issue #25)
Implement the Vec.* half of #25 under the proper (de-abbreviated) name
Vector, unblocking it with a self-contained value type instead of waiting
on the full #1 type system.

A Vector is two Q16.16 fixed components (x, y) packed into one i64 — a true
by-value type that lives in a register and never allocates (reuses the new
`long`/i64 support; llty maps `Vector` to i64). Fifteen operations, all
deterministic fixed-point reusing fx_mul/fx_div/fx_lerp and the @fn_fx_*
prelude: make/zero/x/y, add/sub/scale/dot, length/distance/normalize/lerp,
rotate/angle/from_angle.

New selfhost/emit_vector.ludic (wired into emit_ns_call + the frag list),
the `Vector` primitive type in llty and the grammars/LSP/JetBrains tokens,
docs (type-vector + 15 Vector.* pages + section), and a registered test.
Reseeded; C-free fixpoint holds; all suites green (45/25/29); site + check.py OK.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-08-30 02:09:38 +03:00
..
color.ludic feat(stdlib): namespaced standard library (issue #2) 2026-08-30 00:26:19 +03:00
control.ludic refactor(lang): rename the fn keyword to function 2026-08-30 01:43:22 +03:00
easecollide.ludic refactor(stdlib): de-abbreviate namespaces (Mem/Sys/Net/Collide) 2026-08-30 01:30:47 +03:00
fixed.ludic refactor(lang): rename builtins flr->floor and fx->fixed 2026-08-30 02:01:56 +03:00
hash.ludic feat(lang,stdlib): 64-bit long type + 64-bit Hash variants (issue #17) 2026-08-30 01:01:06 +03:00
long.ludic refactor(lang): rename the str type (and stringify builtin) to string 2026-08-30 01:51:11 +03:00
match_bits.ludic refactor(lang): rename the fn keyword to function 2026-08-30 01:43:22 +03:00
math.ludic feat(stdlib): namespaced standard library (issue #2) 2026-08-30 00:26:19 +03:00
math2.ludic feat(stdlib): namespaced standard library (issue #2) 2026-08-30 00:26:19 +03:00
math3.ludic feat(stdlib): namespaced standard library (issue #2) 2026-08-30 00:26:19 +03:00
memsys.ludic refactor(stdlib): de-abbreviate namespaces (Mem/Sys/Net/Collide) 2026-08-30 01:30:47 +03:00
slices.ludic Phase 7e: polymorphic print(x) + str(x) (retire print_int/print_str) 2026-08-28 01:22:38 +03:00
structs.ludic refactor(lang): rename the fn keyword to function 2026-08-30 01:43:22 +03:00
textlist.ludic feat(stdlib): namespaced standard library (issue #2) 2026-08-30 00:26:19 +03:00
textlist2.ludic feat(stdlib): namespaced standard library (issue #2) 2026-08-30 00:26:19 +03:00
textsplit.ludic feat(stdlib): namespaced standard library (issue #2) 2026-08-30 00:26:19 +03:00
transcend.ludic feat(stdlib): Math.exp/log/pow + Ease.elastic transcendentals (issue #25) 2026-08-30 01:19:44 +03:00
vector.ludic feat(stdlib): 2D Vector type + Vector.* namespace (issue #25) 2026-08-30 02:09:38 +03:00