home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / os / linux / 16532 < prev    next >
Encoding:
Internet Message Format  |  1992-11-11  |  3.7 KB

  1. Xref: sparky comp.os.linux:16532 comp.lang.tcl:1818 comp.os.coherent:5588 comp.unix.misc:4130
  2. Newsgroups: comp.os.linux,comp.lang.tcl,comp.os.coherent,comp.unix.misc
  3. Path: sparky!uunet!eco.twg.com!twg.com!news
  4. From: "David Herron" <david@twg.com>
  5. Subject: Tcl to replacement most of /bin & /usr/bin (was: Tcl on Linux machines.)
  6. Message-ID: <1992Nov13.022712.16069@twg.com>
  7. Sensitivity: Personal
  8. Encoding:  64 TEXT , 4 TEXT 
  9. Sender: news@twg.com (USENET News System)
  10. Conversion: Prohibited
  11. Organization: The Wollongong Group, Inc., Palo Alto, CA
  12. Conversion-With-Loss: Prohibited
  13. Date: Fri, 13 Nov 1992 02:30:42 GMT
  14. Lines: 69
  15.  
  16. The following question triggered one of my "this is a kool idea" buttons ..
  17.  
  18. > Just curious, has someone tried to compile/port Tcl to Linux already ?
  19. > If so how much work involved ? Inquiring mind wants to know.
  20.  
  21. Suppose one had the freedom to re-implement the Unix environment.
  22. What would you do?
  23.  
  24. I dunno about the rest of you jokers, but what I'd like to see is:
  25.  
  26. - ***SMALLER*** disk space requirements.  (and smaller memory requirement)
  27.  
  28. - More easily customizable environment, with customizations (sometimes)
  29.   just behind the front end of the tools.
  30.  
  31. - Have the inner functionality of the tools made available in some sort of
  32.   script/program environment for building new tools.  Particularly for
  33.   writing little X based interfaces ...
  34.  
  35. For those OS historians among us.. something like the stated goal of
  36. RSTS & Basic-Plus is what I have in mind.  In that system most (all?)
  37. of the user commands were written in this dialect of Basic.  The goal
  38. being to have a customizable environment, and may have included some
  39. of the other goals above.
  40.  
  41. By properly partitioning functionality into dynamically loadable libraries
  42. most of the necessary functionality ought to be doable in C functions.
  43. In which case the scripting language would only be there to glue C functions
  44. together into an application usable by a user.  This should, then, make
  45. the `overhead' from interpreted scripts insignificant.  And, besides,
  46. 1) systems are a *lot* faster now than in the RSTS days, and 2) TCL is
  47. a much smaller and more easily interpreted language than Basic-Plus.
  48.  
  49. The environment would then have
  50.  
  51. - in /lib, dynamically loaded libtcl.a, libtk.a and bunches of other
  52.   libraries.  For instance, libcat.a, libmore.a, etc ..
  53.  
  54. - in /bin, a tcl program which has commands for dynamically linking and
  55.   pulling in any TCL commands from the library.  There will, of course,
  56.   be some programs which you don't want to `trust' as a TCL+libraries
  57.   program, these will be as they are now.  Just like some programs 
  58.   are hardcoded to read host info from /etc/hosts because at boot time
  59.   they need to get host info without the nameserver (or NIS) being available.
  60.  
  61. However I don't have the time to do this myself, nor do I work for a Unix
  62. vendor.  So it's not likely I can directly cause this to happen.  (Heck,
  63. I don't even have time to construct an example of how this might look!)
  64.  
  65. Maybe this will inspire someone who can do something about it to do so.
  66.  
  67.  
  68. Why TCL?  Why not Perl?  Two reasons:
  69.  
  70. - TCL is much smaller and was designed from the beginning to be embedded
  71.   into programs.
  72.  
  73.   Perl is more like what I said about Basic-Plus above.  It's large
  74.   and while it can be embedded, it looks hard to do so.
  75.  
  76. - TCL is not subject to the GNU Public Liscense (GPV) while Perl is.
  77.   IMHO the GPV is not terribly conducive to writing & *selling*
  78.   commercial applications.  RMS sure paints a rosy picture of what Might Be
  79.   but I don't buy into its entirety.
  80.  
  81. <- David Herron <david@twg.com> (work) <david@davids.mmdf.com> (home)
  82. <-
  83. <- During the '80s Usenet's mantra was: "Not all the world's a VAX".
  84. <- During the '90s I hope it becomes:   "Not all the world's DOS (ick)".
  85.