what were the people making #Tcl thinking? "let's build a language like sh, but remove every useful feature"?
@grainloom nah tcl is trash iirc
@grainloom It's eval model is really simple but the different levels of quoting will drive you nuts:
@ckeen
oooh, hopefully now i'll get the "zen of Tcl" or whatever
I've been reading the BRL-CAD tutorials but they don't seem to really go into the language
@ckeen @grainloom I finally understand tcl. Well, a little bit.Incredible.
@lupine @grainloom I am glad to be of help :)
@grainloom I know it was popular in scripts for some IRC client. I forget which.
@elomatreb @Riley
at least Lua is fun to program in, but Tcl so far is. ugh.
ok, so here is an example based on the MGED manual:
> set glob_compat_mode 0
> foreach i $search_results {attr set $i color [expr {int(rand()*225)+30}]/[expr {int(rand()*225)+30}]/[expr {int(rand()*225)+30}]}
without glob_compat_mode, it doesn't even run, but it doesn't just give any error, it gives a syntax error
global vars affecting basic syntax.....
i cri
@grainloom @Riley @elomatreb Yeah the quoting rules are headache inducing!
@grainloom plot twist: TCL is actually an abbreviation for "totally catastrophic language"
@sn0w
ouchhhhhhhhhhh
@grainloom I am wondering, why do people look at tcl? I have myself, but part of that was ignorance, part of that was, saves me writing an entire irc bot... Painful as it was.
Soooo, there's this whole ancient thread about how RMS disses on TCL in favor of guile.
I find it an illuminating basis for comparing RMS getting riled up about a tech thing almost totally outside the context of user freedom, almost completely about what we might call "code smell" programming aesthetics.
Don't know if you've seen it, and I don't know that I'd recommend it if you haven't. These sort of online brawls are a kind of acquired taste.
@webmind
gsoc project
@grainloom with tcl? Interesting. Didn't know it was still used.
@webmind @grainloom it's no worse than Python, and don't forget tk
@kara hmm, didn't do much in python, but it's array/list construction and escaping for one seemed more sane.
Tk I've always done without tcl.
grumpy about Tcl Show more
grumpy about Tcl Show more
@webmind @grainloom it's big in EDA. we (have to) use it for building FPGA bitstreams and automating other HDL stuff.
or am I only finding unidiomatic #Tcl code and it's actually a beautiful language?