News for hackers. Stuff that matters.
Re:Extending Tcl by rwmj on Sunday May 13, 2018 @01:30PM (#17059970)
In one of those "could have been" moments, back in c.1994 I wrote a simple web browser which used SafeTcl (a sandboxed Tcl) to render. I got a few things wrong in hindsight - there was no static markup at all, the whole page was rendered by Tcl although there was a simple Tcl function to render blocks of text and TeX-like markup in Tcl strings.

Tcl is more pleasant than Javascript, but still has some horrible parts like poor support for structs, nothing really equivalent to a pointer, clumsy escaping, and (at the time) no support for dynamically linked extensions.

Re:Extending Tcl by auxym on Sunday May 13, 2018 @05:24PM (#17061121)
FWIW, recent releases of Tcl have built-in dicts (hash tables), which greatly improve over the old "associative arrays".

What I missed the most when doing Tcl was support for first class functions / closures.

JimTCL seems to adress many of the pain points, for example it adds closures garbage-collected OO. http://jim.tcl.tk/index.html/doc/www/www/index.html