Skip to content Skip to footer

Tcl Tutorial by Tomte

9 Comments

  • Post Author
    hiAndrewQuinn
    Posted March 16, 2025 at 8:20 pm

    I like Tcl a lot, especially the Expect module. If you've ever wanted an Autohotkey for your terminal (I promise that phrase actually makes sense) it's well worth your time to look into either Expect itself or Python's `pexpect` module.

  • Post Author
    zerr
    Posted March 16, 2025 at 8:29 pm

    I skipped Tcl in favor of Perl. Is there any reason to reconsider nowadays?

  • Post Author
    watersb
    Posted March 16, 2025 at 9:10 pm

    The once-ubiquitous open-source package manager for macOS, MacPorts, is basically a Tcl app.

    That is to say, its packages are Tcl.

    I haven't used it in many years, as is has been largely replaced by Homebrew, which uses Ruby.

    (I once maintained a MacOS port of a good-sized scientific analysis package. Hundreds of MacPorts packages, I have debugged.)

    https://www.macports.org/

  • Post Author
    antirez
    Posted March 16, 2025 at 10:24 pm

    If you want to play with reading/recreating a very small Tcl interpreter, recently I put Picol (a 500 lines of C code Tcl interpreter) on Github. It was still on the web, but a bit more "hidden". I had a chance to re-read the code, and it is not in the category of code I regret writing :D Still relatively useful for newcomers, I hope.

    https://github.com/antirez/picol

  • Post Author
    WillAdams
    Posted March 16, 2025 at 10:36 pm

    Wait, didn't Tcl/TK 9 just launch?

    https://www.tcl-lang.com/software/tcltk/9.0.html

    Any word on a nice binary release of it?

  • Post Author
    kras143
    Posted March 16, 2025 at 11:15 pm

    Tcl offers a unique combination of embeddability and power, often underappreciated outside specific domains. While its general-purpose usage might be less prominent, its dominance in Electronic Design Automation (EDA) is undeniable.

  • Post Author
    ChipsNDip
    Posted March 16, 2025 at 11:51 pm

    Nice, a TCL post!

    I use TCL often (forced to) since it's Cloverleaf Integration Engine's official scripting language and it works very well, but it is different from other languages in that its syntax is not modern, though, it's not difficult to learn if you really need to.

    It's an older language that's fallen out of favor mostly for other scripting languages (Javascript, Python, etc) and understandably so. I'm by no means an TCL, but do consider myself an expert when using it with Cloverleaf.

    Thanks!

  • Post Author
    twothamendment
    Posted March 17, 2025 at 12:49 am

    I haven't used TCL in a few decades and I don't miss it, but that is likely due to running it on storyserver. Worst web platform ever.

  • Post Author
    hieloz
    Posted March 17, 2025 at 3:58 am

    Nice. Tcl scripts are widely used in wireless communication,especially base station testing.

Leave a comment

In the Shadows of Innovation”

© 2025 HackTech.info. All Rights Reserved.

Sign Up to Our Newsletter

Be the first to know the latest updates

Whoops, you're not connected to Mailchimp. You need to enter a valid Mailchimp API key.