[comp.archives] [comp.lang.misc...] Re: looking for interpreter / macro language facility

harrison@csl.dl.nec.com (Mark Harrison) (05/24/91)

Archive-name: x11/toolkits/tk/1991-05-23
Archive: sprite.berkeley.edu:tk.tar.Z [128.32.150.27]
Original-posting-by: harrison@csl.dl.nec.com (Mark Harrison)
Original-subject: Re: looking for interpreter / macro language facility
Reposted-by: emv@msen.com (Edward Vielmetti, MSEN)


In article <1991May22.153052.30224@wpi.WPI.EDU>
ajb@miles.WPI.EDU (Arthur J. Butler) writes:

>hi.  i am looking for advice and/or suggestions on an interpreter or
>macro language facility which i plan on adding to my application.  are
>there common languages which are used to add macro facilities to
>applications?

You might want to check out tcl, the Tool Command Language, by Prof.
John Ousterhout at UC Berkeley.  I have used it on several projects
now and am immensely pleased with the results.

It is distributed as part of the Tk release.  Here is the release
announcement for Tk 1.0:
------------------------------------------
This is to announce the first official release of the Tk toolkit
for X11.  Tk is philosophically similar to Xt, but it is based
around the Tcl language.  The use of Tcl simplifies the toolkit
and also provides a great deal of additional power:  many
applications can be written as Tcl scripts without writing any C
code at all, and Tcl provides a means for different applications
to communicate with each other.  A paper describing Tk appeared
in the Winter '91 USENIX Conference Proceedings, and is also
distributed as part of the release.

The release contains source code and documentation for the
following things:
    (1) The Tk toolkit.
    (2) The Tcl command language.
    (3) A Motif-like widget set.
    (4) A simple windowing shell called "wish".
    (5) A few demo scripts for wish.
All of the Tk and Tcl stuff is public and free.  As far as I'm
concerned, you can do anything you want with it.  If you build
applications based on Tk I'd be interested to hear what they are
and how Tk helped or hindered your application(s).  If you decide
Tk is a piece of junk, I'd be interested to hear your reasons.

Overall, I'd rate this release as about beta-level in quality:  I
hope that the code is pretty stable, but I expect to get a lot of
feedback about missing or undesirable features.  There's a complete
set of manual entries but no tutorial-style introduction yet.  I hope
that you won't have too much trouble getting started with Tk if you've
had previous experience programming X11.

Some of you may have discovered various pre-release versions of
Tcl over the last few months.  The new release supercedes the
pre-release versions and contains a number of bug fixes plus a few
additional features such as the "wm" command for dealing with window
managers.

The release is available for public FTP from sprite.berkeley.edu
(Internet address 128.32.150.27).  To retrieve the release, use
anonymous FTP to sprite (user "anonymous", password "guest") and
retrieve the file "tk.tar.Z" with the following set of commands:
                type image (try "type binary" if this command is rejected)
                get tk.tar.Z
What you'll get is a compressed tar file;  to get back the original
directory hierarchy, type the commands
                uncompress tk.tar.Z
                tar xf tk.tar
This will create a tk subdirectory with all the source files and
documentation.  There will be a README file in the subdirectory that
tells how to compile Tk and gives some hints about how to get started
with Tk.

If you can't get access to the release via the Internet, send me e-mail
and I'll try to find some other way to get the release to you (e.g.
1/2" tape or Exabyte-style 8mm videocassette).

I've also set up a mailing list for people interested in exchanging
e-mail about Tcl and Tk.  If you're interested in joining the list,
let me know.
------------------------------------------------
To subscribe to the mailing list, send a request to
tcl-admin@sprite.berkeley.edu.

-- 
Mark Harrison           | Note: harrison@ssd.dl.nec.com and
harrison@csl.dl.nec.com | necssd!harrison are not operating at
(214)518-5050           | present.  Please forward mail through the
                        | above address.  Sorry for the inconvenience.

-- comp.archives file verification
sprite.berkeley.edu
-rw-rw-r--  1 ouster   guest      822915 Apr 26 08:55 tk.tar.Z
found tk ok
sprite.berkeley.edu:tk.tar.Z

martelli@cadlab.sublink.ORG (Alex Martelli) (05/30/91)

Archive-name: x11/toolkits/tk/1991-05-24
Archive: sprite.berkeley.edu:tk.tar.Z [128.32.150.27]
Original-posting-by: martelli@cadlab.sublink.ORG (Alex Martelli)
Original-subject: Re: looking for interpreter / macro language facility
Reposted-by: emv@msen.com (Edward Vielmetti, MSEN)


ajb@miles.WPI.EDU (Arthur J. Butler) writes:
:hi.  i am looking for advice and/or suggestions on an interpreter or
:macro language facility which i plan on adding to my application.  are

