tobogganSe connecter

packages

The Louise packages, each released on its own

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

Effects: clock and random, handled by the runtime; std/time, std/random, std/prng; ADR 0036 (issue #142)

The time and random numbers are now read through two effects, so code
says it uses them and a test can handle them:
- std/time: `effect clock { now_unix_ns, monotonic_ns }`, Timestamp,
  Duration, the UTC calendar, RFC 3339 format and parse,
  `with_fixed_clock`.
- std/random: `effect random { bytes }`, and in Louise `int` (rejection
  sampling), `range`, `float`, `shuffle`, `choice`, `token`, and
  `with_seed` over std/prng (SplitMix64 over U64; not for secrets).

The runtime handles `proc`, `clock` and `random` around `main`, tests
and every actor. Actor rows become `<proc, clock, random, io, ffi>`.
- Lowering records each function's root capability kinds
  (`Program::root_caps`) and the actor body layout, derived from
  `std/process.spawn`'s parameter type (`Program::actor_caps`).
- `runnable` compares built-in effects by definition, not by name.
- Runtime ABI 6: `tl_root_cap(ctx, kind, ops)`, `tl_main_program(entry,
  caps, n)`; clock and random capabilities are immortal (rc 0) and
  built once; only their clauses read the OS. `tl_random_int` and
  `tl_random_token` are removed.
- The interpreter answers clock and random at its root, without a
  scheduling point.

argon2's `hash_password` performs `random`; the demo's tests seed it.
The E0505 note names the right std module for proc, clock and random.

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

olivier · il y a 1 mois · 6b016d5457426e9677282370f88c7ad54f06e181

Parents fed1be2

2 fichiers modifiés, 7 ajouts, 5 suppressions