🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.tcl
Article #83

Re: Announce bitarray 1.0 - packed integer arrays for Tcl 9 (C extension)

#83
From: Olivier
Date: Fri, 23 Oct 2026 10:31
40 lines
2556 bytes
et99 <et99@rocketship1.me> posted:

> Hi Olivier:
> 
> The speed comes from being done in C instead of a Tcl loop, 64 bits at a time (and with SSE2 for some of the 8-, 16- and 32-bit operators). And yes, once the samples are integers, a threshold test gives a 1-bit array that you can combine with other tests and counting.
> 
>
> ...

Tcl being in C the comparison is fair, and it is much much faster.
And your solution is quite usable in my opinion.

> ...

> The benchmark that produced the table is extras/listbench.tcl in the repository, and I would be glad to hear what numbers you get on your own machine.
> 
> Thanks for your interest,
> 
> Eric
> 

Unfortunately I am more comfortable with heat, magnetics, hydraulics, power electronics
 ... So that apart from the assembly language paragraph (that has not changed 
since ages, and could decipher), I cannot be constructive.

But soon I will have interest in VHDL and simulation, so
your result could save me if what I am doing in pure Tcl is too slow. 

And I wonder what you will discover with AI next time ? There seems to have
a hype on security, but not on pure speed execution, hopefully you can help
in improving Tcl speed.

Olivier.

PS : AI when it is reasonably used is a good tool for small projects, but
I hope you will never ask ( in fact it will be so expensive ! ) Claude :
Hey Claude, fork a new Tcl that is 10x faster on the whole set of commands" :-D !
I had only used it 4-5 times, the simple Chatgpt console, for procedure dealing
with images in Tcl. It works, but it is not so clever.
Technical Details
Message-ID: <1792751489-1108@newsgrouper.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!newsgrouper.org!.POSTED!not-for-mail
References: <11bb56j$8k4k$1@dont-email.me> <1792660578-1108@newsgrouper.org> <11bf5sa$1ju6e$1@dont-email.me>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!newsgrouper.org!.POSTED!not-for-mail
From: Olivier <user1108@newsgrouper.org.invalid>
Newsgroups: comp.lang.tcl
Subject: Re: Announce bitarray 1.0 - packed integer arrays for Tcl 9 (C extension)
References: <11bb56j$8k4k$1@dont-email.me> <1792660578-1108@newsgrouper.org> <11bf5sa$1ju6e$1@dont-email.me>
Date: Fri, 23 Oct 2026 10:31:29 GMT
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Message-ID: <1792751489-1108@newsgrouper.org>
Injection-Info: newsgrouper.org; mail-complaints-to="newsgrouper@yahoo.com"; posting-account=user1108
Injection-Date: Fri, 23 Oct 2026 10:31:29 GMT
User-Agent: Newsgrouper/0.9.0
Organization: tcltk@vivaldi.net