Avoid uses of "resp. signed"
[bpt/guile.git] / doc / ref / history.texi
CommitLineData
8680d53b
AW
1@c -*-texinfo-*-
2@c This is part of the GNU Guile Reference Manual.
0f7e6c56 3@c Copyright (C) 2008, 2010
8680d53b
AW
4@c Free Software Foundation, Inc.
5@c See the file guile.texi for copying conditions.
6
090d51ed 7@node History
8680d53b
AW
8@section A Brief History of Guile
9
090d51ed
AW
10Guile is an artifact of historical processes, both as code and as a
11community of hackers. It is sometimes useful to know this history when
12hacking the source code, to know about past decisions and future
13directions.
14
15Of course, the real history of Guile is written by the hackers hacking
16and not the writers writing, so we round up the section with a note on
17current status and future directions.
18
8680d53b 19@menu
090d51ed 20* The Emacs Thesis::
8680d53b 21* Early Days::
090d51ed
AW
22* A Scheme of Many Maintainers::
23* A Timeline of Selected Guile Releases::
24* Status::
8680d53b
AW
25@end menu
26
090d51ed
AW
27@node The Emacs Thesis
28@subsection The Emacs Thesis
29
30The story of Guile is the story of bringing the development experience
31of Emacs to the mass of programs on a GNU system.
32
33Emacs, when it was first created in its GNU form in 1984, was a new
34take on the problem of ``how to make a program''. The Emacs thesis is
35that it is delightful to create composite programs based on an
36orthogonal kernel written in a low-level language together with a
37powerful, high-level extension language.
8680d53b 38
090d51ed
AW
39Extension languages foster extensible programs, programs which adapt
40readily to different users and to changing times. Proof of this can be
41seen in Emacs' current and continued existence, spanning more than a
42quarter-century.
43
44Besides providing for modification of a program by others, extension
ca445ba5
AW
45languages are good for @emph{intension} as well. Programs built in
46``the Emacs way'' are pleasurable and easy for their authors to flesh
47out with the features that they need.
090d51ed
AW
48
49After the Emacs experience was appreciated more widely, a number of
50hackers started to consider how to spread this experience to the rest
51of the GNU system. It was clear that the easiest way to Emacsify a
52program would be to embed a shared language implementation into it.
8680d53b
AW
53
54@node Early Days
55@subsection Early Days
56
090d51ed
AW
57Tom Lord was the first to fully concentrate his efforts on an
58embeddable language runtime, which he named ``GEL'', the GNU Extension
59Language.
60
61GEL was the product of converting SCM, Aubrey Jaffer's implementation
62of Scheme, into something more appropriate to embedding as a library.
c4135077 63(SCM was itself based on an implementation by George Carrette, SIOD.)
090d51ed
AW
64
65Lord managed to convince Richard Stallman to dub GEL the official
66extension language for the GNU project. It was a natural fit, given
67that Scheme was a cleaner, more modern Lisp than Emacs Lisp. Part of
68the argument was that eventually when GEL became more capable, it
69could gain the ability to execute other languages, especially Emacs
70Lisp.
71
72Due to a naming conflict with another programming language, Jim Blandy
73suggested a new name for GEL: ``Guile''. Besides being a recursive
72b3aa56 74acronym, ``Guile'' craftily follows the naming of its ancestors,
090d51ed
AW
75``Planner'', ``Conniver'', and ``Schemer''. (The latter was truncated
76to ``Scheme'' due to a 6-character file name limit on an old operating
77system.) Finally, ``Guile'' suggests ``guy-ell'', or ``Guy L.
78Steele'', who, together with Gerald Sussman, originally discovered
79Scheme.
80
81Around the same time that Guile (then GEL) was readying itself for
82public release, another extension language was gaining in popularity,
83Tcl. Many developers found advantages in Tcl because of its shell-like
84syntax and its well-developed graphical widgets library, Tk. Also, at
85the time there was a large marketing push promoting Tcl as a
86``universal extension language''.
87
88Richard Stallman, as the primary author of GNU Emacs, had a particular
89vision of what extension languages should be, and Tcl did not seem to
90him to be as capable as Emacs Lisp. He posted a criticism to the
91comp.lang.tcl newsgroup, sparking one of the internet's legendary
92flamewars. As part of these discussions, retrospectively dubbed the
93``Tcl Wars'', he announced the Free Software Foundation's intent to
94promote Guile as the extension language for the GNU project.
95
96It is a common misconception that Guile was created as a reaction to
97Tcl. While it is true that the public announcement of Guile happened
98at the same time as the ``Tcl wars'', Guile was created out of a
99condition that existed outside the polemic. Indeed, the need for a
100powerful language to bridge the gap between extension of existing
101applications and a more fully dynamic programming environment is still
102with us today.
103
104@node A Scheme of Many Maintainers
72b3aa56 105@subsection A Scheme of Many Maintainers
090d51ed
AW
106
107Surveying the field, it seems that Scheme implementations correspond
108with their maintainers on an N-to-1 relationship. That is to say, that
109those people that implement Schemes might do so on a number of
110occasions, but that the lifetime of a given Scheme is tied to the
111maintainership of one individual.
112
113Guile is atypical in this regard.
114
72b3aa56 115Tom Lord maintained Guile for its first year and a half or so,
090d51ed
AW
116corresponding to the end of 1994 through the middle of 1996. The
117releases made in this time constitute an arc from SCM as a standalone
118program to Guile as a reusable, embeddable library, but passing
119through a explosion of features: embedded Tcl and Tk, a toolchain for
120compiling and disassembling Java, addition of a C-like syntax,
121creation of a module system, and a start at a rich POSIX interface.
122
123Only some of those features remain in Guile. There were ongoing
124tensions between providing a small, embeddable language, and one which
125had all of the features (e.g. a graphical toolkit) that a modern Emacs
126might need. In the end, as Guile gained in uptake, the development
127team decided to focus on depth, documentation and orthogonality rather
128than on breadth. This has been the focus of Guile ever since, although
129there is a wide range of third-party libraries for Guile.
130
131Jim Blandy presided over that period of stabilization, in the three
132years until the end of 1999, when he too moved on to other projects.
133Since then, Guile has had a group maintainership. The first group was
134Maciej Stachowiak, Mikael Djurfeldt, and Marius Vollmer, with Vollmer
135staying on the longest. By late 2007, Vollmer had mostly moved on to
1e32c6cd
NJ
136other things, so Neil Jerram and Ludovic
137@iftex
138Court@`es
139@end iftex
140@ifnottex
141Courtès
142@end ifnottex
143stepped up to take on the primary maintenance responsibility. Jerram and
144@iftex
145Court@`es
146@end iftex
147@ifnottex
148Courtès
149@end ifnottex
150were joined by Andy Wingo in late 2009.
090d51ed
AW
151
152Of course, a large part of the actual work on Guile has come from
153other contributors too numerous to mention, but without whom the world
154would be a poorer place.
155
156@node A Timeline of Selected Guile Releases
157@subsection A Timeline of Selected Guile Releases
158
159@table @asis
160@item guile-i --- 4 February 1995
161SCM, turned into a library.
162
163@item guile-ii --- 6 April 1995
164A low-level module system was added. Tcl/Tk support was added,
165allowing extension of Scheme by Tcl or vice versa. POSIX support was
166improved, and there was an experimental stab at Java integration.
167
168@item guile-iii --- 18 August 1995
169The C-like syntax, ctax, was improved, but mostly this release
170featured a start at the task of breaking Guile into pieces.
171
172@item 1.0 --- 5 January 1997
6515a666
AW
173@code{#f} was distinguished from @code{'()}. User-level, cooperative
174multi-threading was added. Source-level debugging became more useful,
175and programmer's and user's manuals were begun. The module system
176gained a high-level interface, which is still used today in more or
177less the same form.
090d51ed
AW
178
179@item 1.1 --- 16 May 1997
180@itemx 1.2 --- 24 June 1997
181Support for Tcl/Tk and ctax were split off as separate packages, and
182have remained there since. Guile became more compatible with SCSH, and
0f7e6c56 183more useful as a UNIX scripting language. Libguile could now be built as
090d51ed
AW
184a shared library, and third-party extensions written in C became
185loadable via dynamic linking.
186
187@item 1.3.0 --- 19 October 1998
188Command-line editing became much more pleasant through the use of the
189readline library. The initial support for internationalization via
0f7e6c56
AW
190multi-byte strings was removed; 10 years were to pass before proper
191internationalization would land again. Initial Emacs Lisp support
192landed, ports gained better support for file descriptors, and fluids
193were added.
090d51ed
AW
194
195@item 1.3.2 --- 20 August 1999
196@itemx 1.3.4 --- 25 September 1999
197@itemx 1.4 --- 21 June 2000
198A long list of lispy features were added: hooks, Common Lisp's
199@code{format}, optional and keyword procedure arguments,
200@code{getopt-long}, sorting, random numbers, and many other fixes and
0f7e6c56
AW
201enhancements. Guile also gained an interactive debugger, interactive
202help, and better backtraces.
090d51ed
AW
203
204@item 1.6 --- 6 September 2002
205Guile gained support for the R5RS standard, and added a number of SRFI
206modules. The module system was expanded with programmatic support for
207identifier selection and renaming. The GOOPS object system was merged
208into Guile core.
209
210@item 1.8 --- 20 February 2006
211Guile's arbitrary-precision arithmetic switched to use the GMP
6515a666
AW
212library, and added support for exact rationals. Guile's embedded
213user-space threading was removed in favor of POSIX pre-emptive
214threads, providing true multiprocessing. Gettext support was added,
215and Guile's C API was cleaned up and orthogonalized in a massive way.
090d51ed 216
9d832dda 217@item 2.0 --- April 2010
0f7e6c56
AW
218A virtual machine was added to Guile, along with the associated compiler
219and toolchain. Support for internationalization was finally
220reimplemented, in terms of unicode, locales, and libunistring. Running
221Guile instances became controllable and debuggable from within Emacs,
222via GDS and Geiser. Guile caught up to features found in a number of
223other Schemes: SRFI-18 threads, including thread cancellation,
224module-hygienic macros, a profiler, tracer, and debugger, SSAX XML
225integration, bytevectors, module versions, and partial support for R6RS.
090d51ed
AW
226@end table
227
228@node Status
229@subsection Status, or: Your Help Needed
230
231Guile has achieved much of what it set out to achieve, but there is
232much remaining to do.
8680d53b 233
090d51ed
AW
234There is still the old problem of bringing existing applications into
235a more Emacs-like experience. Guile has had some successes in this
236respect, but still most applications in the GNU system are without
237Guile integration.
8680d53b 238
090d51ed
AW
239Getting Guile to those applications takes an investment, the
240``hacktivation energy'' needed to wire Guile into a program that only
241pays off once it is good enough to enable new kinds of behavior. This
242would be a great way for new hackers to contribute: take an
243application that you use and that you know well, think of something
244that it can't yet do, and figure out a way to integrate Guile and
245implement that task in Guile.
8680d53b 246
090d51ed
AW
247With time, perhaps this exposure can reverse itself, whereby programs
248can run under Guile instead of vice versa, eventually resulting in the
249Emacsification of the entire GNU system. Indeed, this is the reason
250for the naming of the many Guile modules that live in the @code{ice-9}
251namespace, a nod to the fictional substance in Kurt Vonnegut's
252novel, Cat's Cradle, capable of acting as a seed crystal to
253crystallize the mass of software.
8680d53b 254
090d51ed
AW
255Implicit to this whole discussion is the idea that dynamic languages
256are somehow better than languages like C. While languages like C have
257their place, Guile's take on this question is that yes, Scheme is more
258expressive than C, and more fun to write. This realization carries an
259imperative with it to write as much code in Scheme as possible rather
260than in other languages.
8680d53b 261
090d51ed
AW
262These days it is possible to write extensible applications almost
263entirely from high-level languages, through byte-code and native
264compilation, speed gains in the underlying hardware, and foreign call
265interfaces in the high-level language. Smalltalk systems are like
266this, as are Common Lisp-based systems. While there already are a
267number of pure-Guile applications out there, users still need to drop
268down to C for some tasks: interfacing to system libraries that don't
269have prebuilt Guile interfaces, and for some tasks requiring high
270performance.
8680d53b 271
090d51ed
AW
272The addition of the virtual machine in Guile 2.0, together with the
273compiler infrastructure, should go a long way to addressing the speed
274issues. But there is much optimization to be done. Interested
275contributors will find lots of delightful low-hanging fruit, from
276simple profile-driven optimization to hacking a just-in-time compiler
277from VM bytecode to native code.
8680d53b 278
090d51ed
AW
279Still, even with an all-Guile application, sometimes you want to
280provide an opportunity for users to extend your program from a
281language with a syntax that is closer to C, or to Python. Another
282interesting idea to consider is compiling e.g. Python to Guile. It's
283not that far-fetched of an idea: see for example IronPython or JRuby.
8680d53b 284
0f7e6c56
AW
285And then there's Emacs itself. Though there is a somewhat-working Emacs
286Lisp language frontend for Guile, it cannot yet execute all of Emacs
287Lisp. A serious integration of Guile with Emacs would replace the Elisp
288virtual machine with Guile, and provide the necessary C shims so that
289Guile could emulate Emacs' C API. This would give lots of exciting
290things to Emacs: native threads, a real object system, more
090d51ed
AW
291sophisticated types, cleaner syntax, and access to all of the Guile
292extensions.
8680d53b 293
090d51ed
AW
294Finally, there is another axis of crystallization, the axis between
295different Scheme implementations. Guile does not yet support the
296latest Scheme standard, R6RS, and should do so. Like all standards,
297R6RS is imperfect, but supporting it will allow more code to run on
298Guile without modification, and will allow Guile hackers to produce
299code compatible with other schemes. Help in this regard would be much
300appreciated.