Highlights of Tcl 9.0

  • 64-bit Capacity: Data values larger than 2Gb
  • Unicode and Encodings: full codepoint range, added encodings, encoding profiles to govern I/O, and more.
  • Zip Filesystems: mount zipfiles as filesystems
  • Attached Archives: enable starkit-style deployment of apps, with support data in filesystem archives attached to executable or libraries. Build tclsh and wish this way.
  • New Notifiers: The central event handling engine in Tcl is now constructed on top of the system calls epoll or kqueue when they are available. The select based implementation also remains for platforms where they are not.
  • Many new commands and features

Important Incompatibilities in Tcl 9.0

  • Namespace varname resolution: Current namespace, not global.
  • I/O malencoding: now raises error by default.
  • Tilde (~) in pathnames: no longer interpreted as home directory.
  • tcl_precision no longer has effect on number formatting

Highlights of Tk 9.0

  • Access to OS facilities: notifications, print, and tray systems
  • Scalable Vector Graphics: partial support in images, extensive use to enable scalable widget and theme appearances.
  • Images: full access to metadata and alpha channel.
  • Platform Features and Conventions: many improvements, including two-finger gesture support where available.
  • Troy@lemmy.ca
    link
    fedilink
    arrow-up
    11
    ·
    1 month ago

    Serious question: I’ve never met a programmer who has ever actually written anything in Tcl in the real world. If you’ve working in Tcl, tell me about it! What did you use it for and when? Was it awesome/terrible/etc.?

    • Montagge@lemmy.zip
      link
      fedilink
      arrow-up
      7
      ·
      1 month ago

      I inherited completely undocumented TCL code at work. I had never heard of TCL before that. That was fun.

    • MoonMelon@lemmy.ml
      link
      fedilink
      English
      arrow-up
      3
      ·
      1 month ago

      Back in the day TCL was used in a few places in Pixar’s Renderman renderer (called PRMan), and in its connection to Maya. You could write little TCL scripts within the Renderman Artist Tools (RAT) that would be evaluated during scene export. I think this still exists in some form inside Tractor, which is their renderfarm management software.

      It’s been a long time since I used prman but generally Python has replaced everything as the “glue” language, which honestly makes things a lot easier. VFX and game dev used to have a hundred different scripting languages rolling around.

    • IrritableOcelot@beehaw.org
      link
      fedilink
      arrow-up
      3
      ·
      edit-2
      1 month ago

      The molecular mechanical modeller NAMD and its viewer use TCL as the CLI interface, and it’s…fine. I would prefer BASH or python, but it works just fine.

      Also Tk is how most LaTeX drawing is dealt with, so trying to modify, say circuit diagrams or chemical structures drawn directly in LaTeX (I.e. chemfig) requires using some Tcl. Again, it’s…fine. No huge complaints.

      Edit: bad memory, the drawing program in LaTeX is TikZ not TkZ, its unrelated to Tk.

    • VintageTech@sh.itjust.works
      link
      fedilink
      arrow-up
      3
      arrow-down
      1
      ·
      1 month ago

      I created a report generator, When I open the app it welcomes me to a drop-down menu where I select the customer name and click generate and it opens a .pdf with some charts and graphs.

      I could have done it with .js or in excel but it takes about 5 or 6 seconds in python where as anything I’d done in .js was adequate, it would seem like it took too long to print/render. And well, excel would have given me some idiotic error a few months down the road.

      But other than that? Not much really.

  • Harald@nrw.social
    link
    fedilink
    arrow-up
    2
    arrow-down
    1
    ·
    1 month ago

    @petsoi I have not touched Tcl for years, but I remember with awe what a versatile script/programming language can be designed on top of such a minimalistic syntax.