1996-11-01 03:02:54 -05:00
|
|
|
Scsh is two
|
1995-10-31 22:00:55 -05:00
|
|
|
===========
|
1995-10-13 23:34:21 -04:00
|
|
|
|
1996-11-01 03:02:54 -05:00
|
|
|
Scheme shell version 0.1 was released to the Net exactly two years ago today,
|
|
|
|
Halloween 1994. We are pleased to release scsh version 0.4.3 to mark scsh's
|
1995-10-31 22:00:55 -05:00
|
|
|
first birthday. The new release has many bug fixes, improvements and new
|
|
|
|
features.
|
|
|
|
|
|
|
|
The text below gives a general description of scsh, instructions for
|
|
|
|
obtaining it, pointers to discussion forums, and a description of the
|
|
|
|
new features in release 0.4. To read this document with emacs outline
|
|
|
|
mode, say M-x outline-mode.
|
|
|
|
|
|
|
|
* What is scsh
|
|
|
|
==============
|
|
|
|
Scsh is a broad-spectrum systems-programming environment for Unix embedded
|
|
|
|
in R4RS Scheme.
|
|
|
|
|
|
|
|
** Scsh as a scripting language
|
|
|
|
-------------------------------
|
|
|
|
Scsh has a high-level process notation for doing shell-script like tasks:
|
|
|
|
running programs, establishing pipelines and I/O redirection. For example, the
|
|
|
|
shell pipeline
|
|
|
|
|
|
|
|
gunzip < paper.tex.gz | detex | spell | lpr -Ppulp &
|
|
|
|
|
|
|
|
would be written in scsh as
|
|
|
|
|
|
|
|
(& (| (gunzip) (detex) (spell) (lpr -Ppulp)) ; Background a pipeline
|
|
|
|
(< paper.tex.gz)) ; with this redirection
|
|
|
|
|
|
|
|
Scsh embeds this process notation within a full Scheme implementation.
|
1995-11-01 18:27:31 -05:00
|
|
|
The process notation is realized as a set of macro definitions, and is
|
1995-10-31 22:00:55 -05:00
|
|
|
carefully designed to allow full integration with standard Scheme code.
|
|
|
|
Scsh isn't Scheme-like; it is Scheme.
|
|
|
|
|
|
|
|
At the scripting level, scsh also has an Awk design, also implemented
|
|
|
|
as a macro that can be embedded inside general Scheme code.
|
|
|
|
|
|
|
|
** Scsh as a systems-programming language
|
|
|
|
-----------------------------------------
|
|
|
|
Scsh additionally provides the low-level access to the operating system
|
|
|
|
normally associated with C. With the exception of signal handlers, the current
|
1995-11-01 18:27:31 -05:00
|
|
|
release provides full access to Posix, plus important non-Posix extensions,
|
1995-10-31 22:00:55 -05:00
|
|
|
such as complete sockets support. "Complete Posix" means: fork, exec & wait,
|
|
|
|
sockets, full read, write, open & close, seek & tell, complete file-system
|
|
|
|
access, including stat, chmod/chgrp/chown, symlink, FIFO & directory access,
|
|
|
|
tty & pty support, file locking, pipes, select, file-name pattern-matching,
|
|
|
|
time & date, environment variables, and more.
|
|
|
|
|
|
|
|
In brief, you can now write Unix systems programs in Scheme instead of C.
|
|
|
|
For example, we have implemented an extensible HTTP server at MIT entirely
|
|
|
|
in scsh.
|
|
|
|
|
|
|
|
As important as full access to the OS is the manner in which it is provided.
|
|
|
|
Scsh integrates the OS support into Scheme in a manner which respects the
|
|
|
|
general structure of the language. The details of the design are discussed
|
|
|
|
in a joint MIT Lab for Computer Science/University of Hong Kong technical
|
|
|
|
report, "A Scheme Shell," also to appear in a revised format in the *Journal
|
|
|
|
of Lisp and Symbolic Computation." This paper is also available by ftp:
|
1995-11-01 15:49:33 -05:00
|
|
|
ftp://ftp-swiss.ai.mit.edu/pub/su/scsh/scsh-paper.ps
|
1995-10-31 22:00:55 -05:00
|
|
|
|
|
|
|
|
|
|
|
** Scsh is a portable programming environment
|
|
|
|
---------------------------------------------
|
|
|
|
Scsh is designed for portability. It is implemented on top of Scheme 48,
|
|
|
|
a byte-code-interpreter Scheme implementation. The Scheme 48 virtual machine
|
|
|
|
can be compiled on any system with a C compiler; the rest of Scheme 48 is
|
|
|
|
machine-independent across 32-bit processors. Scsh's OS interface is
|
|
|
|
also quite portable, providing a consistent interface across different
|
|
|
|
Unix platforms. We currently have scsh implementations for
|
1995-10-13 23:34:21 -04:00
|
|
|
AIX,
|
|
|
|
CXUX,
|
1995-11-01 18:27:31 -05:00
|
|
|
FreeBSD,
|
1995-10-13 23:34:21 -04:00
|
|
|
HP-UX,
|
|
|
|
IRIX,
|
|
|
|
Linux,
|
|
|
|
NetBSD,
|
|
|
|
NeXTSTEP,
|
|
|
|
Solaris,
|
|
|
|
SunOS,
|
|
|
|
Ultrix
|
1995-10-31 22:00:55 -05:00
|
|
|
Scsh code should run without change across these systems.
|
|
|
|
Porting to new platforms is usually not difficult.
|
|
|
|
|
1995-10-13 23:34:21 -04:00
|
|
|
|
1995-10-31 22:00:55 -05:00
|
|
|
* Obtaining and installing scsh
|
|
|
|
===============================
|
|
|
|
You can get a copy of scsh via anonymous ftp, from
|
1995-11-01 15:49:33 -05:00
|
|
|
ftp://ftp-swiss.ai.mit.edu/pub/su/scsh/scsh.tar.gz
|
1995-10-31 22:00:55 -05:00
|
|
|
The tar file includes a detailed manual and a paper describing
|
1995-10-13 23:34:21 -04:00
|
|
|
the design of the system.
|
|
|
|
|
|
|
|
For the lazily curious, we also have the manual separately available as
|
1995-11-01 15:49:33 -05:00
|
|
|
ftp://ftp-swiss.ai.mit.edu/pub/su/scsh/scsh-manual.ps
|
1995-10-13 23:34:21 -04:00
|
|
|
Just click 'n view.
|
|
|
|
|
1995-10-31 22:00:55 -05:00
|
|
|
You *should* be able to build scsh on the standard platforms with exactly five
|
|
|
|
commands: gunzip, tar, cd, ./configure, and make. The configure script figures
|
|
|
|
out the special flags and switches needed to make the build work (thanks to
|
|
|
|
the GNU project for the autoconfig tool that makes this possible).
|
|
|
|
|
1995-11-01 14:13:37 -05:00
|
|
|
After doing the make, you can start up a Scheme shell and try it out
|
|
|
|
by saying
|
1996-11-01 03:02:54 -05:00
|
|
|
./scshvm -o ./scshvm -i ./scsh/scsh.image
|
1995-11-01 14:13:37 -05:00
|
|
|
See the manual for full details on the command-line switches.
|
|
|
|
|
1995-10-31 22:00:55 -05:00
|
|
|
If it's harder than this, and your system is standard, we'd like to know
|
|
|
|
about it.
|
|
|
|
|
|
|
|
|
|
|
|
* Getting in touch
|
|
|
|
==================
|
|
|
|
There are two main ways to join in scsh-related discussion: the mailing-list
|
|
|
|
scsh@martigny.ai.mit.edu
|
|
|
|
and the netnews group
|
1996-11-01 03:02:54 -05:00
|
|
|
comp.lang.scheme.scsh
|
1995-10-31 22:00:55 -05:00
|
|
|
These two forums are exactly equivalent, being bi-directionally gatewayed
|
|
|
|
at MIT.
|
|
|
|
|
|
|
|
Bugs can be reported to
|
|
|
|
scsh-bugs@martigny.ai.mit.edu
|
|
|
|
|
|
|
|
If you do not receive the alt netnews hierarchy, or wish to join the mailing
|
|
|
|
list for other reasons, send mail to
|
|
|
|
scsh-request@martigny.ai.mit.edu
|
|
|
|
|
|
|
|
|
1995-11-01 15:52:51 -05:00
|
|
|
* The World-Wide What?
|
|
|
|
======================
|
|
|
|
|
|
|
|
We even have one of those URL things:
|
1996-11-01 03:02:54 -05:00
|
|
|
http://www-swiss.ai.mit.edu/scsh/
|
1995-11-01 15:52:51 -05:00
|
|
|
|
|
|
|
|
1995-10-31 22:00:55 -05:00
|
|
|
* New in this release
|
|
|
|
=====================
|
|
|
|
|
1996-11-01 03:02:54 -05:00
|
|
|
** Signal handlers
|
|
|
|
We finally have signal handlers; with this Scsh now has all of Posix.
|
1995-10-31 22:00:55 -05:00
|
|
|
|
1996-11-01 03:02:54 -05:00
|
|
|
** Static heap linker
|
|
|
|
The static heap linker converts a Scheme 48 bytecode image as
|
|
|
|
embodied in a .image file to a C representation. This C
|
|
|
|
code is then compiled and linked in with a virtual machine. One
|
|
|
|
pleasant side effect of this is reduced startup times. Another
|
|
|
|
good thing is that immutable parts of the image can be shared
|
|
|
|
between processes. see the script scsh/static.scm
|
1995-10-13 23:34:21 -04:00
|
|
|
|
1995-10-31 22:00:55 -05:00
|
|
|
** Etc.
|
1996-11-01 03:02:54 -05:00
|
|
|
Solaris 2 on i386 support, AIX 4 support, HP-UX now uses dld for
|
|
|
|
faster loading, a few small networking bug fixs, better error
|
|
|
|
reporting, bug fixes, ...
|
|
|
|
|
1995-10-13 23:34:21 -04:00
|
|
|
|
|
|
|
|
1995-10-31 22:00:55 -05:00
|
|
|
* Thanks
|
|
|
|
========
|
1995-10-13 23:34:21 -04:00
|
|
|
|
1996-11-01 03:02:54 -05:00
|
|
|
We would like to thank Michael Becker, Glenn Barry, Travis Broughton,
|
|
|
|
Charlie Conklin, Jin S. Choi, Brian F. Dennis, Sean Doran, Kevin
|
|
|
|
Esler, Lutz Euler, Lewis Girod, Rolf-Thomas Happe, David Hull, Steven
|
|
|
|
L. Jenkins, Patrick May, Tod Olson, Michel Schinz, Cotton Seed, Bill
|
|
|
|
Sommerfeld, Michael Sperber, Steven L. Tamm, Ed Tobin, Victor Zandy,
|
|
|
|
and others for bug reports, bug fixes, and comments that were
|
|
|
|
incorporated into this release. We really appreciate their help,
|
|
|
|
particularly in the task of porting scsh to new platforms.
|
1995-10-13 23:34:21 -04:00
|
|
|
|
1995-10-31 22:00:55 -05:00
|
|
|
We'd like to thank everyone else for their patience; this release seemed like
|
|
|
|
a long time coming.
|
1995-10-13 23:34:21 -04:00
|
|
|
|
1995-10-31 22:00:55 -05:00
|
|
|
Brought to you by the Scheme Underground scsh team. Go forth and write
|
|
|
|
elegant systems programs.
|
1995-10-31 04:18:15 -05:00
|
|
|
-Olin Shivers & Brian Carlstrom
|
1995-10-31 22:00:55 -05:00
|
|
|
Cambridge
|
1996-11-01 03:02:54 -05:00
|
|
|
31 October, 1996
|