by bch · 5y ago · 0 comments
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/ma...
[1] https://stackoverflow.com/questions/7362846/running-tcl-code...
The Tcl system was ported from the Very Large Telescope VLT, in Chile.
So that's a couple of weird places.
>>> import tkinter as tk
>>> tk.Tcl().eval('puts {hello, world}')
hello, world
''
I wonder if this releases the GIL.