Re:Extending Tcl
by srean on Sunday May 13, 2018 @12:34PM
(#17059740)
Is that right ? I have never used Ruby. I should have my expectations on running time in check in case I do try Ruby out -- I have been meaning to.
[ Parent
| on HN ]
I don’t dislike Ruby - you can do some very clever things in very little code with it. But it is far from high-performance!
Early Tcl was slow - but it was being compared to pure C. Recent Tcl is as snappy as any HLL.
Early (pre-8.0) Tcl was also literally string-processing the scripts. 8.0 brought a byte-compiler and the TclObj internal structure that maintained “native” values for types (I.e: a value “1.2” used as a floating-point value had its value cached as a float/double, versus reconstituting it from the string “1.2” every time it was needed. Note too this conversion happened nearly 20 years ago[0]. These days there’s some excitement surrounding the byte-compiling targeting LLVM[1], so faster still...