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: names resolve on the blocking pool; ports are range-checked (issue #222)

`net.connect` and `net.listen` resolved their host (`getaddrinfo`)
inside the extern, on a scheduler thread: a slow resolver stalled the
thread and every actor queued on it. And `port as u16` truncated the
port: 65616 was port 80, -1 port 65535.

- `net.resolve(host)` is a new `blocking` extern (`tl_net_resolve`): it
  runs on the pool while its actor waits, and returns the addresses as
  text.
- `connect` and `listen` are Louise functions now: they resolve, then
  try each address with the existing externs (an IP literal needs no
  lookup), and return the last error. `listen` used to take only the
  first address.
- `tl_net_connect` and `tl_net_listen` refuse a port outside 0 to 65535
  ("port out of range: 70000") instead of truncating it.

Recorded in RUNTIME_EXTERNS and `louise_rt.h`; the extern consistency
test passes; the ABI doc has a history entry (no ABI change). Test:
`names_resolve_off_the_scheduler_and_ports_are_checked` (cli.rs,
fixtures/net/resolve.lse).

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

olivier · il y a 1 mois · 0e337120141d222002092232193b12a2c811f909

Parents 2a4fe96

7 fichiers modifiés, 140 ajouts, 13 suppressions