Live data from Hacker News

Tcl 9.0

tcl-lang.org

241–247 of 247 posts

Re: Tcl 9.0

#241
post #86

Earlier quoted context omitted.

Super interesting, what's the rationale behind its use there?

John Ousterhout realized that every single EDA tool at Berkeley wound up implementing a crappy extension language. So, he implemented a language so that there could be a single, not-so-crappy extension language for the Berkeley EDA tools. He made C integration particularly easy (something the lisps of the time didn't really do). As his students spread out, each company they hit had a shitty extension language and the…

> You need a language that is small yet still complete. Even today, the only languages that really fit that bill are Scheme/Lisp, Tcl, and Forth.

Maybe Io or REBOL fall into this category as well...? Or Logo...

Re: Tcl 9.0

#242

So I started playing with TCL for the first time this weekend after seeing this post, and here are my thoughts. I think the language is fun and much different than I’m used to, but my biggest challenge so far is just getting packages installed. There seems to be no current, modern, maintained package manager or central repository, and to do basic stuff like stand up a web server requires compiling from C source. Kind…

I'm not familiar with JWT at all, but I found a description of how to generate an ES256 JWT from the command line: https://techdocs.akamai.com/iot-token-access-control/docs/ge... . I don't know if this would meet your needs, but from Tcl you could use `exec` to run these commands and read the result.

Thanks for sharing this. My preference is to do it all in Tcl without having to shell out, which is possible (and easy!) to do in most other languages.

Re: Tcl 9.0

#243
post #130

Earlier quoted context omitted.

>I call it Lisp for humans. Except for upvar.

CMake similarly is sick in the head: https://cmake.org/cmake/help/v3.30/command/set.html#normal (heh, I enjoy that the documentation anchor is "normal" for SET(FOO BAR PARENT_SCOPE)

Well, CMake's problem is more the lack of return value for functions than anything, making "upvar" ubiquitous.

Re: Tcl 9.0

#244
post #6

Earlier quoted context omitted.

Tcl Improvement Proposal (TIP) 602[0]. [0] https://core.tcl-lang.org/tips/doc/trunk/tip/602.md

One example from the document: > Consider the naive attempt to clean out the /tmp directory. > cd /tmp > foreach f [glob *] {file delete -force $f} > A file ~ or ~user maliciously placed in /tmp will have rather unfortunate consequences.

Isn't that just tilde-expansion happening at the wrong moment?

Re: Tcl 9.0

#245

Earlier quoted context omitted.

I'm not familiar with JWT at all, but I found a description of how to generate an ES256 JWT from the command line: https://techdocs.akamai.com/iot-token-access-control/docs/ge... . I don't know if this would meet your needs, but from Tcl you could use `exec` to run these commands and read the result.

Thanks for sharing this. My preference is to do it all in Tcl without having to shell out, which is possible (and easy!) to do in most other languages.

It's a valid concern. But I just want to point out that shelling out to other things is part of the "paradigm" when using a shell-like language. If you embrace this paradigm, you will better understand the style.

Think of it like learning functional programming. You have to "embrace the paradigm" instead of just mutating things all the time like you might be used to in an imperative language.

Re: Tcl 9.0

#246
More important than Python 3.13.

Bravo !!!!

Can't wait Scilab and Python to ship with Tcl/Tk 9.0

I think Next Scripting latest releases are 9.0 ready.

Keep an eye on Undroidwish and the Binary Releases section of the official page.

Re: Tcl 9.0

#247

I recently asked HN if Tcl is still relevant in 2024 https://news.ycombinator.com/item?id=41108667 Nice to see a new release coming out not too long after such a question :)

It is very still relevant.

It is also supported on Scilab.

Post reply on HN