‹ BackHN Continuity

Thread

Tcl/Tk 9.1

304 points · 144 comments · dmux

  1. fmajid · · focus · HN ↗
    I did some Tcl work a quarter century agi, but really if I were in the market for an extension glue language today, I'd reach for Lua first.
    1. kstrauser · · focus · HN ↗
      How come? I don't have enough experience with either to have a preference, but I'd love to hear the opinion of someone more familiar.
      1. rwbt · · focus · HN ↗
        Not the OP but Tcl comes with batteries included and more "full fledged". Lua is just so much more lightweight and so easy to just drop it in any codebase.

        The biggest reason to use Tcl even to this day is to write Tk GUI programs.

        1. kstrauser · · focus · HN ↗
          Interesting! Would that make a different choice for standalone use, then?
        2. bch · · focus · HN ↗
          > The biggest reason to use Tcl even to this day is to write Tk GUI programs.

          Well... Tcl on its own is good as a configuration language, creating DSLs, or as a scripting/extension interface, as well as a single common cross platform interface to filesystems, network sockets, and more - so I'd say "the biggest reason" depends on what you're working on...

      2. fmajid · · focus · HN ↗
        The everything is a string approach shows its limits quite quickly. Lua is also extremely performant, which is not always needed in a glue language, but still good to have.
    2. RHSeeger · · focus · HN ↗
      I like the concept of Lua, but I ran into enough issues with it's "everything is a table" design that I stopped using it.
Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.