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.

Perceus: borrowing costs arith and effects nothing; LOUISE_NO_BORROW (issue #102)

LOUISE_NO_BORROW=1 turns borrow inference off (every parameter owned),
like LOUISE_NO_SPECIALISE, to measure it. Instruction counts on one
thread are identical with and without borrowing for arith, effects and
lists (within 100 of 230 million), and borrowing saves 0.05% on dict: the
+2%/+3% in ADR 0002's step table was noise (those runs were +-10%).

The one real cost is kept on purpose: a tail call into another recursive
group that borrows a variable the caller owns becomes a call, a yield
check and a drop. Across groups the chain is bounded, so the stack cannot
grow without bound; Perceus's module documentation now says so instead of
"never after a tail call". ADR 0002 note, with targets for the remaining
Perceus work. runtime-abi.md: `louise core` does not print `^v`.

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

olivier · il y a 1 mois · d385e5738ab6b686bb3ad902767fc0f0422ae2e0

Parents 59f13ba

4 fichiers modifiés, 37 ajouts, 2 suppressions