News for hackers. Stuff that matters.
Re:What is Tcl? by vortico on Monday February 23, 2015 @11:23PM (#9098670)
Despite the numerous books and talk about Tcl, I've never seen any actual Tcl for two reasons.

1) It seems to be used in GUIs for biological and medical sciences only, which is distant from my field.

2) There are absolutely no code samples on the surface of tcl.tk or on this article, and after clicking "Random Page" a statistically significant number of times I found that only 1/6 pages have any Tcl code at all. Even the tutorial for the language itself has a strangely low code-to-text ratio. It makes me wonder that the developers are wanting to hide the code due to shame, or the CEO bosses behind the project only feel that advertising features of the implementation, applications, and the language's popularity are important, while in fact these are relatively useless to speculating and beginner Tcl programmers.

Re:What is Tcl? by cleverjake on Tuesday February 24, 2015 @12:12AM (#9098851)
way back when, a large amount of AOL stuff was written in tcl. AOLServer was one, and they actually opened sourced it - https://github.com/aolserver/aolserver
Re:What is Tcl? by evilotto on Tuesday February 24, 2015 @12:55AM (#9099001)
And lest you think that AOLserver is dead based on the lack of new activity on that github repo (which is just a mirror, BTW), Naviserver - https://bitbucket.org/naviserver/naviserver - which was forked from AOLserver some time ago, just released a new version yesterday.
Re:What is Tcl? by stormbrew on Monday February 23, 2015 @11:28PM (#9098681)
Almost all of my exposure to TCL was IRC clients (xircon) and bots (eggdrop) in the 90s. Also my first job used it in some capacity that I forget, but it was through the tcl at that job that I had my first exposure to an event driven framework with chaining (twisted python style). It's a pretty odd language, but has some interesting and powerful ideas in it.
Re:What is Tcl? by rodgerd on Monday February 23, 2015 @11:33PM (#9098703)
Mine was the ArsDigita stack and Vignette StoryServer. There was a lot of the latter in the wild for a long time.
Re:What is Tcl? by michaelsbradley on Monday February 23, 2015 @11:41PM (#9098727)
Expect[1] (a Tcl-based tool) is still quite useful despite its age, and Don Libes' book[2] is a devops classic (if there is such a thing). The examples directory[3] from expect's source code repository should help you get the flavor of good Tcl programming.

`brew install expect`

`apt-get install expect`

Readily available on many other platforms as well, including Windows.

[1] http://www.nist.gov/el/msid/expect.cfm

[2] http://shop.oreilly.com/product/9781565920903.do

[3] http://expect.cvs.sourceforge.net/viewvc/expect/expect/examp...

Re:What is Tcl? by sanxiyn on Tuesday February 24, 2015 @01:05AM (#9099036)
GCC testsuite is still written in DejaGnu, which is written in Expect.

http://www.gnu.org/software/dejagnu/

It works for what it does.

Re:What is Tcl? by peteretep on Monday February 23, 2015 @11:30PM (#9098692)

    > It seems to be used in GUIs for biological and medical
    > sciences only, which is distant from my field.
Technically that's Tk, isn't it? I've written quite a lot of Perl that uses Tk before, and there was even an ORA book about it.
Re:What is Tcl? by vortico on Monday February 23, 2015 @11:39PM (#9098720)
Well, yes. Technically. Although I personally haven't seen Tcl in use without Tk.
Re:What is Tcl? by serverhorror on Tuesday February 24, 2015 @05:04AM (#9099676)
I too had that impression.

I can vouch for (1) being correct since I am managing an HPC Cluster for a company right now. The way to to is modules.sf.net (or the newer and nicer Lmod which is Lua).

The usual need is for a multitude of versions being avaible and easily usable. This starts at the compiler level and goes up to stuff like I have 5 versions of Tool X. This needs Python 2.7.3 (yes exactly that version). Now make it easy for me to use it.

It has been my only touching point with TCL so far -- I. Don't. Like. It.

Re:What is Tcl? by schlenk on Tuesday February 24, 2015 @03:15PM (#9103193)
Well, you might not notice Tcl if you see it sometimes.

For example have a look at the build scripts in MacPorts, those are valid Tcl programs (if you load the needed procs first). https://guide.macports.org/chunked/development.examples.html

As Tcl is very often used for DSL style usecases, you might mistaken Tcl code for more or less pseudo code, config files or something like that.

Re:What is Tcl? by biomimic on Tuesday February 24, 2015 @12:24AM (#9098895)
TiVo started out as a Tcl house too. Their boxes have a Tcl tcp socket server that I built installed on each one.