The code at [2] provided an alternative approach using C via critcl. It was interesting to see how malleable tcl can be.
[1] https://github.com/msteveb/jimtcl [2] https://wiki.tcl-lang.org/page/speed+up+clock+format+and+clo...
Are you the monetus who used to post on the pd forums? If so, thanks, I have found some of my answers in threads which you contributed too and probably provided the solution too.
forinti•3h ago
It makes more sense to me to embed Tk into a C program.
ofalkaed•3h ago
Critcl looks to be quite nice in those situations when Tcl/Tk is almost but not quite, you get the speed and ease of Tcl/Tk but a little more as well. The big gotcha looks to be having the foresight of identifying when writing a proper Tcl/Tk extension or switching language is the better plan, but this is almost always the big gotcha.
Joel_Mckay•2h ago
Being able to compile ephemeral objects is actually pretty useful in some use-cases. =3