Re: Tcl vs. Lua



Cameron Laird wrote:
Lua is tops for "easy integration with C/C++". Tcl is almost
as simple. Tcl, as it happens, offers at least a half-dozen
distinct idioms for Tcl-C co-operation. One of these is called, "stubs". Lua lacks stubs, to the best of my knowledge
(although only straightforward if tedious effort lies in the
way of someone who wants to endow Lua with stubs).

Stubs is in part an attitude to backward compatability that is oriented to very stable APIs and heavy production use. Actually stubbing an API isn't very hard; you use automated tools to do most of the maintenance after all. But keeping those promises you made by adopting a stubbed API, well, that's a different story altogether.

FWIW, most commercial software is nothing like as stable as Tcl, even if
we restrict ourselves to examining just the API (and leave out things
like propensity to crash, etc.) To see what I mean by this, you have to
realize that code that was compiled to binary form against Tcl 8.1 (i.e.
perhaps as far back as May 1999) will still probably work if loaded into
the CVS HEAD version of 8.5, over six and a half years later. (Of
course, if we talk about source compatability, I've got code that was
written against Tcl 7.4 which still builds now, over a decade later.)

Donal.
.



Relevant Pages

  • Re: wheres Tcl?
    ... Here's how I do it on windows. ... I have an IRC client that uses Tcl not only as its user scripting language for IRC ... Picking a different core to load byway of the Stubs linkage of the executable is ... it will require logic for discovering and loading a Tcl core on the ...
    (comp.lang.tcl)
  • Re: TIP#308: Last serial column value generated
    ... I maintain fbsql, a MySQL TCL extension. ... If the TDBC defined an async API I would probably follow it's design. ... The fbsql extension is in the public domain. ...
    (comp.lang.tcl)
  • Re: object oriented tcl
    ... You don't need OO to achieve object-like features in Tcl. ... Each API works on a user selected variable in the ... TclOO provides the object in this case, ...
    (comp.lang.tcl)
  • Re: MPEG2 transport streams and Tk
    ... keyframe or not. ... Here's the external API that I was going off of:http://wiki.videolan.org/ExternalAPI ... know and I can send the Tcl binding I have. ... If you manage to build one, I'll be your dedicated alpha tester! ...
    (comp.lang.tcl)
  • Re: TIP #185: Null Handling
    ... > I'm of hte mind that NULL handling is a domain problem, ... string, when used as a number, the value is a number, etc.) this means ... This is probably the "minimal" change to Tcl core required to implement ... the null object type that would satisfy my needs as a DB API implementer ...
    (comp.lang.tcl)