‹ BackHN Continuity

Thread

Tcl/Tk 9.1

304 points · 144 comments · dmux

  1. srean · · focus · HN ↗
    I have a soft corner for TCL, because of its idiosyncracies and weird dynamic stringy playfulness. I would be wary of using it professionally but to play around for the fun of it ... it's just too much fun. Upvar and uplevels are crazy.

    Python is that kind of cool one behaves when visiting parents of your would be spouse for the first time. Tcl on the other hand is like playing one's secret exclusive and somewhat dangerous games with kid school bestie.

    Tcl/Tk pioneered the notion of a scripting language as a library. It got threading right. You can run multiple independent Tcl interpreters in the address space of your process and they can exchange messages. Entirety of interpreter state is encapsulated inside the interpreter object, no globals. To a user an it is just a pointer to an object.

    No need for GIL, no need for serialization/deserialization (pickle/unpickle) ... just within process memory copy (or no copies in case data is immutable).

    1. grimgrin · · focus · HN ↗
      if anyone was curious! "soft spot" has an Indian English "soft corner", so says website dot com
      1. srean · · focus · HN ↗
        Very interesting. I was not aware at all that this was an Indianism. One that I like quite a bit is the word prepone.
        1. maybewhenthesun · · focus · HN ↗
          My uncle, who worked for oil companies all his life, always had the opinion that the Indians use english better than the English. :-)

          'prepone' is an example of why I sometimes agree. Most indian guys I know also up the baudrate of english so much that they get twice the information flow compared to british english. With the disadvantage that both sides of the conversation need to speak indian english or you'll get protocol errors :-D

Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.