Live data from Hacker News

Tcl-Lang Showcase

wiki.tcl-lang.org

1–10 of 45 posts

Re: Tcl-Lang Showcase

#2
Tcl was my first "general purpose" programming language (after TI-basic and Matlab).

When I started that job I didn't know the difference between Tcl and TCP. I spent a couple months studying Phillip Greenspuns books. It also made me a better engineer because unlike PHP I couldn't just Google how to do basic web server stuff so I had to learn from first principles. That's how I ended up building my first asset minification pipeline that served the "$file.gz" if it existed with content-encoding: gzip.

Nearly 20 years later and I'm basically a http specialist (well, CDN/Ingress/mesh/proxy/web performance).

Tcl is still kind of neat in a hacky way (no other language I've run across regularly uses upvars so creatively).

Shout-out to ad_proc and aolserver.

Re: Tcl-Lang Showcase

#3
"By clicking on the image, an interactive demonstration of the Tcl/Tk application is launched using CloudTk."

No it isn't; I just get an empty frame with a close button. This is consistent on multiple browsers/platforms.

Re: Tcl-Lang Showcase

#4

"By clicking on the image, an interactive demonstration of the Tcl/Tk application is launched using CloudTk." No it isn't; I just get an empty frame with a close button. This is consistent on multiple browsers/platforms.

same here

Re: Tcl-Lang Showcase

#5

"By clicking on the image, an interactive demonstration of the Tcl/Tk application is launched using CloudTk." No it isn't; I just get an empty frame with a close button. This is consistent on multiple browsers/platforms.

I'm guessing it works fine until there is load :). The design does seem to just proxy noVNC to a Linux host.

Re: Tcl-Lang Showcase

#6
I used Tcl at my very first internship for test automation. Coming from a self-taught Javascript/Java/C#/C++ background, Tcl really stretched my concept of what a programming language is, especially how it plays with stack frames and munges string values.

Coincidentally Tcl also inspired my first deep dive into Vim. The test automation framework at that company required meaty Tcl expressions packed into CSV cells. Tcl was mind-boggling enough when properly formatted, so hand-editing squashed 1800 character long expressions on a single line was way too much. I'm fairly certain the assignment was part hazing and the framework part "job security".

Jokes on them, I spent 2 weeks on a side quest to make a Vim plugin that could add line breaks and indent a Tcl expression into a split temporary buffer for editing and squash it back to the right cell when I was done. Halfway through the summer I had completed the entire backlog. The manager got a reprimand for being a jerk and I spent the rest of the summer making the framework less painful.

Re: Tcl-Lang Showcase

#7
I'm currently working on a PXE provisioning system with Tcl. This crafts a KickStart configuration hosted on a virtual URL.

LUks is a requirement and requires a random password on each workstation. Password generation with handmade web gui stored natively in sqlite all under 200 LoC so far.

Tcl gets flak, but it's battle tested. Still under active development and has a cool GUI, Tk, I love it as a language. In terms of simplicity it just works out of the box, execution in a single file, in a sanely manner.

Wrap a variable in brackets {} and you've secured yourself from injections or run the procedure in a lightening safe interpreter if your paranoid.

Threading is a breeze. It does make you think in a different methodology which folk may rebuttal, but once you get it, it's great.

NaviServer too, AOLs original webserver is awesome.

https://wiki.tcl-lang.org/page/NaviServer

https://github.com/naviserver-project/naviserver

Re: Tcl-Lang Showcase

#8
I've been thinking of writing an extensible editor scriptable with Tcl, but - surely someone somewhere must have already written one, no? I couldn't find anything that wasn't just a toy.

Re: Tcl-Lang Showcase

#9

I'm currently working on a PXE provisioning system with Tcl. This crafts a KickStart configuration hosted on a virtual URL. LUks is a requirement and requires a random password on each workstation. Password generation with handmade web gui stored natively in sqlite all under 200 LoC so far. Tcl gets flak, but it's battle tested. Still under active development and has a cool GUI, Tk, I love it as a language. In terms…

Nitpick: it's flak, not flack. It's a german abbreviation of Flugzeugabwehrkanone or anti-aircraft gun

Re: Tcl-Lang Showcase

#10
Tcl/Tk was used by the first open source project I ever contributed to 25 years ago – a client for AOL Instant Messenger called TiK. It was such a thrill to be able to hack on the client, see the changes in almost real time, and share with others. It's great to see Tcl still around and kicking!

https://tik.sourceforge.net/

Post reply on HN