Try looking into tcl, the Tools Command Language by John Ousterhout
(ouster@allspice.berkeley.edu); it is designed exactly for what you
are thinking of.  A paper on it was presented at the Winter 1990 
Usenix conference; it is also widely available for anon ftp (sorry,
I'm not on the Internet so I don't recall where it can be had, but
the usual 'archie' service can tell you that).  At present there are
two slightly diverging branches of the tcl family: Tcl 4.something,
enhanced by 'hackercorp' (Peter da Silva, and others) with many
modular extensions such as associative arrays and regular expressions;
and Tcl 5.something, without those enhancements but integrated with
Tk into a rich X Window System-ready environment.  From the needs
you express, I believe you'd be most interested in Tcl 4.

Other possibilities are Rexx, a nice language chosen for a similar
purpose in IBM's SAA and also dominating this field for Amiga boxes,
but I don't think you can get it for free; and others I have just
heard mentioned, such as Python.  The 'others' cathegory includes
lots of Lisps and Schemes, but I guess you could get more details
on those in comp.lang.{lisp.scheme}.
-- 
Alex Martelli - CAD.LAB s.p.a., v. Stalingrado 53, Bologna, Italia
Email: (work:) martelli@cadlab.sublink.org, (home:) alex@am.sublink.org
Phone: (work:) ++39 (51) 371099, (home:) ++39 (51) 250434; 
Fax: ++39 (51) 366964 (work only), Fidonet: 332/407.314 (home only).

-- comp.archives file verification
sprite.berkeley.edu
-rw-rw-r--  1 ouster   guest      822915 Apr 26 08:55 tk.tar.Z
found tk ok
sprite.berkeley.edu:tk.tar.Z

guido@cwi.nl (Guido van Rossum) (05/30/91)

Archive-name: unix/language/python/1991-05-28
Archive-directory: gatekeeper.dec.com:/pub/misc/python/ [16.1.0.2]
Original-posting-by: guido@cwi.nl (Guido van Rossum)
Original-subject: Re: looking for interpreter / macro language facility
Reposted-by: emv@msen.com (Edward Vielmetti, MSEN)

ajb@miles.WPI.EDU (Arthur J. Butler) writes:

>hi.  i am looking for advice and/or suggestions on an interpreter or
>macro language facility which i plan on adding to my application. [...]

>	within this macro language, i need to at least to
>	a) be able to call functions within my program.
>	b) be able to use control and loop constructs.
>	c) define and use simple variables.

>my program will be written in C/C++ to be run in a UNIX workstation
>environment. [...]

This was one of the purposes why I developed Python.  Python is an
interpreted programming language with high-level data types (strings,
lists, associative arrays; everything unlimited in size and garbage
collected) and provides all the features you request.  It is also
object-oriented.  Its syntax is intended to be as clear as possible,
to allow a quick start for casual users.

Python is normally used as a stand-alone interpreter, but hooks are
provided to add Python as an extension language to existing
C applications.  I have no experience with hooking it up to C++
applications yet.  I do know that Python is written quite portably.

Python is freely available.  It is still under development; I hope to
distribute a new version this summer.  If you try to do unusual things
with it, I am eager to hear about your experiences, and willing to
help hacking the code (or to point out where to start hacking).

See the attached availability sheet.

--Guido van Rossum, CWI, Amsterdam <guido@cwi.nl>
"The life of a Repo Man is always intense"


Availability of Python and STDWIN
=================================

Python and STDWIN were posted to alt.sources around february 1991.
They should be available from sites that archive this newsgroup, such
as wuarchive.wustl.edu.  I also post patches to this group.
(I will post the entire source to comp.sources.misc when I think the
products are a little bit more finished.)

Python and STDWIN are available from a number of ftp sites.
The * in file names is the version number, e.g., 0.9.5 (the last digit
is the patch level).

Current version numbers are 0.9.1 for Python and 0.9.5 for STDWIN.


Site		hp4nl.nluug.nl (IP address 192.16.202.2)
For whom	users in the Netherlands and the rest of Europe
Note		the same archive is also accessible via mcsun.eu.net
Directory	pub/windows
	File	stdwin*.tar.Z
Directory	pub/programming/languages
	Files	python*.tar.Z
		pythondoc[12].ps.Z
Directory	pub/comp/mac/compiler
	File	Python.hqx


Site		wuarchive.wustl.edu (IP address 128.252.135.4)
For whom	users in North America
Directory	usenet/alt.sources
Note		Raw alt.sources archive, see README there.  Grep -i the
		Index file for "stdwin" or "python".

		
Site		gatekeeper.dec.com (IP address 16.1.0.2)
For whom	users in North America
Directory	pub/misc
	File	stdwin*.tar.Z
Directory	pub/misc/python
	Files	python*.tar.Z
		pythondoc[12].ps.Z
		Python.hqx.Z

-- comp.archives file verification
gatekeeper.dec.com
total 781
-r--r--r--  1 root        78061 Mar 18 19:01 pythondoc2.ps.Z
-r--r--r--  1 root        72777 Mar 18 19:00 pythondoc1.ps.Z
-r--r--r--  1 root       129241 Mar 18 19:00 Python.hqx.Z
-r--r--r--  1 root       496849 Mar 18 19:00 python0.9.1.tar.Z
found python ok
gatekeeper.dec.com:/pub/misc/python/