This is super cool. #Tcl has been compiled to run on a browser using #Webassembly. The basic build includes some key libraries from tcllib as well as tDOM. It also has an extension that allows the Tcl script to interface with JavaScript.

I’d be very tempted to do something fun with this.

https://github.com/ecky-l/wacl

GitHub - ecky-l/wacl: A Tcl distibution for WebAssembly or Javascript

A Tcl distibution for WebAssembly or Javascript. Contribute to ecky-l/wacl development by creating an account on GitHub.

GitHub

This wonderfully offers a way to write web stuff in Tcl rather than Javascript. Thus bringing things full circle: the first web scripting language was Tcl (in Mosaic). An example #Tcl script even appears in the old HTML spec. But this time the browser doesn't need to specially support it, as long as it runs #WebAssembly (which most do). You can thus have Tcl running your web app!

It blows my mind that this is now possible.