File
typeparse/exemples/crible/LISEZMOI.md
— part of check-in
[c8a247a331]
at
2026-11-26 10:32:15
on branch tip-764_tcl90
—
- A strided slice of a compact list filled with a single value is
validated and encoded once, then copied cell to cell
(TclCompactFillFrom). Sieve, 10^6 bytes: 99 -> 2.2 ms; 9 ms total.
- exemples/crible: comparison with C, JavaScript, Python, PHP, Ruby, Perl
- type repeat T N ?value?: a list of T made of N times the value
(zero by default), in cells without an intermediate list
(one million bytes: 0.1 ms); test t131
- direct sum of s + $v over integer cells (8, 16, 32 bits) when no
partial sum can exceed 64 bits; test t132
(sieve, 10^6 bytes: counting 2.8 -> 0.2 ms, 2.5 ms total)
(user:
Florentis,
size: 415)
[annotate]
[blame][check-ins using]
Crible d'Ératosthène, Tcl et autres langages
crible.tcl : trois représentations Tcl (liste ordinaire + lset,
list.int + tranches, octets en cases + tranches), chronométrées en
créer / cribler / compter.
autres/ : le même crible en C, JavaScript, Python (liste, bytearray,
NumPy si présent), PHP, Ruby, Perl.
comparer.sh : lance le tout ; COMPARAISON.md : résultats et principes.