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: shallower nesting of `resume`; multi-shot operations by mask (issue #49)

- A clause that calls `resume` and then works on its result nests
  `resume_code`, `drive` and `call_clause` once per operation. Each now
  ends with a tail call: `resume` releases its closure first (the
  running handler keeps the frame alive), and `call_clause` passes the
  arguments in registers and `ctx->xargs` instead of a vector. The
  nesting costs 208 bytes of stack per level instead of 272 on main
  (`effects`: -15%, its generator part -32%).
- `tl_handle_multi` takes a mask of the `multi ctl` operations, and they
  are performed with `tl_perform_ctl`: requests keep their size, and the
  one-shot path its frames.
- The running fiber's yielder and frame are one pointer per actor.

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

olivier · il y a 1 mois · 6686cbf2d39ed6e0288fdc6004927c94c7b30a7e

Parents 2f88244

6 fichiers modifiés, 142 ajouts, 137 suppressions