Overview
| Comment: | typeparse v17o: block-wise type map, path windows, views on object lists - type map: evaluated in blocks of 256 elements when the expression computes in doubles only (columns gathered, each operation applied to the whole block); flagged elements are evaluated again one by one, so results stay identical to expr. TCL_TYPE_NOBLOCK=1 to compare. - Windows $L((s0,s1,...):end:step): one column per start, same step, complete windows only, for reading and writing (set L((0,1)::2) $X $Y). - Ranges of a typed list of objects are views (shared base, start, step, count), without touching the elements; type map reads them in their base. - Typed columns are written in place (objects, cells, num), without checking the elements again. - set {T}x $v with v already of type T keeps the value as is (instead of unfolding and checking it again); fast creation of list.num. - $L(a:b:c) outside procedures uses the same direct reads as compiled code. - Fix: a fully substituted index stays a single name in the fast paths too ($L($s) with s = 1:3 looks for the element 1:3). - Tests t125, t126. New example exemples/tcllib_geometry/COMPARAISON.md: the geometry chain in ten variants, from plain Tcl to fully typed C. No core patch. |
|---|---|
| Timelines: | family | ancestors | descendants | both | tip-764_tcl90 |
| Files: | files | file ages | folders |
| SHA3-256: |
83801ad6add6ffff2a657bcc6b5c128f |
| User & Date: | Florentis on 2026-11-24 09:32:02.619 |
| Other Links: | branch diff | manifest | tags |
Context
|
2026-11-24
| ||
| 13:42 | type map accept typed Signatures, not only lists check-in: e9cb485ba7 user: Florentis tags: tip-764_tcl90 | |
| 09:32 | typeparse v17o: block-wise type map, path windows, views on object lists - type map: evaluated in b... check-in: 83801ad6ad user: Florentis tags: tip-764_tcl90 | |
| 05:09 | optimisation of speed in foreach. Add some capabilities to introduce specialisation with external li... check-in: ee1374fd45 user: Florentis tags: tip-764_tcl90 | |
Changes
Modified generic/tclAnnotObj.c
from [296f748028]
to [203f103067].
[diff]
Modified generic/tclExecute.c
from [abd30cfc07]
to [8b4cca2da4].
[diff]
Modified generic/tclTypePath.c
from [6437dc0b22]
to [fc38b3f93b].
[diff]
Modified generic/tclTypedVar.c
from [9da973207e]
to [fcd6ebd42b].
[diff]
Modified generic/tclTypes.c
from [9283971cd0]
to [435f37f83e].
[diff]
Modified generic/tclTypes.h
from [c28515aa09]
to [29c2eeb075].
[diff]
Modified typeparse/MANUEL.md
from [f7ebfefbae]
to [9945783685].
[diff]
Modified typeparse/REPRISE.md
from [835b31e71c]
to [527f623ac7].
[diff]
Modified typeparse/VERSION
from [183e32a146]
to [896097ea5f].
[diff]
Modified typeparse/doc/764.md
from [4969cda403]
to [17738db1a8].
[diff]
Modified typeparse/doc/CONCEPTION-ops.md
from [c5ba0a8e11]
to [6c34c8aefd].
[diff]
Added typeparse/exemples/tcllib_geometry/COMPARAISON.md version [64030df1b5].
Modified typeparse/exemples/tcllib_geometry/LISEZMOI.md
from [3bd6bf1661]
to [0267ed8db3].
[diff]
Added typeparse/exemples/tcllib_geometry/comparaison.tcl version [9fc7b22797].
Added typeparse/exemples/tcllib_geometry/e2e.tcl version [faea35a15b].
Added typeparse/exemples/tcllib_geometry/geomcells.c version [63dd009631].
Modified typeparse/exemples/tcllib_geometry/geometry.tcl
from [8e89a7c0d1]
to [eb97a08e09].
[diff]
Added typeparse/exemples/tcllib_geometry/vectorise.tcl version [e39f11155e].
Modified typeparse/maj.sh
from [35e02923b0]
to [bf5c41d7ad].
[diff]
Modified typeparse/noyau/ORDRE.txt
from [35e61ec935]
to [f688f853a3].
[diff]
Added typeparse/noyau/lappend-liste-typee.patch version [6e31122047].
Modified typeparse/tclAnnotObj.c
from [1f03992b10]
to [203f103067].
[diff]
Modified typeparse/tclTypePath.c
from [3370596b91]
to [fc38b3f93b].
[diff]
Modified typeparse/tclTypedVar.c
from [2a4aa24598]
to [fcd6ebd42b].
[diff]
Modified typeparse/tclTypes.c
from [ff44920add]
to [435f37f83e].
[diff]
Modified typeparse/tclTypes.h
from [eb5c2da319]
to [29c2eeb075].
[diff]
Added typeparse/tests_tclsh/t121_type_map.out version [dc06f70b25].
Added typeparse/tests_tclsh/t121_type_map.tcl version [e12317ec3f].
Added typeparse/tests_tclsh/t122_formes.out version [6869a0ce20].
Added typeparse/tests_tclsh/t122_formes.tcl version [1652550086].
Added typeparse/tests_tclsh/t123_vues.out version [46dcc39f77].
Added typeparse/tests_tclsh/t123_vues.tcl version [018f1a1837].
Added typeparse/tests_tclsh/t124_lappend_type.out version [156c91fb65].
Added typeparse/tests_tclsh/t124_lappend_type.tcl version [dfacd3e7bd].
Added typeparse/tests_tclsh/t125_type_map_blocs.out version [bd680072bd].
Added typeparse/tests_tclsh/t125_type_map_blocs.tcl version [94f23a017f].
Added typeparse/tests_tclsh/t126_fenetres_vues.out version [02fa3dbc2b].
Added typeparse/tests_tclsh/t126_fenetres_vues.tcl version [23a5801e62].
Modified typeparse/tests_tclsh/t28_type_deref.tcl.out
from [4a13a826de]
to [ab906f4321].
[diff]
Modified typeparse/tests_tclsh/t93_piste_b.out
from [b90d46ecac]
to [5270605c88].
[diff]