News for hackers. Stuff that matters.
Re:Tcl: Everything Is a String by jancsika on Monday October 28, 2019 @05:11PM (#21381721)
> It's also really tiny, and has a great async event-loop framework. It has built-in support for sockets and non-blocking I/O. It has a GUI toolkit that's pretty useful for making quick-and-dirty tools.

There are implicit "OR" statements between those sentences.

Example: suppose a newbie wants to use tk do make a quick-and-dirty GUI and leverage tcl's async event loop to make it responsive while processing a bunch of files. It's my experience that while this can be done it is less than easy.

Re:Tcl: Everything Is a String by cmacleod4 on Tuesday October 29, 2019 @05:51AM (#21385447)
This can be tricky, because programming based on events tends to push you into writing everything as event-handlers, but they get awkward for long-running stateful computations. However Tcl has had coroutines for about 10 years now, and those allow you to bypass this problem completely.

I gave short presentation about applying this approach to scripts combining a responsive GUI with managing multiple parallel Expect sessions at www.eurotcl.eu/program.html#Macleod .

Re:Tcl: Everything Is a String by RHSeeger on Monday October 28, 2019 @11:10PM (#21383978)
I don't recall that being the case. Has something changed in the past years that prevents you from using the same event loop for both gui and async behavior?