Artifact 15b4a00c1f7e7aacc1ed839650b2778ae5480c0872b80971e1583bfeafb161dc:
- File typeparse/noyau/ORDRE.txt — part of check-in [28e84e2d0c] at 2026-10-25 12:58:09 on branch tip-764_tcl90 — Tuple assignment is now compiled into a single instruction: this is version 16e. It runs twice as fast, while yielding the same results as before. The change: an assignment such as `(a, (b, c), d) = v` now uses the `tupleAssign` instruction. Previously, this involved a call to `::tcl::unsupported::content`, followed by a series of instructions for each name that wrote to the variable by looking it up via its name. Local variables: the compiler now records the position of each name within the local variable array. Consequently, the instruction writes to these variables directly, without requiring a name-based lookup. Other names: qualified names, or assignments occurring outside of a procedure, are still handled by name, just as before. Unchanged behavior: the deep content of a tuple, the use of an empty string (`""`) for missing elements, the order of assignments, traces, links, contracts, and error messages all remain the same. Details: Additional performance gain: nested lists without annotations are no longer copied during each assignment. Memory leak fixed: Valgrind detected a leak when an element was missing at an intermediate level—for example, in the case `(a, (b, c)) = {1}`. This has been resolved. Measurements (in nanoseconds per assignment): | Assignment | Before | After | |:----- | ---------:| --------:| |(a, (b, c), d) = $v| 820 | 330| | (x, y) = $p (a point) |340 | 170 | Verifications: All 65 tests pass, in both standard and compact formats. The new test, `t87`, covers the scenarios mentioned above. The output is identical to version 16b, with the exception of three tests that count the number of generated instructions (`t82`, `t83`, and `t87`). A full `make test` run shows the same 61 failures as the reference version. Following the fix for the memory leak, Valgrind reports no new issues. Regarding installation: this version adds a kernel patch, `expr-tuple.patch`. I have verified, using an up-to-date source tree, that `maj.sh` correctly identifies the 17 patches already applied and then applies the new one. Since it adds an instruction to the bytecode, a full recompilation is performed; upon completion, `maj.sh` should display "version installed: v16e". The documentation and the schedule have been updated. (user: Florentis, size: 1232) [annotate] [blame] [check-ins using]
# Patchs C à appliquer sur l'arbre, dans cet ordre (un par ligne, # = commentaire). # maj.sh détecte seul ceux qui sont déjà appliqués. Les nouveaux patchs s'ajoutent à la fin. # C patches to apply to the tree, in this order. maj.sh detects the ones already applied. types-binaires-linkdepth.patch types-binaires-referentiel.patch types-binaires-taille-dynamique.patch types-binaires-annotations-locales.patch types-binaires-type-binary-annote.patch types-binaires-nom-type-binary.patch types-binaires-set-annotation-locale.patch types-binaires-notes.patch types-binaires-notes-typeget.patch types-binaires-cast-constructeur.patch types-binaires-convert-famille.patch types-binaires-codec-c.patch types-binaires-codec-c-decode.patch types-chemins-construction.patch types-chemins-depliage.patch index-chemins-noyau.patch types-chemins-atomes.patch types-produit-etiquettes.patch contrat-par-nom.patch elements-atomiques.patch cast-collection.patch eias-string-is.patch chemins-modification.patch set-nom-substitue.patch lset-reference.patch tip759-memoire.patch compact-conversions.patch procedures-typees.patch boucles-typees.patch expr-nombres-types.patch donnees-interp.patch expr-declaration-champs.patch expr-tuple.patch