Skip to content
Tcl Source Code Check-in [f0108ca9bf]
Login

Check-in [f0108ca9bf]

Overview
Comment:The typed Tcl product remains about 4 times slower than the raw version, because it constructs its indices ($A($i.0)) and its result matrix with every call. The two accelerated read operations (v16i) For a matrix within a batch—obtained via `foreach` or `lindex`—$M(i.j) is now read directly from the cell. Calculating 10,000 determinants in Tcl now takes 21 ms instead of 176 ms, making it faster than raw Tcl. For a typed list without `{-compact}` (e.g., `list.list(3).double`), $M(i.j) traverses the lists directly. The time for a single determinant calculation drops from 16.7 µs to 1.8 µs. The outputs are identical to those from v16b, which lacked this shortcut. Verifications All 68 tests pass—both with and without the compact form—and every file yields the same output in both cases. Valgrind reports no issues, aside from the standard warning regarding `executable_pe.tcl`. `make test` continues to show the same 61 failures. There is no kernel patch. `mat.so` is not included in the archive; you must compile `mat.c` (or `mat.dll` on Windows) and then run `tclsh test.tcl`. The documentation and schedule have been updated; `typeparse.zip` and `REPRISE.md` are attached.
Timelines: family | ancestors | descendants | both | tip-764_tcl90
Files: files | file ages | folders
SHA3-256: f0108ca9bf956a326ab66eae59fb472774650a15947bd85e81f62f0fda66308a
User & Date: Florentis on 2026-10-27 07:32:45.358
Other Links: branch diff | manifest | tags
Context
2026-11-02
17:40
v16i : type forget check-in: 4d519f8c4a user: Florentis tags: tip-764_tcl90
2026-10-27
07:32
The typed Tcl product remains about 4 times slower than the raw version, because it constructs its i... check-in: f0108ca9bf user: Florentis tags: tip-764_tcl90
2026-10-26
06:42
The `examples/matrices/` example is ready, and all 22 checks in its `test.tcl` script pass. During p... check-in: 7f8d29abf6 user: Florentis tags: tip-764_tcl90
Changes