home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / altsrcs / 2 / 2339 < prev    next >
Internet Message Format  |  1990-12-28  |  3KB

  1. From: karl@sugar.hackercorp.com (Karl Lehenbauer)
  2. Newsgroups: alt.sources
  3. Subject: Tcl - a tool command language for Unix   INTRO
  4. Message-ID: <7299@sugar.hackercorp.com>
  5. Date: 18 Dec 90 08:38:04 GMT
  6.  
  7. Tcl is a freely redistributable string processing language and programming
  8. environment for Unix and Xenix.  It is well suited to doing the sort of
  9. programming tasks that are typically done as shell scripts and awk programs.
  10.  
  11. I have written several thousand lines and supervised the writing of nearly
  12. twenty thousand lines of Tcl code over the last few months, and my experience
  13. has been that programmers are enthusiastic about programming in Tcl, that they
  14. are extraordinarily productive when using it, and that they come up to speed
  15. on it very quickly -- thanks to its simple syntax, likeness to familiar Unix
  16. and C language constructs, built-in programming environment, on-line help
  17. facility, and thorough documentation, programmers have been able to learn
  18. the language and be writing significant programs in it in only one day.
  19.  
  20. In my experience, Tcl has typically outperformed large shell scripts running
  21. the usual mix and density of expr, sed, grep, awk, sort, etc, by a factor of
  22. ten or more.  The execution time of one shell script at a customer site shrank
  23. from an estimated 200 hours (they had never allowed it to run to completion)
  24. to a little over five hours.
  25.  
  26. Tcl has also proven to be very useful when linked with an application to
  27. provide a debugging environment during development.  It is a simple matter
  28. to drop a Tcl interpreter into a program under development and to write a few
  29. C routines whereby you can pass parameters from Tcl, call some piece of your
  30. application, collect the results and return them back to Tcl.  This really
  31. helps with testing and prototyping.  Also, Tcl command-controlled debugging
  32. versions of memory allocation and free routines are included.  These routines
  33. can greatly assist in finding bugs in your C code where your code writes past
  34. the end or before the beginning of an allocated block.  They can also trace
  35. allocations and frees by source file name and line number, break on the Nth
  36. allocation, and more.  I think you will find that the endeavor of setting up
  37. an application to include Tcl for debugging pays off the very first time
  38. you need to find such a bug.
  39.  
  40. You can do a lot more with Tcl than what I've described here.  Some further
  41. uses are described in the README document that comes with this release.
  42.  
  43. Mark Diekhans, Peter da Silva, Jordan Henderson and I built the Tcl programming
  44. language and environment included in this package on top of the embeddable Tcl
  45. interpreter created at the University Of California at Berkeley.  All source
  46. code to the Tcl interpreter and our extensions are included in this package and
  47. may be used for any purpose without license or royalties of any kind, subject
  48. only to the requirement that Berkeley's copyright and our copyright messages
  49. and liability disclaimers not be removed.
  50.  
  51. Here's one from us.
  52.  
  53. Karl Lehenbauer (uunet!sugar!karl)
  54. December 16th, 1990
  55.  
  56. Following this message will be the README file, then the Tcl release as
  57. a 12-part uuencoded, compressed cpio archive.  We realize this will
  58. cause trouble for a few people, but see our rationale in the README
  59. file.  We'll do a shar archive for the formal release.
  60.  
  61. -- 
  62. -- uunet!sugar!karl
  63. -- Usenet access: (713) 438-5018
  64.