tobogganSe connecter

louise

The Louise language: compiler, runtime, std, tooling

Clone avec HTTPS, un jeton personnel en mot de passe, ou avec SSH, une clé ajoutée dans vos paramètres.

Runtime: TL_TAG_DEC, a boxed 128-bit decimal; ABI 11 (issue #340)

A Dec is an i128 counting 10^-18 units in a TL_TAG_DEC block (0xFF0E, a
leaf kind: drop, send and copy need nothing new). The raw area is the
i128 as two u64 limbs: a block's raw area is 8-byte aligned and an i128
wants 16; the limbs keep the store defined (the fast runtime's
whole-program LTO turned a direct store into a silent exit 101; the
checked runtime happened to work). The kernels are shared with the
interpreter in louise_rt_prims::dec (its first dependency past the
optional ring: num-bigint, already linked into every native program for
Int): every inexact operation rounds half-even, operators signal
overflow as None (the backends panic), and the hash is the big-integer
scheme over the two limbs, pinned by tests. The interpreter gains
Val::Dec(i128) and the tl_dec_* externs; the std module and the externs
table land next.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>

olivier · il y a 3 sem. · 96c7400e3d585106653054c726d1d94ac6be3972

Parents 605cc9c

13 fichiers modifiés, 765 ajouts, 7 suppressions