Article View: comp.lang.tcl
Article #68Re: support for 'memory' command
From: et99
Date: Mon, 19 Oct 2026 04:14
Date: Mon, 19 Oct 2026 04:14
41 lines
3715 bytes
3715 bytes
Alan, There are much better ways to do this today. I just built an extension for Tcl 9.1 with Claude, and the testing it did was incredible: 500+ tests, 220 mutations, and checks with valgrind, gcov and more. Claude works in a Linux sandbox that has Tcl 8.6 installed, and it can download the latest 9.1 trunk and build it, so it doesn't matter that my extension only runs on 9.1 that has the abstract list feature. To try the same on your extension: 1. Download the zip from https://github.com/rocketship88/tcl-bit-array-extension 2. Drag the whole zip into a new Claude chat. It contains a claude.md file written for a fresh Claude with no memory of my sessions, so it explains what was built and how the testing was done. 3. Then say: "Claude, look at this and do the same kinds of tests for my extension." 4. Paste in your extension source, or drag the files into the window. Since you're debugging with TCL_MEM_DEBUG, you could also ask it to build Tcl with memory debugging enabled and recompile your extension against that build. A few notes: - Claude needs code execution and file creation turned on in Settings to use the sandbox. - If Claude doesn't pick up claude.md on its own, add "start by reading claude.md" to the prompt in step 3. - I pay $20/month so I never get cut off mid-session, but I don't think you need a paid tier to try this. - The zip also contains dozens of the test scripts it wrote. If you want to see what it can do, ask it to run the stepper in a side panel. Regards, Eric On 10/16/2026 9:54 AM, Alan Grunwald wrote: > On 16/10/2026 13:06, Ashok wrote: >> BTW, I am not sure whether compiling Tcl with memory debugging enabled requires any loaded extensions to also have been compiled the same way. Probably safer to do so. >> > > I agree it would be safer. > > > FWIW, I'm intending only to use the memory-enabled shell to exercise/debug my homebrew extension and I'm fairly sure that none of the scripts that I'm using it with rely on any other binary extensions. I'm planning to see what happens when I run my extension without rebuilding it[*]. If I don't come back here to report otherwise, you can assume that I had no problems. > > > Alan > > [*] Come to think of it, I rather think I _will_ have to recompile my extension to be sure that my own calls to the framework use the TCL_MEM_DEBUG versions of things. Watch this space!
Technical Details
Message-ID:
<11b45ed$1o216$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-mailReferences:
<11ar64t$2kpp9$1@dont-email.me> <11at3vl$392eb$2@dont-email.me> <11atkro$3f4jj$3@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!.POSTED!not-for-mail From: et99 <et99@rocketship1.me> Newsgroups: comp.lang.tcl Subject: Re: support for 'memory' command Date: Sun, 18 Oct 2026 21:14:04 -0700 Organization: A noiseless patient Spider Lines: 41 Message-ID: <11b45ed$1o216$1@dont-email.me> References: <11ar64t$2kpp9$1@dont-email.me> <11at3vl$392eb$2@dont-email.me> <11atkro$3f4jj$3@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Mon, 19 Oct 2026 04:14:06 +0000 (UTC) Injection-Info: dont-email.me; logging-data="1837094"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19ZmEIbeIGC2HX6ZmGIT46g"; posting-host="5b5048cd6f7d76350a67f03d9fc726cd" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:2GXkP+YhbLOUoel5PX6IAQ4gpus= sha256:1ZHNuBgbJwlCJGY+wEc9ge0QIAg8v1R9Ve4QKdlAGlE= sha1:JeoREkzPhNAPDuld3XQs/dVNQtY= sha256:RGUaWMv7ru0U5dAnpVw+nDdK999WmhMSWS2oV1A7V8A= Content-Language: en-US In-Reply-To: <11atkro$3f4jj$3@dont-email.me>