tobogganSe connecter

louise

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

Send: audit tl_spawn, document the static/dynamic split (#335)

Issue #335's remainder, minus serializability (stays in #307).

- tl_spawn audit: intended, not a hole. Compiled programs never call
  it (they spawn through std/process's op_spawn*, which hands every
  body to send::transfer); it is the M0 spike's own entry point, and
  the spike only spawns env-less closures (tl_closure_alloc(ctx, code,
  0)), so there is nothing a walk could reject. Intent comment in
  sched.rs; outcome recorded in docs/runtime-abi.md.
- docs/runtime-abi.md: the static/dynamic sendability split beside the
  move/share/copy walk — the compiler decides Send structurally and a
  bad send does not compile; check_sendable is the backstop for what
  types cannot see (@extern bindings), and its failure is a panic in
  the sending actor (handover), never a process abort.
- docs/tutorial.md: a Send section in the actor chapter (structural,
  compiler-decided, zero-cost; the three negative cases).
- docs/reference/language.md: which check fires when.
- tests/ui: the NotSend diagnostic's missing cases — send a user type
  holding a pinned resource; spawn a closure capturing a pinned
  resource; send a closure capturing one. (Send a Ref, send a pinned
  resource, and spawn a closure capturing a Ref were already covered
  by send.lse and send_closures.lse.)

Checks: fmt, clippy -D warnings, cargo test -p louise, the UI tests,
and scripts/same-output.sh (no differences, 122 programs) all green.

olivier · il y a 3 sem. · 66fa7797aeebfcdf879eb28ae61c84992eba8a58

Parents 13982b1

6 fichiers modifiés, 74 ajouts, 1 suppressions