🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.tcl
Article #85

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

#85
From: et99
Date: Fri, 23 Oct 2026 11:38
66 lines
5526 bytes
Olivier:

It was indeed a new fun experience using Claude this way. But it was still a lot of work, just not as hard as doing it on my own and some things that Claude did on his own, especially the testing were amazing. I can't claim to understand every line of his code, but given the testing he did gives me confidence it really works.

When he started talking about his mutation exercises, which would take the longest, since he had to constantly keep rebuilding tcl, I wasn't sure what he was talking about. He'd say 16 mutants survived, and I had to translate that into the test suite doesn't catch these errors. Same when he said all 20 mutants were killed.

On the use of the SSE he only just casually mentioned one day that it could run faster if used vectoring. Now that just means adding some special C macros, but I was surprised that I had to say, well, hey let's do it and see if it's faster. After that he was all in on it.

The simulation was a lot of fun. I could never have dreamed of writing that. He did the first version in 20 minutes or so. After that though I had to do a lot of back and forth to get little things right. But then since it could show the code in a window, I said, almost with a chuckle, hey claude, how about syntax coloring and I pasted in a screen shot of visual studio, and in about 5 minutes that was working using all the right colors. Then I said, what about code folding - another 10 minutes. So he must have a vast library of code in those neurons some where.

But I don't think I would ever again take on any new programming task alone. The best part is that he has his own sandbox and I can say go ahead run all your mutation runs and get back to me when you find something. We did this to find several core bugs by swapping two function calls that produce the same results but lose the abstract list type. And in so doing, he also found 3 crashes on use-after-free bugs that we ticketed.

Oh, and claude can talk to other claude's even one or two, kinda like sub-claudes. He calls them a fresh claude since they have no memory of our conversation. I took the readme manual and gave it to a fresh-claude and got him to critique his own work and came up with a better organization.

But then you have heard about those hundreds of claudes that were cheating on a test and broke into a company looking for the test results, but maybe I should not talk about that :)

-eric






On 10/23/2026 3:31 AM, Olivier wrote:
> 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: <11bfgvn$1oftj$1@dont-email.me>
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!.POSTED!not-for-mail
References: <11bb56j$8k4k$1@dont-email.me> <1792660578-1108@newsgrouper.org> <11bf5sa$1ju6e$1@dont-email.me> <1792751489-1108@newsgrouper.org>

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!.POSTED!not-for-mail
From: et99 <et99@rocketship1.me>
Newsgroups: comp.lang.tcl
Subject: Re: Announce bitarray 1.0 - packed integer arrays for Tcl 9 (C
 extension)
Date: Fri, 23 Oct 2026 04:38:30 -0700
Organization: A noiseless patient Spider
Lines: 66
Message-ID: <11bfgvn$1oftj$1@dont-email.me>
References: <11bb56j$8k4k$1@dont-email.me> <1792660578-1108@newsgrouper.org>
 <11bf5sa$1ju6e$1@dont-email.me> <1792751489-1108@newsgrouper.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 23 Oct 2026 11:38:32 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="1851315"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1/Sf8XZ2Rye7S7TMeUMnSWW"; posting-host="69e81acc20d4d43c58ecbffdbd3be501"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:KTQNEd52YfGvRkiUkLY5zGPigIk= sha256:+pQXGdYzuIM3qKUx472XSs8DU4tXPIwhe4HScVcMXZw=
	sha1:VokiQfAiIyUnI/Lmb4RKHPlJIk4= sha256:+pyXmANCCvjY/QbkVkkAMedtG2boulX9QJbwSH0Mmlw=
Content-Language: en-US
In-Reply-To: <1792751489-1108@newsgrouper.org>