3 ms·
Tcl is an amazing language. Very underrated. It's "EIAS" (everything is a string) philosophy, and the duality of strings and lists is very very powerful. It's g
by psranga 18y ago
Tcl is an amazing language. Very underrated. It's "EIAS" (everything is a string) philosophy, and the duality of strings and lists is very very powerful. It's got one of the best-documented and precisely written standard libraries I've ever seen (and the "extended standard library" tcllib is of similar quality).
E.g., if some script returns "350 seconds to execute command <more stuff here>" you can hold your nose and just treat the string as a list and extract the 0th element :) ('lindex $return 0').
It's speed leaves much to be desired. My ideal stack would in a large project would be:
1. Tcl shell on top
2. ... talking to either Python or C/C++ below
- davidw 18y agoPython is, I think, still a bit faster than Tcl, but it's not the order of magnitude that C is. And, realistically, there are a lot of things that Tcl is fast enough for these days... it's certainly in the same league as, if not faster, than Ruby and PHP.