tobogganSe connecter

louise

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

Std: Array (std/array) on both backends (issue #47)

std/array declares Array<a> with from_list, to_list, length, get (an
Option), set, push, slice, with_capacity, and map and fold written in
tilcayo over an unchecked read. Eq, Ord, Show, Debug and Hash make types
holding arrays derivable. The interpreter keeps an Rc<Vec<Val>> updated
with Rc::make_mut, and refuses to send arrays holding references, as the
runtime does.

tests/run/array.til runs on both backends, sending large and small
arrays; array_panic.til checks an out-of-range set. tests/bench/arrays.til
pushes and sets a million elements; a CLI test runs it natively under a
deadline, which only in-place updates meet.

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

olivier · il y a 1 mois · 5c70a1819dfdea77e30fdca726629ddb1ae63edf

Parents 994ddaf

13 fichiers modifiés, 381 ajouts, 2 suppressions