4 ms·
> Does it make sense to have another scripting language inside Python scripts? Point of interest, Python already has another embedded language if you have Tkin
by bch 5y ago
> Does it make sense to have another scripting language inside Python scripts?
Point of interest, Python already has another embedded language if you have Tkinter available: Tcl.
Larry Wall of Perl fame once said: “Tcl tends to be ported to weird places like routers.”[0]
Routers are just the beginning… see here[1] for calling Tcl scripts directly into a Python-embedded Tcl interpreter. I believe at least one of the Perl/Tk attempts did something similar (embedding Tcl wholesale) too.
[0] https://github.com/thibaultduponchelle/perl-fortunes/blob/master/data/larry-wall https://github.com/thibaultduponchelle/perl-fortunes/blob/ma...
[1] https://stackoverflow.com/questions/7362846/running-tcl-code-from-python https://stackoverflow.com/questions/7362846/running-tcl-code...
- watersb 5y agoTcl was briefly used for the monitor and control system for the original 12-meter radio telescope on Kitt Peak in Arizona. The Tcl system was ported from the Very Large Telescope VLT, in Chile. So that's a couple of weird places. https://en.m.wikipedia.org/wiki/ARO_12m_Radio_Telescope https://en.m.wikipedia.org/wiki/ARO_12m_Radio_Telescope
- BiteCode_dev 5y agoThe supported python version: >>> import tkinter as tk >>> tk.Tcl().eval('puts {hello, world}') hello, world '' I wonder if this releases the GIL.