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.

Codegen: preemption on recursive-group entries (ADR 0046 piece 2, issue #191)

The reduction counter now decrements only at the entries of functions
that can reach themselves — alone (a self tail call is the loop) or
through a recursive group. Anything else runs a bounded amount of
straight-line code and returns to a loop that counts. The cyclicity
analysis is the strongly connected components of the direct-call graph,
shared with Perceus's borrow inference (its Tarjan moved to
louise_core::callgraph, with the self-loop case covered: a component's
root has itself as group id). LOUISE_NO_GROUP_PREEMPT restores a point
at every entry.

Yield checks after calls that may unwind are unchanged: that is the
never-unwinds analysis, which piece 2 does not touch.

Instructions (LOUISE_THREADS=1, deterministic): effects -2.3%, idle
-1.5%, the rest within ±0.8% (fib/arith ±0.0% — their own entries are
their loops, as the assessment predicted). Preemption latency: the new
tests/run/ticker.lse (a spinning actor is killable at its loop's next
entry), process.lse's busy actor, the loom models and the timers
benchmark are unchanged.

ADR 0046 Revision 1 records piece 1's measurement (PR #231: ±0.00%
everywhere, clang's dead-argument elimination already removed the
padding; closed unmerged) and this piece's numbers.

olivier · il y a 1 mois · a0f9e468f23b419e9ebfda7e9e4fddb6eccae72f

Parents 2e9fbad

11 fichiers modifiés, 386 ajouts, 88 suppressions