logoalt Hacker News

bandotilast Saturday at 6:36 PM1 replyview on HN

I highly recommend The Tcl Programming Language: A Comprehensive Guide:

https://www.magicsplat.com/ttpl/index.html

For those who are not aware, Tcl is actually part of standard Python distribution through TKinter.

There are many things Tcl has built in that are quite amazing, like a robust virtual filesystem support, reflective channels, and less known these days Starpacks (stand alone runtime) that bundle sources with the binary.

I am current working on bringing back kitcreator for an AI project that uses Tcl as a scripting environment over llama.cpp.

https://github.com/tclmonster/kitcreator

Roy Keene is the original author, and has done some really clever stuff here, like encrypting the VFS appended to the executable. I added compression to this. It provides some manner of obfuscating sources.

And actually, I am also working on using tohil to compile a static Python and load it as a Tcl extension, with the goal to have standalone Python applications bundled with their sources and completely loadable from within the VFS. This will provide a means to bundle TKinter with a “frozen” Python app.

https://github.com/tclmonster/tohil


Replies

7thaccountlast Saturday at 8:25 PM

The previous edition of that book is the one I read lol. A great book. You can really feel the author's love of the language.

show 1 reply