Tcl/Tk 9.0 released (www.tcl-lang.org)
from petsoi@discuss.tchncs.de to linux@lemmy.ml on 30 Sep 2024 18:59
https://discuss.tchncs.de/post/22884499

Highlights of Tcl 9.0

Important Incompatibilities in Tcl 9.0

Highlights of Tk 9.0

#linux

threaded - newest

troyunrau@lemmy.ca on 30 Sep 2024 23:27 collapse

Serious question: I’ve never met a programmer who has ever actually written anything in Tcl in the real world. If you’ve working in Tcl, tell me about it! What did you use it for and when? Was it awesome/terrible/etc.?

MoonMelon@lemmy.ml on 01 Oct 2024 00:20 next collapse

Back in the day TCL was used in a few places in Pixar’s Renderman renderer (called PRMan), and in its connection to Maya. You could write little TCL scripts within the Renderman Artist Tools (RAT) that would be evaluated during scene export. I think this still exists in some form inside Tractor, which is their renderfarm management software.

It’s been a long time since I used prman but generally Python has replaced everything as the “glue” language, which honestly makes things a lot easier. VFX and game dev used to have a hundred different scripting languages rolling around.

IrritableOcelot@beehaw.org on 01 Oct 2024 01:02 next collapse

The molecular mechanical modeller NAMD and its viewer use TCL as the CLI interface, and it’s…fine. I would prefer BASH or python, but it works just fine.

Also Tk is how most LaTeX drawing is dealt with, so trying to modify, say circuit diagrams or chemical structures drawn directly in LaTeX (I.e. chemfig) requires using some Tcl. Again, it’s…fine. No huge complaints.

Edit: bad memory, the drawing program in LaTeX is TikZ not TkZ, its unrelated to Tk.

marble@sh.itjust.works on 01 Oct 2024 01:51 next collapse

It’s widely used in the EDA (chip design) industry. (Unfortunately)

Montagge@lemmy.zip on 01 Oct 2024 02:27 next collapse

I inherited completely undocumented TCL code at work. I had never heard of TCL before that. That was fun.

VintageTech@sh.itjust.works on 01 Oct 2024 03:57 collapse

I created a report generator, When I open the app it welcomes me to a drop-down menu where I select the customer name and click generate and it opens a .pdf with some charts and graphs.

I could have done it with .js or in excel but it takes about 5 or 6 seconds in python where as anything I’d done in .js was adequate, it would seem like it took too long to print/render. And well, excel would have given me some idiotic error a few months down the road.

But other than that? Not much really.

troyunrau@lemmy.ca on 01 Oct 2024 04:31 collapse

But you mean you wrote it in python with tkinter as a toolkit, rather than writing it in Tcl (which is its own language, like python).

VintageTech@sh.itjust.works on 04 Oct 2024 13:42 collapse

yeah, my bad.