Live data from Hacker News

Tcl 9.0

tcl-lang.org

211–220 of 247 posts

Re: Tcl 9.0

#211
post #8

The only time I’ve dealt with Tcl in recent memory was for some MacPorts portfile stuff. Anybody using it for something else and can speak to why you’d use it today? Genuinely curious; I don’t hate the language but can never bring myself to enjoy it either.

Copy-pasting a "hype" checklist I made some eons ago: * Extremely consistent and elegant syntax - whole syntax/grammar is described in 12 rules in a single man page (Tcl(n)) of 150 lines and there's no reserved keyword. Nearer to CL than Python on that point. * Homoiconic through strings (like almost every language with eval) but most importantly, through "list-like" strings. * Official man pages! No web-only and spe…

For the few interested people, took the time to make a final version in Markdown with lots of links and some improvements/proofreading: https://gist.github.com/q3cpma/a0ceb6a7c6a7317c49704630d69b7...

Re: Tcl 9.0

#212

Earlier quoted context omitted.

I think he also wrote an implementation of a tcl-like language called Jim.

No, that was by Steve Bennett.

Sorry no, antirez (Salvatore Sanfilippo) was the original author, Steve Bennett took over maintenance later - https://jim.tcl.tk/index.html/doc/www/www/about/ .

Re: Tcl 9.0

#213
post #172
post #120

Earlier quoted context omitted.

> It is really hard to describe just how much better Tk was than anything else in the time frame. This[0] vs (from memory w/o a computer atm…): #!/bin/env wish button .b .b configure -text “push me” -action {puts “don’t push me!”} pack .b [0] https://users.cs.cf.ac.uk/Dave.Marshall/X_lecture/node5.html... ====== #include #include /* Prototype Callback function */ void pushed_fn(Widget, XtPointer, XmPushButtonCallback…

-command instead of -action, but otherwise perfect! :)

I also used the wrong path for /usr/bin/env ;)

Re: Tcl 9.0

#214

Earlier quoted context omitted.

Copy-pasting a "hype" checklist I made some eons ago: * Extremely consistent and elegant syntax - whole syntax/grammar is described in 12 rules in a single man page (Tcl(n)) of 150 lines and there's no reserved keyword. Nearer to CL than Python on that point. * Homoiconic through strings (like almost every language with eval) but most importantly, through "list-like" strings. * Official man pages! No web-only and spe…

>refcounting does the job since no cycles are possible by design So double-linked list is impossible to define?

Rosetta Code has examples of DBLs in Tcl and Tcl::OO.

Re: Tcl 9.0

#215

Earlier quoted context omitted.

Copy-pasting a "hype" checklist I made some eons ago: * Extremely consistent and elegant syntax - whole syntax/grammar is described in 12 rules in a single man page (Tcl(n)) of 150 lines and there's no reserved keyword. Nearer to CL than Python on that point. * Homoiconic through strings (like almost every language with eval) but most importantly, through "list-like" strings. * Official man pages! No web-only and spe…

Hey, you missed out coroutines :-)

I did, and I also missed coroinject/coroprobe being new in 9.0 (from the full release notes). Seems like a delightful new way to blow minds.

Re: Tcl 9.0

#216
post #204

Earlier quoted context omitted.

The site is ugly and difficult to navigate. Go there and enter TCL in the search box and see how many clicks you have to do to actually find the project. Then when you click the download button a timer has to run out before the download will start. Maybe it technically works, but it's a terrible UX.

"Ugly and difficult to navigate" and "terrible UX" are a completely different thing than "scammy download sites that installs spyware".

Why did you omit the "feels like one of those" from the text you quote?

Re: Tcl 9.0

#218
post #53

I can't overstate my love for Tcl, yet I had only a little chance to use it when writing XiRCON IRC scripts back in the late 90's. Such an elegant language: simple, easy to learn, flexible. I call it Lisp for humans. I wish it were more popular. So glad to see that it's still alive and kicking.

I also wrote TCL scripts for a IRC client in the 90s, and it was awesome. For that purpose the language was awesome. On the other hand, my other language at that time was x86 assembly so I didnt require much to be awed I guess!

Re: Tcl 9.0

#219

Earlier quoted context omitted.

> most things you’d need Say you wanted to write a CAD app like https://www.onshape.com . There’s no way you could do it Tcl/Tk, is there?

It's 2D only and Mac OS-specific, but there is: https://github.com/revarbat/TkCAD

That's impressive!

Re: Tcl 9.0

#220

Earlier quoted context omitted.

No, that was by Steve Bennett.

Sorry no, antirez (Salvatore Sanfilippo) was the original author, Steve Bennett took over maintenance later - https://jim.tcl.tk/index.html/doc/www/www/about/ .

My bad; I'd forgotten about Salvatore's role. Steve Bennett is the one I saw present about it at the Tcl Conference some years back.
Post reply on HN