Re: creating stand-alone extended tclsh



On Apr 28, 8:26 pm, Will Parsons <oud...@xxxxxxxxxxxxxxxx> wrote:
I would like to create a tclsh with application-specific extensions.

Take a look at the Tk application and the mainline for the "wish"
application. That's a standardly distributed extension which
demonstrates this.

This approach was used quite a bit in the early days of Tcl. It is
also used by many who want tcl not as the heart of their application,
but as a relatively invisible part of their application.

What you will tend to see is more people talking about dynamically
loaded all the extensions, due to the ease it makes to distribute one
small interpreter and a few extensions. In the old days, people would
"slice and dice" tcl and extensions into various iterations, and that
got old fast :wink:.

I am uncertain what your goal is, but you might take a peek at what is
going on with the tclkit community. Tclkit is a tcl interpreter along
with a few statically linked extensions. The wiki (http://
wiki.tcl.tk/ ) as well as the starkit google forum, are some good
sources of info on that alternative.


.



Relevant Pages

  • Re: libraries and itclsh missing from Tcl8.4?
    ... It builds on Linux and Windows, ... installed Tcl8.4 as well as itcl3.2, but again no itclsh. ... something that was part of tcl 8.3 - instead, ... it is much easier to load the extensions dynamically. ...
    (comp.lang.tcl)
  • Re: TCL vs. Perl
    ... I still believe one of the major advantages and success of Perl ... to 'download and install'. ... How is this with Tcl? ... Hmm, many Tcl extensions have very few, if any dependencies. ...
    (comp.lang.tcl)
  • Re: Tcl Extension Repository
    ... The primary thing missing from all repository efforts before is that a ... - current versions of popular extensions are not tagged ... Tcl core components in the pipeline that need to be coordinated in the ... TCT to handle extensions as well. ...
    (comp.lang.tcl)
  • Re: Starkits and temp files on windows
    ... I have a starpack that has 8 additional packages wrapped in it (e.g. ... tdom to custom built extensions). ... Starpacks/tclkits use a 'virtual file system that Tcl ... space somewhere (%TEMP% is as good a place as any) and pass things off ...
    (comp.lang.tcl)
  • Re: Tcl and C++ vs Python
    ... >>language one is extending. ... This is, however, related more to the age of Tcl ... >>I have also done a few extensions in C for Tcl. ... There is no doubt that the Linux kernel requires the use of C, ...
    (comp.lang.tcl)