News for hackers. Stuff that matters.
Re:Visual Tcl by peteretep on Wednesday January 27, 2021 @04:50AM (#25926201)
> Exports Tclets which run in Netscape/MSIE. You must have the Tcl Plugin to see the Tclets.

Not sure the Tcl Plugin would still run anywhere, which is a shame

Re:Visual Tcl by skissane on Wednesday January 27, 2021 @05:56AM (#25926667)
I assume the plugin is just running Tcl/Tk inside a browser window.

I wonder how hard it would be to recreate the same idea using Emscripten drawing to a HTML canvas?

People have gotten Tcl to work on Emscripten [0]. I think the big problem is the Tk part. Tk has X11, Win32 and macOS backends, but emscripten supports SDL, for which there is no Tk backend.

[0] https://github.com/aidanhs/emtcl

Re:Visual Tcl by blacksqr on Wednesday January 27, 2021 @10:32AM (#25929397)
The Projected Tk project aims to recreate Tk with a pluggable backend structure, with a web browser backend one goal.

https://chiselapp.com/user/gwlester/repository/PTK/home

Re:Visual Tcl by swiley on Wednesday January 27, 2021 @07:34AM (#25927430)
There is an SDL backend for Tk but it's not part of the normal distribution:

http://androwish.org/home/home

Re:Visual Tcl by Aldipower on Wednesday January 27, 2021 @05:20AM (#25926424)
I think Chrome dropped support recently too..
Re:Visual Tcl by flohofwoe on Wednesday January 27, 2021 @07:40AM (#25927488)
Would be a nice weekend hack to create a Tclet "plugin" for WASM. The Tcl interpreter itself is extremely easy to port to exotic platforms, only problem might be APIs that wrap underlying operating system APIs, those would need to be emulated on top of browser APIs.