Am 08.08.2025 um 18:29 schrieb saito:
I recently built a custom tclkit and wrapped it. I noticed that when it runs, it extracts its dll's and other stuff. This is fine.
However, it turns out that it does this each and every time you run it.
This seems excessive. It adds to the startup time, it wastes space and
it creates lots of duplicate folders.
I wonder if tclkit could be enhanced in a simple way that keeps the
benefits and avoids the negatives: use the wrapped kit name, or some
hash of it, and use that as the folder name where to extract the dll's.
If it exists, skip the file extract/copy/save operation. Otherwise, it
means it is the first time the app is running, and it can extract the
files.
Dear Saito,
this is an open issue since at least 20 years.
This is starkit technology by JC Wipfler.
We had last year a heavy discussion on this point, if dlls may be memory loaded.
A side aspect of it is this TIP:
https://core.tcl-lang.org/tips/doc/trunk/tip/709.md
On the core, we decided to not put any dlls in the zip on Windows, so
the dde and registry dlls are not included.
Another manifestation was this widthdrawn TIP:
https://core.tcl-lang.org/tips/doc/trunk/tip/702.md
I just want to day, that a lot of discussion already took place and
there is no satisfactory solution jet. So, any solution welcome!
On the practical side, you may follow the solution I use and presented here:
https://wiki.tcl-lang.org/page/Single+file+applications+in+Tcl+9
I also used it for starkits.
Take care,
Harald
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)