News for hackers. Stuff that matters.
Re:Tcl: Everything Is a String by pjc50 on Monday October 28, 2019 @12:59PM (#21378817)
Tcl/Tk was a tremendous rapid GUI prototyping tool. I remember cobbling together a Verilog schematic viewer in a couple of weeks using that combination, for the Series A funding round of the startup I was working at in the early 2000s.
Re:Tcl: Everything Is a String by abhgh on Monday October 28, 2019 @01:19PM (#21379141)
This was my reason for foraying into Tcl too. Till then I had used Java's AWT and Swing; but prototyping with Tcl/Tk was way faster and intuitive. Mid-2000s. I ended up liking the language - idiosyncratic as it was. Partly the reason I am curious about and planning to read Ousterhout's (creator of Tcl) book "A Philosophy of software Design" soon.
Re:Tcl: Everything Is a String by senderista on Monday October 28, 2019 @05:56PM (#21382149)
It’s a great book (only one reference to Tcl that I recall though). Also Perl/Tk was the first GUI toolkit I used (followed by Glade).
Re:Tcl: Everything Is a String by foobarian on Monday October 28, 2019 @03:47PM (#21380836)
The event handler based vector graphics in Tk were unmatched until HTML 5 and the canvas. And then there was the easy and fantastically well documented C extensibility...
Re:Tcl: Everything Is a String by thesz on Monday October 28, 2019 @06:05PM (#21382218)
Tagging system of Tk's canvas is unmatched in HTML. Pity they (HTML designers) never learn.

Basically, in Tk, you can add a tag to an element of your drawing in canvas and assign mouse (or keyboard) event handlers to change colors or other attributes on entry and exit of mouse cursor.

I made a OO/relational database schema visualization in Tk, it was breese to navigate - once you hover over a relation, you can see classes highlighted; follow highlighted relation to get to them. And once you highlight class of objects you can see to which relations it belongs.

It tooks two foreach loops to get that behavior. As far as I know, HTML5 canvas does not support that out of the box.

Re:Tcl: Everything Is a String by comex on Tuesday October 29, 2019 @06:26AM (#21385588)
HTML canvas indeed doesn’t support hit detection – although SVG does, and you can embed SVG in HTML.
Re:Tcl: Everything Is a String by _ph_ on Monday October 28, 2019 @04:44PM (#21381443)
I think it still is. A very easy to use, quite well working cross-platform solution. Since 8.6, the UI has picked up a much more nativel look and feel.