ludic/selfhost
Orkuncakilkaya 2002e977d9
Some checks are pending
docs / build-and-deploy (push) Waiting to run
feat(lang,stdlib): 64-bit long type + 64-bit Hash variants (issue #17)
Add `long`, a 64-bit signed integer primitive (i64), threaded through
codegen: llty; int<->long coercion (coerce_code/to_long) at let/assign/
return/call-args; i64 arithmetic + comparison promotion in emit_bin;
unary negate/~; print via %lld and str()/interpolation via @fn_long_str.
Editor vocabulary (syntax header, TextMate grammar, formatter, LSP)
synced; check-vocabulary green. Numeric literals stay i32 — build large
values by widening (documented on the type page).

Complete the Hash.* namespace (issue #17) with both 32- and 64-bit
algorithms: Hash.of/fnv1a/crc32/mix/combine (32-bit) and
Hash.of64/fnv1a_64/mix64 (64-bit, returning long). Deterministic and
C-free; CRC-32 (poly 0xEDB88320) and FNV vectors verified against
reference implementations.

Tests: selfhost/tests/{hash,long}.ludic. Docs: docs/language/hash/*,
type-long.md. Seed reseeded; C-free bootstrap fixpoint holds; 23
selfhost + 45 regression + 29 tooling checks green.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-08-30 01:01:06 +03:00
..
golden feat(stdlib): namespaced standard library (issue #2) 2026-08-30 00:26:19 +03:00
tests feat(lang,stdlib): 64-bit long type + 64-bit Hash variants (issue #17) 2026-08-30 01:01:06 +03:00
ast.ludic Networking N2–N6, and a fully C-free toolchain 2026-08-29 15:08:23 +03:00
buf.ludic Phase 8b: modern names for the raw-memory and OS/IO primitives 2026-08-28 02:55:24 +03:00
emit_addr.ludic Phase 8a: finish typed indexing — fixeds/ptrs buffers (retire peekf/pokef/peekp/pokep/str_len) 2026-08-28 02:49:40 +03:00
emit_collide.ludic feat(stdlib): namespaced standard library (issue #2) 2026-08-30 00:26:19 +03:00
emit_color.ludic Language: named colors, namespaced Screen/Input/Random/Map API, named args 2026-08-29 16:05:55 +03:00
emit_colorfn.ludic feat(stdlib): namespaced standard library (issue #2) 2026-08-30 00:26:19 +03:00
emit_core.ludic feat(lang,stdlib): 64-bit long type + 64-bit Hash variants (issue #17) 2026-08-30 01:01:06 +03:00
emit_decl.ludic feat(lang,stdlib): 64-bit long type + 64-bit Hash variants (issue #17) 2026-08-30 01:01:06 +03:00
emit_ease.ludic feat(stdlib): namespaced standard library (issue #2) 2026-08-30 00:26:19 +03:00
emit_ecs.ludic feat(stdlib): namespaced standard library (issue #2) 2026-08-30 00:26:19 +03:00
emit_expr.ludic feat(lang,stdlib): 64-bit long type + 64-bit Hash variants (issue #17) 2026-08-30 01:01:06 +03:00
emit_game.ludic feat(stdlib): namespaced standard library (issue #2) 2026-08-30 00:26:19 +03:00
emit_hash.ludic feat(lang,stdlib): 64-bit long type + 64-bit Hash variants (issue #17) 2026-08-30 01:01:06 +03:00
emit_head.ludic feat(lang,stdlib): 64-bit long type + 64-bit Hash variants (issue #17) 2026-08-30 01:01:06 +03:00
emit_intrin.ludic Phase 8b: modern names for the raw-memory and OS/IO primitives 2026-08-28 02:55:24 +03:00
emit_intrin2.ludic Phase 8b: modern names for the raw-memory and OS/IO primitives 2026-08-28 02:55:24 +03:00
emit_list.ludic feat(stdlib): namespaced standard library (issue #2) 2026-08-30 00:26:19 +03:00
emit_machine.ludic Language: named colors, namespaced Screen/Input/Random/Map API, named args 2026-08-29 16:05:55 +03:00
emit_math.ludic feat(stdlib): namespaced standard library (issue #2) 2026-08-30 00:26:19 +03:00
emit_mem.ludic feat(stdlib): namespaced standard library (issue #2) 2026-08-30 00:26:19 +03:00
emit_net.ludic Networking N2–N6, and a fully C-free toolchain 2026-08-29 15:08:23 +03:00
emit_new.ludic Phase 7g: the compiler builds its IR with interpolation, not + 2026-08-28 01:30:37 +03:00
emit_query.ludic Phase 7g: the compiler builds its IR with interpolation, not + 2026-08-28 01:30:37 +03:00
emit_save.ludic Networking N2–N6, and a fully C-free toolchain 2026-08-29 15:08:23 +03:00
emit_spawn.ludic Networking N2–N6, and a fully C-free toolchain 2026-08-29 15:08:23 +03:00
emit_stmt.ludic feat(lang,stdlib): 64-bit long type + 64-bit Hash variants (issue #17) 2026-08-30 01:01:06 +03:00
emit_text.ludic feat(stdlib): namespaced standard library (issue #2) 2026-08-30 00:26:19 +03:00
emit_time.ludic feat(stdlib): namespaced standard library (issue #2) 2026-08-30 00:26:19 +03:00
emit_ui.ludic Phase 7i: byte indexing p[i] / p[i] = v (retire peek8/poke8) 2026-08-28 02:01:59 +03:00
io.ludic Phase 7k: bytes(n) / words(n) allocators (retire mem_alloc) 2026-08-28 02:26:15 +03:00
lex.ludic feat(stdlib): namespaced standard library (issue #2) 2026-08-30 00:26:19 +03:00
ludicc.seed.ll feat(lang,stdlib): 64-bit long type + 64-bit Hash variants (issue #17) 2026-08-30 01:01:06 +03:00
main.ludic Phase 8b: modern names for the raw-memory and OS/IO primitives 2026-08-28 02:55:24 +03:00
parse.ludic Language: named colors, namespaced Screen/Input/Random/Map API, named args 2026-08-29 16:05:55 +03:00
parse_game.ludic Networking N2–N6, and a fully C-free toolchain 2026-08-29 15:08:23 +03:00
str.ludic Phase 7k: bytes(n) / words(n) allocators (retire mem_alloc) 2026-08-28 02:26:15 +03:00