Wednesday, October 28, 2009

Make Jira SOAP Service work with C#

Recentlly, I have a project about the JIRA. I need call the RPC SOAP Service to some work. At first, it took me lots of time to get it work in my Visual Studio. First I add the http://******?wsdl to the reference, but it did not work. Then I try to use the wsdl /language:CS http://*******?wsdl to generate the server stub code, still failed. After I google it, I finally got it.
  1. Access the http://******?wsdl from your browser
  2. File->Save as ***.wsdl
  3. Edit the file with notepad and remove $ in IssueServiceImpl$RemoteWorklogImpl
  4. From the VS command Line, wsdl ***.wsdl
  5. Mow a **.cs file is generated. You can add it to your project now.

Monday, October 19, 2009

Everyday word 20091019

elastic adj.有弹力的, 有弹性的可伸缩的, 灵活的 n.松紧带, 橡皮圈
ax n. 斧头 v. 削减
glid vt.把…镀金; 给…上金色, 使有金子般的色彩
hallway n. 走廊; 过道 门厅
den n.兽窝, 兽穴密室, 匪窝
crouch vi.屈膝, 蹲伏
howl n.嗥叫吼叫, 高声叫喊 vi.嗥叫, 咆哮吼叫, 哀号 vt.吼叫着说出
ferocity n.凶猛, 残暴
snap vt.拍…的快照 vt. & vi.猛地咬住(使某物)发出尖厉声音地突然断裂[打开, 关闭]厉声地说
tow n.拖, 拉, 牵引 vt.拖, 拉, 拽
rink n.溜冰场四轮旱冰鞋溜冰场
slab n.厚板, 平板, 厚片
balcony n.阳台(电影院等的)楼厅, 楼座
goggle n.护目镜, 防风镜, 防水镜 vi.睁大眼睛瞪视, (惊讶的)转动眼珠
plunge n.投身入水猛跌, 骤降 vi.颠簸 vt. & vi.(使)陷入

Select a faster mirror server for Ubuntu

I am installing a VM on my Vista. And I install an Ubuntu 9.04 on this VM too. Choosing a fast mirror server is very import for our work. Recentlly, I read a blog from http://www.ubuntugeek.com/how-to-select-fastest-mirror-in-ubuntu.html . This is a very great artical. Works very well for me. At first, I use the default mirror server in China. The network is bad, the downloading speed for package is about 10KB/s. Now, the speed became 50KB/s ,even more.






This simple procedure works very well for me. I suggest that you should have a try.

Sunday, October 18, 2009

Everyday word 20091018

wary adj.谨慎的; 小心翼翼的
lick n.舔(油漆等)一刷之量 vt.舔〈口〉打败 vt. & vi.(波浪)轻拍; (火焰)吞卷
sedate adj. 沉着的; 安详的; 平静的 vt. 使昏昏入睡, 使镇静
plankton n. 浮游生物
limestone n.石灰岩
granite n.花岗岩, 花岗石
pristine adj.原始状态的; 未受损的新鲜而纯净的, 清新的原始的; 远古的
precarious adj.依靠机会的; 不确定的不安全的; 不稳固的
bastard n.私生子坏蛋, 混蛋
pager n.寻呼机
adamant adj.坚定的, 坚强不屈的
lewd adj. 好色的, 淫荡的, 下流的
derail vt. & vi.出轨
sled n.雪橇,摘棉 v.乘雪橇,用雪橇运,用摘棉机摘
captor n. 捕捉者; 捕获者

Format In Common Lisp

Note From Practical Common Lisp
   Common Lisp’s FORMAT function is—along with the extended LOOP macro—one of the two Common Lisp features that inspires a strong emotional response in a lot of Common Lisp users. Some love it; others hate it.
   The first argument to FORMAT, the destination for the output, can be T, NIL, a stream, or a string with a fill pointer. T is shorthand for the stream *STANDARD-OUTPUT*, while NIL causes FORMAT to generate its output to a string, which it then returns.3 If the destination is a stream,the output is written to the stream. And if the destination is a string with a fill pointer, the formatted output is added to the end of the string and the fill pointer is adjusted appropriately.Except when the destination is NIL and it returns a string, FORMAT returns NIL.
    All directives start with a tilde (~) and end with a single character that identifies the directive.You can write the character in either upper- or lowercase. Some directives take prefix parameters, which are written immediately following the tilde, separated by commas, and used to control things such as how many digits to print after the decimal point when printing a floating-point number.
    The value of a prefix parameter can also be derived from the format arguments in two ways: A prefix parameter of v causes FORMAT to consume one format argument and use its value for the prefix parameter. And a prefix parameter of # will be evaluated as the number of remaining format arguments.The most general-purpose directive is ~A, which consumes one format argument of any type and outputs it in aesthetic (human-readable) form.The other two most frequently used directives are ~%, which emits a newline, and ~&, which emits a fresh line.The ~R directive, which I discussed in “Character and Integer Directives,” when used with no base specified, prints numbers as English words or Roman numerals.Another FORMAT directive that you’ve seen already, in passing, is the iteration directive ~{. This directive tells FORMAT to iterate over the elements of a list or over the implicit list of the format arguments.




Functions In Common Lisp

Notes From Practical Common Lisp        
A function’s parameter list defines the variables that will be used to hold the arguments passed to the function when it’s called. If the function takes no arguments, the list is empty, written as (). Different flavors of parameters handle required, optional, multiple, and keyword arguments. I’ll discuss the details in the next section. If a string literal follows the parameter list, it’s a documentation string that should describe the purpose of the function. When the function is defined, the documentation string will be associated with the name of the function and can later be obtained using the DOCUMENTATION function.
 To define a function with optional parameters, after the names of any required parameters, place the symbol &optional followed by the names of the optional parameters. A simple example looks like this:

(defun foo (a b &optional c d) (list a b c d))
 Of course, you’ll often want a different default value than NIL. You can specify the default value by replacing the parameter name with a list containing a name and an expression.
 it’s useful to know whether the value of an optional argument was supplied by the caller or is the default value. you can add another variable name to the parameter specifier after the defaultvalue expression. This variable will be bound to true if the caller actually supplied an argument for this parameter and NIL otherwise. By convention, these variables are usually named the same as the actual parameter with a “
-supplied-p” on the end.

    (defun foo (a b &optional (c 3 c-supplied-p))

 Lisp lets you include a catchall parameter after the symbol &rest. If a function includes a &rest parameter, any arguments remaining after values have been doled out to all the required and optional parameters are gathered up into a list that becomes the value of the &rest parameter.

To give a function keyword parameters, after any required, &optional, and &rest parameters you include the symbol &key and then any number of keyword parameter specifiers, which work like optional parameter specifiers.

    (defun foo (&key ((:apple a)) ((:box b) 0) ((:charlie c) 0 c-supplied-p))

        (list a b c c-supplied-p))
Whenever more than one flavor of parameter is used, they must be declared in the order I’ve discussed them: first the names of the required parameters, then the optional parameters, then the rest parameter, and finally the keyword parameters.Combining &optional and &key parameters yields surprising enough results that you should probably avoid it altogether.You can safely combine &rest and &key parameters, but the behavior may be a bit surprising initially.
All the functions you’ve written so far have used the default behavior of returning the value of the last expression evaluated as their own return value. This is the most common way to return a value from a function.

Pascal Costanza's Highly Opinionated Guide to Lisp



Pascal Costanza's Highly Opinionated Guide to Lisp


http://p-cos.net/lisp/guide.html

(v1.44, 28/5/2007, changelog.txt, old version)

Korean translation: http://www.cesian.com/lisp.kr.html

Turkish translation: http://ileriseviye.org/arasayfa.php?inode=costanza-lisp-guide.html



Copyright © 2002, 2004, 2005 Pascal Costanza. All rights reserved. Permission to copy, transmit, and store this work, unmodified and in its entirety, is granted.



You can use this document as an online reference or print it out. All links are represented as explicit URLs that will be retained when printed. Please send any kind of feedback to pc@p-cos.net.





Part I: Background



I always wanted to be a lumberjack!

- Monty Python



1. Why am I writing this introduction?





I have originally written this section in August 2002. The situation I describe below is not so current anymore, but in order to keep the feel of this guide I have decided not to change the tense.





My current situation, as of 2002, is as follows. I have worked with the Java programming language for the last seven years, mainly in projects in which extensions to the Java programming language have been developed. Before that I have mainly used languages from the Wirth family (mainly Modula-2 and Oberon), so in the beginning I was quite happy with some of the advantages that Java has over the latter languages.



During the past year I have come to realize that Java is still a very (indeed extremely) limited programming language, so I started to look at alternatives. Because of my involvement with the Feyerabend project (http://www.dreamsongs.com/Feyerabend/Feyerabend.html), Lisp naturally came about as one of those alternatives. (Richard Gabriel started the Feyerabend project, and he was also one of the people that kicked off the Common Lisp standardization in the beginning of the 1980's.)



Although there are a lot of nice programming languages available (for example, in alphabetical order: gbeta, Objective CAML, Python, Ruby), I have quickly got the impression that Lisp is, in some sense, the mother of all languages. The main reason for this statement is that Lisp includes a complete theory of computation by treating code and data uniformly. (This is more powerful than "just" being Turing-complete. For more information, see the section on the "Technical Background of Lisp" below.) This effectively means that there are no (conceptual) restrictions whatsoever in Lisp: if you can do something in any one language, you can also do it in Lisp. Furthermore, Lisp checks all types at runtime, so no static type system can get in your way.



You can rightfully generalize these observations and state the following: the mindset of Lisp asserts that expressive power is the single most important property of a programming language. Nothing should get in your way when you want to use that power. A programming language should not impose its view of the world on the programmer. It is the programmer who should be able to adapt the language to his/her needs, and not the other way around.



This has a great appeal to me and so I have decided that Lisp is the language of my choice. However, there is a drawback when you decide to start looking at Lisp more seriously: there are no really good introductions into the language available on the net that suited my needs - or at least I haven't found them. Of course, there are some introductions available, but either they are too low-level and try to teach programming for the very beginners, or they are too academic and only touch theoretically interesting topics. What I would have liked to see is an introduction that provides you with enough background information in order to understand the concepts and then gets you going as quickly as possible. (Something like "Lisp for experienced programmers".)



Because I haven't found anything I have had to work through the available stuff on my own. Now, I would like to present a summary of what I have found out in order to ease things for other people.





Note that the situation has dramatically improved as of 2005. Peter Seibel has written a book about Common Lisp which was published in April 2005. You can also find it online at http://www.gigamonkeys.com/book/. It takes a very pragmatic approach and presents examples that are of more interest to a "modern" audience, like spam filters, mp3 libraries and html generation. Apart from that, the Lisp is continually growing which has a very positive effect on the information available throughout several channels.





Why is this introduction called "highly opinionated"? Lisp is a complex language, or rather a family of languages. There cannot be "the one definitive guide" to Lisp. What I present here is what I would have liked to have seen in the first place. Other people probably prefer a different approach. I don't want to write an introduction that provides everything for everyone. I only want to present information that is useful for people like me. At least, this is the material that worked for me, so it might suit other people as well.



Especially, this is not something like "Common Lisp for Dummies in 21 days". You may need several iterations of the material presented here or elsewhere until you actually get the feel of the "Common Lisp experience". (...but I don't have to stress that you need a lot more than 21 days to master any serious language, right? ;)



2. General introduction



Lisp has a long history. It was invented in the 1950's and has continually developed and been improved over the decades. At several stages there have been various dialects of Lisp, so Lisp is indeed not a single language but rather a family of languages. (If you think of languages like C, C++, Objective C, Java and C# as being languages of the same "C-like" family of languages, then you'll be quite close.)



In the 1980's and 1990's, two main dialects established themselves as the only widely available and usable dialects: Common Lisp and Scheme. Scheme was invented in the 1970's by Gerald Jay Sussman and Guy L. Steele as a result of trying to understand object-orientation and incorporate it into Lisp. Scheme essentially introduced lexical closures (as a generalization of objects) and continuations (as a generalization of function calls and message passing) at the conceptual level, and "extreme" optimization of tail calls and tail recursions at the technical level. The nice thing about Scheme is that it is a beautiful diamond with properties that appeal mainly to academics who are looking for truth and beauty (i.e. minimality and orthogonality). However, it misses many practical things that you need in every-day programming and that would spoil the conceptual beauty.





See the following links if you are interested in explanations for some of the terms mentioned above.






At the end of the 1970's, several variants of Lisp were in use. Common Lisp started as a remedy for an exaggerated diversification - a unified version of Lisp with the goal of integrating the advantages of the several Lisps that existed at that time and avoiding the disadvantages. Furthermore, Common Lisp was a big step forward because it also incorporated the lessons learned from Scheme. (Lexical scoping made its way into Common Lisp. Continuations were not included because they turned out to be too complicated for practical use. Optimization of tail recursions didn't need to be standardized because it was a natural progression to use it as an implementation technique.)



So this gives a hint of what to look for when you consider using Lisp today. If you want to do practical "real-world" things you should choose Common Lisp. If you mainly want to do academic research and, for example, want to experiment with continuations, you could also opt for Scheme. Both languages are still in use today and have a strong support from their respective user communities. (There are also other variants of Lisp out there, like Emacs Lisp and Lush, but they are rather limited domain-specific dialects.)



I have decided to use Common Lisp for several reasons. Some of them will pop out during the course of this introduction. What I don't like about Scheme is that it is a "right-thing" language that has strong notions about how things should be done. Common Lisp seems to be far more liberal.



However, many publications and descriptions of Scheme also make sense for Common Lisp - for example, descriptions of what lexical closures are - so I have nevertheless included some references to Scheme in the following sections.



(In essence, my message is as follows: it doesn't really matter if you choose Common Lisp or Scheme, it only depends on your specific needs. So just let your gut feelings guide you. In fact, both languages are flexible enough to be used both in research and in the "real world". However, the bulk of my introduction deals with Common Lisp, so if you opt for Scheme you have to look for other places to find introductory material. See the links section below for some pointers. When you find out that you do not like the one alternative you have opted for, give the other one also a try.)



Perhaps this is also a good place to explain how people use the names Lisp and Scheme. In a broad sense, Lisp usually refers to a family of languages that includes Common Lisp, Scheme, older dialects (not in use anymore) like MacLisp, InterLisp, Franz Lisp, and also newer ones like Arc and Goo. In a narrow sense, Lisp currently refers to Common Lisp and Common Lisp only, which specifically excludes Scheme! How broad and/or narrow the name Lisp is used depends on the person using it, and perhaps on the context. There exist a broad spectrum of people, including those who would generally exclude Scheme even in the broad sense as one extreme and those who include Dylan and even Python as another. (Personally, I prefer to be liberal and try to be explicit when it is important in a specific context.)





A note on how to work through this material: I have tried to make it natural to read this text sequentially. Of course, you are free to skip sections and especially switch back and forth between part I and II. However, some of the later sections require you to have been exposed at least to some example Lisp code. The text includes enough pointers for that purpose.





3. "Executive summaries" of Common Lisp



A good one-page overview of what Common Lisp offers can be found at http://www.lisp.org/table/objects.htm. This description focusses on object-oriented features of CLOS (the Common Lisp Object System that is part of Common Lisp) but also gives a good summary of the functional and imperative features of Common Lisp.



The Common Lisp Language Overview by LispWorks is another good summary to be found at http://www.lispworks.com/products/lisp-overview.html.



4. Some first obstacles



Lisp's history is different from that of other programming languages, especially those of the Algol and C family. Therefore, the Lisp community has developed different notions and terminology at various levels. Here are some clarifications to avoid confusion.




  • Some of Lisp's built-in functions have seemingly funny names. For example, "car" is used to take the first element of a list, "cdr" to take the remaining (rest) elements. Lists can be built by the use of "cons", "mapcar" is used to iterate over a list, and so on. In particular, members of the Algol- and Wirth-family of languages usually question why the Lisp designers have not chosen to use more "natural" names, like "first", "rest", "foreach", and so on. At least, this was one of my first reactions to being exposed to these names (and I am obviously not the only one).


    Please forget about your preconceptions of naturalness - Lisp simply has a different culture, mainly for historical reasons. For example, you can also rightfully claim that English is a more natural language than, say, French if and only if you are a native speaker. It takes only about one or two days of actual coding in Lisp in order to get used to its nomenclature, and afterwards this whole thing essentially becomes a non-issue. Common Lisp also offers some alternative names, for example "first" and "rest" for "car" and "cdr", so you have a choice. However, you should prepare for reading code that still uses the traditional names.






  • The same holds for Lisp's seemingly excessive use of parentheses. It's just a matter of choosing a text editor with good support for Lisp-style indentation, and then you quickly forget about parentheses. You will seldomly worry about correct usage of syntax in Lisp. Please remember that due to their syntax, C-like languages and Pascal might also run into trouble when curly braces or begin/end keywords are used incorrectly in conjunction with control statements (like if, while, switch/case, and so on). However, if you are an experienced programmer in those languages, my guess is that you rarely have any problems with these issues. The same holds for Lisp syntax. It's just a matter of getting used to it.




  • Some people still have the notion that Lisp provides only lists as data structures. This notion comes from their understanding of very old dialects of Lisp, and from the fact that the name Lisp itself is short for "List Processing". In fact, Common Lisp offers everything that you have found useful in other programming languages, like structs (similar to C-like structs), arrays, true multi-dimensional arrays, objects (like in Smalltalk and Java, with fields and methods), strings, and so on.


    Similarly, some people still think that Lisp is an interpreted language. The truth is that there are hardly any implementations of Lisp out there that are purely interpreted systems. All serious implementations include compilers that produce machine code directly. So Lisp also usually distinguishes between compile-time and runtime. This difference becomes important for example in the case of macro programming.



    Still, there are some differences in this regard to so-called "compiled languages" like C and most Pascal dialects. Most of the time, you don't explicitly compile a Lisp program and execute it afterwards. Instead you interact with a Lisp development environment that compiles Lisp code on the fly. So Lisp is closer in spirit to a kind of just-in-time compiled language. Lisp has the same interactive nature as, for example, Smalltalk (which, to some extent, could rightfully be regarded as a member of the Lisp family of languages).



    The most important thing is that Lisp is a highly efficient programming language. Common Lisp vendors have worked very hard over the years to provide excellent performance.



    (Please note that modern IDEs for Java, like JBuilder, NetBeans, Eclipse and the like are steadily progressing towards the same level of interactivity as that of Lisp and Smalltalk - so obviously this is considered valuable even by the communities of Algol- and C-like languages.)



    A recent study of the performance characteristics of Lisp compared to Java and C++ can be found at the following URL: Erann Gat, Lisp as an Alternative to Java, http://www.flownet.com/gat/papers/. (If you have a problem with the amount of programming experience reported for the Java programmers in that paper, please look at http://www.flownet.com/gat/papers/ljfaq.html for further clarification.)




  • A term that is often used in descriptions of Lisp is "form". A form is a basic element of Lisp's syntax. Here is an example:


    (format t "Hello, World")



    This is a form that prints out "Hello, World" on the console. (The parameter "t" is the standard boolean value for "truth" in Common Lisp and is interpreted by the format function as a designator for standard output.) So the term "form" captures the notions of expressions and statements in other programming languages. (A Lisp purist would claim that Lisp doesn't have statements but only expressions, but this distinction doesn't matter in practice. In other programming languages, the border between statements and expressions is usually blurred by allowing for so-called "expression statements" - expressions whose values are discarded. You can do the same in Lisp, and Lisp even defines expressions that don't have values (or have "undefined values"). So in practice, Lisp and other languages make the same distinction and use similar ways to blur it, only with different "default behavior".)



    There are also things in Lisp which are called "special forms". In order to understand this term you have to know that in Lisp usually all forms are applications of functions. The example above is an application of the function "format" with the parameters "t" and "Hello, World". The following example would be an application of the function "foo" with parameters "bar" and "goo".



    (foo bar goo)



    However, there are forms in Lisp that don't denote function applications. They are either macros or "special forms". Special forms just denote a very restricted set of built-in operations. (They are treated "specially" by the Common Lisp implementation. Note that built-in functions and macros are not special forms!) It's always clear from the first element of a form if it is a function form, a macro form or a special form. The distinction between the various forms has some theoretical and also practical relevance, but you don't have to worry about these things upfront. You will notice the difference as soon as it becomes important, and then you will easily recognize the means to deal with it.




  • There has been, and to a certain extent still is, a big controversy in the Lisp community about small vs. big languages. This might sound confusing to people from other communities (at least this was the case for me). So what's the problem?


    A nice thing about Lisp is that it doesn't noticeably distinguish between built-in functions and user-defined functions. Here are two examples.



    (car mylist)



    (cure mylist)



    The function car is predefined in Lisp whereas cure does not have a standard definition, so it should be a user-defined function. The important point is that you can't tell the difference from the syntax. Compare this to the following example from the Java programming language.



    synchronized (lock) {

      beginTransaction(...);

      ...

      endTransaction(...);

    }



    The synchronized statement in Java is a built-in feature that allows you to write blocks of code that are synchronized with regard to a particular object. The transactional methods in this example also define a block of code that (presumably) respect transaction semantics, but you can immediately notice that this is not a built-in feature of the Java programming language. (Yes, Lisp offers block-oriented statements - sorry - forms; and yes, it's possible to define your own block-oriented forms that still look like built-in features of Lisp.)



    Now, in order to understand the small vs. big language issue you have to take this difference into account.



    So what does it mean to standardize something like Java, or similar programming languages? You first have to standardize the language and you also have to standardize at least some of the libraries. As stated above, there is a noticeable difference between built-in features and libraries in such languages, so these are clearly two different tasks.



    Not so in the Lisp world. Because there is no noticeable difference between built-in and library features, the standardization of libraries essentially becomes part of the language standardization (and in some sense, vice versa).



    So the issue of small vs. big languages boils down (in Algol- and C-like terms) to the issue of small vs. big libraries - and there is really nothing more to this topic!



    So this amounts to the following: Scheme is a small language in the sense that it only provides a very small standard library whereas Common Lisp is a big language because it provides a lot of useful and standardized features. However, if you look at the very core of both languages then they are more or less equivalent in size. (Furthermore, if you look at "serious" Scheme implementations they also provide feature-rich libraries that are, nevertheless, not standardized.)



    There are still conceptional differences that don't contribute to the small vs. big language issue. This is only to state that choosing between Scheme and Common Lisp is not just an issue of language size.




  • For example, you can sometimes read that Scheme is a "Lisp-1" and Common Lisp is a "Lisp-2" - or that Scheme is a one-cell system and Common Lisp is a two-cell system. What they're talking about is the fact that values of variables on the one hand and function definitions on the other hand are stored in the same way in Scheme whereas they are stored differently in Common Lisp. This isn't really relevant for practical purposes, because obviously you can write real programs in both languages. They both offer means to deal with the consequences of being either Lisp-1 or Lisp-2. You can safely ignore this issue until you are actually exposed to it, and then again you will quickly recognize how to deal with it.


    (A "Lisp-1" makes a certain functional programming style more convenient whereas a "Lisp-2" makes macro programming less error-prone and certain uses of object-oriented featuers more convenient. The exact details are a little bit hairy. If you would like to learn more about the technical implications you can read about them in detail in the following paper.






5. History of Lisp



It's remarkable that there is extensive information available about the whole history of Lisp, including Common Lisp and Scheme, in two very well-written papers. At some stages, these two papers even read like crime novels - highly recommended!





  • Guy L. Steele Jr. and Richard P. Gabriel: The Evolution of Lisp (ACM Conference on the History of Programming Languages II, 1992), somewhere in the middle of http://www.dreamsongs.com/Essays.html




The latter paper also includes a pretty complete bibliography on Lisp




(Please don't confuse these with other papers about the history of Lisp by Herbert Stoyan which I have found hard to read and in my opinion come to strange conclusions.)



6. Technical background of Lisp



As I stated before, Lisp includes a complete theory of computation by treating code and data uniformly - and this is one of the main features that makes Lisp so powerful. There are two papers I can recommend that give you a good explanation of what this actually means. (They deal with the concept of "meta-circular interpreters" - don't let the term frighten you, it's not as complicated as it sounds.) IMHO, you should at least read the first one to be able to really appreciate the power of Lisp.




...and, by the way, this article also gives a good description of the basic ("primitive") forms in Lisp.



If you like "The Roots of Lisp" and would like to learn more about meta-circular interpreters you can read a deep discussion and vision of how far you can get with them in the following paper. Alongside, you will learn useful facts about lexical closures, dynamic binding, and the like.





(This paper makes hints about a follow-up paper but it has never been written nor published. So don't look for it: try to tie up the loose ends as an exercise. ;)




7. Available implementations



You can find a list of Common Lisp implementations at http://wiki.alu.org/Implementation. I have taken a closer look at only some of these implementations. Many Lisp programmers prefer to use emacs or xemacs as a development environment for Lisp but I prefer more modern IDEs, so this has surely restricted my search space. (No need to argue, this is just an irrational, subjective matter of taste. If you are interested in setting up an IDE with emacs, go for SLIME at http://common-lisp.net/project/slime/. Peter Seibel also provides Lispbox, a pre-installed Emacs-based environment at http://www.gigamonkeys.com/lispbox/.)



Specific recommendations for Apple Macintosh (Mac OS X): LispWorks for Macintosh is an excellent IDE, with a Personal Edition that can be downloaded for free. Macintosh Common Lisp is also a very good IDE, but it is not so well integrated with Mac OS X as LispWorks is. The people at Digitool let you try out MCL for free for 30 days. Allegro Common Lisp, CLISP, CMU CL, ECL, OpenMCL and SBCL are available for Mac OS X but miss IDEs, which is essential for me. Franz, Inc. are about to provide an IDE with Allegro Common Lisp for Mac OS X some time in the future but have no fixed plans, so don't hold your breath.



I use both LispWorks for Macintosh and Macintosh Common Lisp on a regular basis. However, this is not a product endorsement - please check out your requirements on your own!



Part II: An eclectic self-study guide



NOBODY expects the Spanish Inquisition! Our chief weapon is suprise...surprise and fear...fear and surprise.... Our two weapons are fear and surprise...and ruthless efficiency.... Our *three* weapons are fear, surprise, and ruthless efficiency...and an almost fanatical devotion to the Pope.... Our *four*...no... *Amongst* our weapons.... Amongst our weaponry...are such elements as fear, surprise.... I'll come in again....

- Monty Python



In this part of the introduction I mainly give hints and references that should help you in getting to know the several facets of Common Lisp. (That is, I'm mainly talking about its standard library.)



8. Reference material



In every-day programming, you usually need some reference material to be able to look up function definitions, syntax clarifications, and so on. Some people prefer books and some prefer online material.



The current Common Lisp standard is specified as an ANSI standard that has been released in 1995 and is the definitive source for Common Lisp. However, it is hard to read because it mainly only gives the specs and, for example, doesn't provide good rationale.



At the beginning of the 1990's, Guy L. Steele edited the second edition of the book "Common Lisp the Language" that was a report on the then-current state of Common Lisp standardization, which is quite close to ANSI Common Lisp. (This edition superceded the first edition from the 1980's and so is generally referred to as CLtL2. The first edition - just CLtL - shouldn't be used anymore.) Although CLtL2 misses some features from ANSI Common Lisp - there are also some minor differences - it can be generally recommended as an introduction because it has the big advantage that it provides good descriptions beyond a mere specification. This greatly eases your understanding of the material. Still it is highly recommended to have the ANSI specs at hand in order to find out about the exact details of particular definitions. Furthermore, the ANSI document contains a very useful glossary of terms.



Fortunately, both ANSI Common Lisp and CLtL2 are available online as HTML (and PDF/PS) documents and can even be downloaded (including the HTML versions) for use on your computer. Here are the links.





(The editors of this "HyperSpec" stress that this is not the definitive specification but just derived from the official ANSI document. However, I guess that this is only a legal issue and that you can most probably count on the HyperSpec. In fact, it is generated from the same TeX sources.)







(Beware: CLtL2 has appendices about the so-called "Series" macros and "Generators and Gatherers" that implement lazy iterators. These features were not included in ANSI Common Lisp. I haven't found a rationale why they were included in CLtL2 and dropped again in ANSI Common Lisp, but my guess is that they were too experimental. The "Series" macros can be found http://series.sourceforge.net as a separate library, though.)





If you prefer printed matter, you have to put a little effort into getting some. CLtL2 seems to be out of print but you could try to obtain a used copy at Ebay. It's also still available at some (online) bookstores, like Amazon. You may also try to buy it at the publisher's website at http://www.bh.com/digitalpress/.



The ANSI document is available at http://global.ihs.com/, but I don't expect it to be particularly handy and/or useful because it has over 1000 pages. Furthermore at nearly $400 it's really expensive.



Paul Graham's "ANSI Common Lisp" (see below) is a good book but I don't find it useful for reference purposes. Usually I prefer printed specifications (like the Java language specification) but in the case of Common Lisp, the electronic versions are just fine.



9. The very basics



Paul Graham has written a good book on ANSI Common Lisp called "ANSI Common Lisp". It is a good read and fortunately, the author has made the first two chapters available on his homepage. I can especially recommend the second chapter because it quickly gives you a good hands-on experience of what programming in Common Lisp is like.




If you like his style you might consider buying the book by following the links on that page.



Another excellent beginner's book is Peter Seibel's "Practical Common Lisp" available as a book or online at http://www.gigamonkeys.com/book/.



Most of the information you need afterwards should be fairly easy to look up in CLtL2 and/or the ANSI specs. See below for some information that is a little harder to obtain IMHO.





In order to completely understand the remaining sections of part II you should have read either "The Roots of Lisp" (http://www.paulgraham.com/rootsoflisp.html) or "ANSI Common Lisp Chapter 2" (http://www.paulgraham.com/lib/paulgraham/acl2.txt) by now, or you should have been exposed at least to example Lisp code in some other ways.





10. More advanced basics



Sooner or later you will have to deal with the following issues that involve some minor issues.




  • Common Lisp offers possibilities to define functions that are able to deal with optional arguments, rest arguments, keyword arguments and arguments with default values in various combinations. The exact specifications for how to define these things can be found in CLtL2 in chapter 5.2.2 ("Lambda Expressions") and in the ANSI specs in chapter 3.4 ("Lambda Lists"), especially chapter 3.4.1 ("Ordinary Lambda Lists").


    (Lambda expressions are unnamed functions. Named functions are similar to procedures, functions and/or methods in other programming languages. Unnamed functions in Lisp are similar to blocks in Smalltalk or, to a certain extent, to anonymous inner classes in Java. See CLtL2, chapter 5.2 ("Functions") and its subchapters for clarification.)




  • In Common Lisp, standard output is usually performed by way of the format function. It is somewhat similar in spirit to printf in C (although I have to admit I don't have extensive knowledge about printf!). I haven't found a good general discussion about format in any paper so you basically have to read the respective entry in CLtL2.


    In CLtL2, format is described in chapter 22.3.3 ("Formatted Output to Character Streams"). The ANSI specs cover it in chapter 22.3 ("Formatted Output").




  • Strings are a little bit complicated in Common Lisp for the following reasons. Common Lisp has been standardized before the advent of Unicode - however, it was already clear that ASCII or some other limited set of characters is not enough. So the Common Lisp standard specifies a general means of dealing with strings that leaves some issues open to concrete implementations.


    Usually, this shouldn't be a problem but it can become one when you want to interact with applications written in other programming languages. Allegro Common Lisp, CLISP, LispWorks and SBCL offer Unicode support, other implementations don't (yet), as far as I know. (However, things are changing quickly in this regard, so check carefully what the state of affairs is for a given implementation. Of course you can implement Unicode support on your own - Lisp is flexible enough for these purposes. ;-)



    If you need to know more details about string support, consult CLtL2 and the ANSI specs in conjunction with the documentation provided with the Common Lisp implementation of your choice.




  • The handling of filenames differs from platform to platform. Again, Common Lisp has standardized a kind of framework that allows implementors to fill in the holes as required by the concrete operating system. So, again, you need to consult CLtL2, the ANSI specs and the docs of your Common Lisp implementation in order to get detailed information. CL-FAD is a library that can help to write portable code when dealing with files - see http://www.weitz.de/cl-fad/.



11. Macros



Common Lisp's macro feature is one of the highlights of this language - it is a very powerful means to write your own programming language constructs beyond mere functions.



Macros are usually considered an advanced topic because of their power and because they are seemingly hard to understand. However, I have found them to be conceptually quite simple and easy to write.



A very good description of macros and how to use them can be found in the book "On Lisp" by Paul Graham. It is out of print, but can be downloaded for free from the following URL.




Here are some cautions and notes by me.




  • Macros in Common Lisp are not like macros in C! As far as I understand, macros in C process sequences of characters and don't know anything about the structure of the programs they manipulate. In contrast, macros in Common Lisp operate on the very structure of programs. This is possible, again, because code and data are treated uniformly in Lisp. So, a program is a list of forms and, of course, macros can manipulate lists of forms like any other list.


    So if your instinctive reaction to the term "macro" is to back out please think twice - this might just be caused by prejudices developed in conjunction with other, more underdeveloped, programming languages. ;-)



    (Since I am not going to say anything about C macros anymore, I will use the term "macro" solely for Lisp macros from now on.)




  • Macros can be understood as functions which accept code as arguments and in turn generate new code. If an application of a macro is found at compile-time then the respective form is passed to the macro and its result replaces this very form. Compilation then continues with the new form. (This process is called "macro expansion".)


    So here is a macro that defines "cure" to be the same as car.



    (defmacro cure (argument)

       (list 'car argument))



    So whenever you see (cure a) this results in (car a) at compile-time - the result of the macro describes the actual code to be used instead of the macro application.



    (Please note that this example is given for illustrative purposes only. It is not a good example for making use of macros: "cure" would be better defined as a function.)



    What you can see here is the fact that macros are Turing-complete. All of Common Lisp's power can be used at compile-time in order to produce new code within macros. Macros can contain other macro expansions and function applications in order to determine their outcome and, of course, they can even use iteration and/or recursion, conditional statements, and so on. Even the resulting code may include further applications of macros, which leads to repeated "macro expansion" until the resulting code consists purely of function applications.



    So, effectively, macros in Common Lisp can be used for the same purposes that, for example, template meta-programming is used for in C++. Especially, they can be used for Generative Programming! (Generative Programming essentially deals with the definition of domain-specific languages whose compilers produce code for general-purpose programming languages.)




  • Macros are usually introduced in conjunction with the "backquote" syntax. I believe that this way of introducing macros makes things needlessly hard to understand. In fact, when you understand the previous note about Turing-completeness of macros then you already have a complete picture of what macros are at the conceptual level. However, the combination of macros and the backquote syntax can provide some valuable synergistic effects in practice. In the following I will introduce the backquote syntax, and later on show how it combines with macros.


    As stated above, most forms in Lisp are function applications. So (car mylist) extracts the first element of the list referred to by mylist. Sometimes you don't want to evaluate a form (you don't want to have it interpreted as a function application). For example, in (car (a b c)), (a b c) is by default not seen as a list of three elements, but again as a function a with parameters b and c. If you want to avoid the evaluation of (a b c) you have to use the special form "quote" as follows: (car (quote (a b c))). Now, this whole expression evaluates to "a" (the first element of the list (a b c)). Note that (quote ...) is not a function application but a special form (a built-in feature of Lisp, see above).



    Since quote is used quite often in Lisp, one can abbreviate it by using the quote syntax as follows: (car '(a b c)) means exactly the same as (car (quote (a b c))). By the way, quote can also be used to avoid the evaluation of a variable. Variables in Lisp are just names (as in other programming languages), so if you write down, for example, (car a) then the first element of the list referred to by the variable "a" is extracted. In order to avoid evaluation of variables you can write (quote a) or shorter, 'a, as you might have already guessed.



    Now, sometimes you need to create lists by evaluating several expressions and/or variables and then concatenating them into a list. The simplest way to do this in Lisp is as follows: (list a (car b) c) evaluates a, (car b) and c, and then concatenates the results into a single list. Sometimes only some of the parameters to the "list" special form need to be evaluated. This can be easily accomplished by quoting some of the parameters as follows: (list a (car b) 'c) evaluates a and (car b) but not c. Evaluation of 'c returns the symbol c itself, so the last element of the resulting list is guaranteed to be c.



    Sometimes the number of quoted (unevaluated) expressions is higher than the number of expressions that need evaluation. This is where the backquote syntax comes into play: it reverses the default behavior and regards everything as not to be evaluated. The exceptions need to be marked. So the following example: `(a b c ,(car d)) means exactly the same as (list 'a 'b 'c (car d)) - the symbols a, b and c are not evaluated, but the expression (car d) is. In the backquote syntax, the expressions/variables that need to be evaluated are marked with a comma. (Note that this can't be simulated with the quote syntax: if you type ' then the whole expression that follows is quoted and there is no syntax available to have parts of it evaluated as an exception.)



    So essentially the backquote syntax is merely a convenience feature that reverses the default behavior of what is evaluated and what is not.



    Now, let's recall the macro example given above.



    (defmacro cure (argument)

       (list 'car argument))



    From the discussion about the backquote syntax you can derive that this is equivalent to the following definition.



    (defmacro cure (argument)

       `(car ,argument))



    Now you should immediately realize why the backquote syntax is so useful in conjunction with macros: the body of the macro definition is now much closer to the code that it actually produces. (Remember that an application of (cure mylist) results in (car mylist) at compile-time.)



    By the way, the following is a very good paper about the history of the backquote syntax.







  • Macros are at the heart of another, more esoteric controversy between the Common Lisp and Scheme communities. Macros in Common Lisp might inadvertently capture variable names of the code that surrounds the places of their application. This sounds extremely dangerous but it isn't. Please see Paul Graham's "On Lisp" book for a detailed discussion of this topic - I won't go into the details here.


    Scheme offers the concept of so-called "hygienic macros" (or shorter, "hygiene") that avoids variable capture. The problem I see is that it is too easy to describe hygienic macros as an improvement of macros. The standard argument is as follows: "Common Lisp macros may capture variable names; hygiene avoids that; so programming becomes safer." This argument is somehow supported by the fact that hygiene resembles the concept of lexical closures to a certain extent.



    However, this is not the whole truth. Sometimes you actually need to capture variable names, and hygiene makes this harder than necessary. Furthermore, it is really trivial to avoid name capture in Common Lisp as Paul Graham shows in his book so there is no real issue to solve here in the first place.



    So my message is: hygiene is not necessary (and not provided) in Common Lisp because it's easy to write safe macros. Unless you're really interested in this issue at the theoretical level, you can safely ignore the concept of hygienic macros.



    (The situation in Scheme is a little bit different because Scheme stores variables and function definitions in the same way - it is a Lisp-1, see above. This means that accidental capture of function definitions is more likely to occur than in Common Lisp. Therefore, there is a higher need to solve this issue in that community. A good paper that describes possible macro hygiene problems is the following.




    It is a good exercise to try to understand why the examples given in that paper are not really pressing in a "Lisp-2", and therefore in Common Lisp, and what the situations could be in which you might actually want to capture names. See also the paper about the separation of function cells and value cells by Gabriel and Pitman above.)





12. Object-oriented features (CLOS)



The Common Lisp Object System (CLOS) is part of ANSI Common Lisp. However, since it was a late addition to the standard, some vendors have taken their time to implement it. Nowadays, almost all implementations offer support for CLOS. (Some vendors praise this as an outstanding feature of their respective Common Lisp implementation and I have found that confusing at some stages. Strictly speaking, a Common Lisp system cannot claim to implement the ANSI standard if it doesn't include a full implementation of CLOS.)



CLOS offers full object-orientation with classes, subclassing, multiple inheritance, multi-methods and before-, after- and around advices. This already goes very well beyond the features offered by other object-oriented programming languages.



Furthermore, a so-called "Meta-Object Protocol" (MOP) has been added that allows for inspection and manipulation of class hierarchies and method dispatch at runtime. The Meta-Object Protocol is not part of the ANSI Common Lisp standard, but has become a de-facto standard because most CLOS/MOP implementations were derived from the same sources. (CLOS and MOP are not separate entities, as for example the Java language and its reflection API, but the MOP can rather be understood as a proper superset of CLOS.)



An excellent overview of CLOS and the Meta-Object Protocol can be found in the following paper.




  • Linda G. DeMichiel and Richard Gabriel, The Common Lisp Object System: An Overview, ECOOP '87, Springer LNCS 276, freely downloadable at http://www.dreamsongs.com/CLOS.html (thanks to Richard Gabriel for making this available on my request)



A good rationale for some of the CLOS design decisions can be found in another paper.




  • Daniel G. Bobrow, Richard P. Gabriel, and Jon L. White, CLOS in context: The Shape of the Design Space, in: Andreas Paepcke (ed.), Object-Oriented Programming: The CLOS Perspective, MIT Press, 1993, freely downloadable at http://www.dreamsongs.com/CLOS.html



Jeff Dalton provides a brief guide to CLOS (without the MOP) at http://www.aiai.ed.ac.uk/~jeff/clos-guide.html. A more comprehensive guide is provided by Nick Levine at http://cl-cookbook.sourceforge.net/clos-tutorial/index.html. A reference for the MOP that is similar in style to the ANSI HyperSpec can be found at http://www.lisp.org/mop/. (Most of the external links on that page are broken but the reference itself works.)



Barry Margolin has given a good rule of thumb on comp.lang.lisp:




  • "There are a couple of MOP-related functions that managed to sneak into ANSI CL, such as ADD-METHOD and ENSURE-GENERIC-FUNCTION, but not much of this.


    A good way to tell whether something is part of basic CLOS or the MOP is whether any of its arguments are required to be class, method, or generic-function objects. Functions like MAKE-INSTANCE or CHANGE-CLASS don't fall into this category; even though they accept a class object, they also accept a class name in its place, and MOP functions generally don't provide this convenience layer."





An elaborate (and impressive) example of what you can do with the Meta-Object Protocol can be found in the following paper.




Some additional notes:




  • Multiple inheritance is usually regarded by some people to be a bad thing because it potentially leads to name conflicts that are difficult to sort out. Most programming languages offer some default behavior for dealing with such name conflicts, but more often than not this leads to unsatisfactory solutions. Common Lisp also defines a default strategy for dealing with name conflicts by imposing a topological order based on the order of the superclasses given by the programmer. One can, of course, easily come up with pathological examples where this approach does not yield useful results. So it seems that Common Lisp has a solution that is equally bad as those of other programming languages.


    However, this is compensated for in CLOS by means of user-defined "method combinations". A programmer can always explicitly define how methods are dispatched on a case-to-case basis. (Of course, this can even be modified at runtime.) So CLOS offers a very high level of flexibility to deal with naming conflicts. The topological sorting of superclasses should just be understood as a suggestion by the system.



    Naming conflicts caused by multiple inheritance are hard to deal with in any language for conceptual reasons. Again, Common Lisp opts for giving the programmer all the expressive power that he/she needs to deal with any situation that might arise. Compare this, for example, to the situation in Java where multiple inheritance of interfaces might lead to naming conflicts that cannot be dealt with at all.




  • The standard method combinations and the Meta-Object Protocol allow for programming in an aspect-oriented style. That's no coincidence - Gregor Kiczales, one of the inventors of Aspect-Oriented Programming, also co-designed CLOS. Don't wait for next week's version of AspectJ - you can already do everything with Common Lisp right now! ;-)



13. The LOOP facility



The so-called LOOP facility is another standard feature of Common Lisp that allows you to express iterations in a style that is similar in spirit to Algol/Wirth languages. Here is an example of a loop that prints ten stars.



(loop for i from 1 to 10

      do (format t "*"))



Again, CLtL2 is a good source of information. However, you will quickly notice that there is a vast number of possibilities and combinations of different styles. My impression is that it doesn't make sense to learn all the details because this would take far too long. The goal of the LOOP facility obviously was to allow for some kind of "natural" English-like expressions of iterations, and there are examples where this definitely eases the understanding of source code. (It is also a nice example of a domain-specific language embedded in Common Lisp for the domain of iteration.)



Here is another, more interesting example of the LOOP facility (due to Matthew Danish).



(defun fibonacci (n)

   (loop for a = 1 then (+ a b)

         and b = 0 then a ;  stepping in parallel

         repeat n

         collect b))



Seemingly, the intended way to use the LOOP facility is to just "guess" a way to express an iteration and see if it works. If it doesn't you can either look up the specifics in CLtL2 or the ANSI specs, or go back to a more Lispy way of expressing iterations and recursions (with do, dotimes, mapcar, and the like).



However, this is just my guess, I don't know about the actual intentions of the LOOP facility's designers. (Some claim that the details can be learned very quickly, but I still have to check this on my own.)





In the meantime, I have managed to learn LOOP and find it extremely useful. It takes some time but in my experience it pays off. Peter Seibel provides a good tutorial on LOOP in his book, but I still think my advice to guess and try it out is sufficient for most cases.





14. Conditions



Conditions are more or less what exceptions are for Java-like languages. However, conditions are much more powerful because, for example, condition handlers can direct the Lisp runtime system to just continue execution at the place where a condition was raised. This might seem strange at first when you are used to exception handling because, hey, an exception always means that there is a problem, doesn't it? Well, in Common Lisp conditions can also be signalled when there is no problem but, for example, multi-threaded code needs to be synchronized or other code needs to be notified of special events or whatever you might think of as useful. Furthermore, some conditions that signal real problems can be fixed on the fly, either interactively or programmatically.



So just as the models of most object-oriented programming languages turn out to be special cases of CLOS, Java's exception handling is again a special case of Common Lisp's far more general Condition system.



An excellent overiew of condition handling in Common Lisp, along with some interesting historical tidbits can be found in the following paper.




Some notes:




  • Common Lisp offers catch- and throw constructs as features that allow for so-called non-local exits from functions. These are not the analogues to the try-catch-finally triple in Java! Instead you use something like handler-case, handler-bind, and so on, for try-catch blocks and unwind-protect for try-finally blocks. Please see the above paper and the specs for details.




  • By the way, the Condition system could also be a basis for Aspect-Oriented Programming, without the need to go meta!



15. Advanced programming techniques



I have already mentioned Paul Graham's book "On Lisp" in conjunction with macro programming. This book deals with many other advanced programming techniques for Common Lisp, like creation of utility functions, higher-order functions, database access, simulation of Scheme-like continuations, multiple processes, non-determinism, parsing, logic programming, and object-orientation. (However, the bulk of that book deals with macros.)



I repeat the link for convenience.




16. Packages



Java has a nice module system that allows you to bundle classes into packages that are to some degree shielded from each other. Furthermore, the package structure is reflected in a matching file- and directory structure, possibly hidden in zip- or jar files. This allows for simple but detailed handling of classpaths that define where to look for classes that can be loaded by the Java runtime on demand.



Common Lisp offers a package system that allows for bundling definitions (including, of course, classes) as well. However, there is no mapping whatsoever to some kind of file- and/or directory structure. The package system in Common Lisp only deals with how definitions are arranged at runtime inside the Lisp environment.



In fact, Common Lisp's package system is more powerful than that because it more generally allows you to group symbols into packages. Because definitions in Common Lisp are always accessed via symbols, the ability to bundle definitions is just a special case of the more general package concept. Here is a nice example of what else you can do with packages in Common Lisp, given by Kent M. Pitman in comp.lang.lisp. (See http://makeashorterlink.com/?E3B823F91 for the complete message that includes the following example. In the citation below, some bugs are corrected that were spotted by Jeff Caldwell.)




  • "CL allows me, simply in the symbol data, to control whether I'm doing various kinds of sharing. For example, I can separate my spaces, as in:


    (defpackage "FLOWER")

    (in-package "FLOWER")



    (setf (get 'rose 'color) 'red)

    (setf (get 'daisy 'color) 'white)



    (defpackage "PEOPLE")

    (in-package "PEOPLE")



    (setf (get 'rose 'color) 'white)

    (setf (get 'daisy 'color) 'black)



    (defpackage "OTHER")

    (in-package "OTHER")



    (defun colors-among (things indicator)

      (loop for thing in things

            when (get thing indicator)

            collect it))



    (colors-among '(flower::rose people::rose flower::daisy)

                  'flower::color)

    => (FLOWER::RED FLOWER::WHITE)



    (colors-among '(flower::rose people::daisy people::rose)

                  'flower::color)

    => (FLOWER:RED)



    (colors-among '(flower::rose people::rose flower::daisy)

                  'people::color)

    => (PEOPLE:WHITE)



    (colors-among '(flower::rose people::daisy people::rose)

                  'people::color)

    => (PEOPLE:BLACK PEOPLE:WHITE)





So Common Lisp's package system deals with bundling of symbols and, hence, allows for bundling definitions as a "side effect", but does not deal with searching and loading of system parts at all. In Common Lisp terminology, the latter task is called "system construction".



So please don't get confused in this regard. Java's packages and Common Lisp's packages just happen to have the same name but are used for different purposes (with some overlaps).



Common Lisp only defines rudimentary support for system construction (the functions "load" and "require" - see CLtL2 and the ANSI specs). Please see the next section for some more information on this issue.



17. What is missing?



The ANSI Common Lisp standard was finalized in 1994 and published in 1995. That was at a time when Java was just around the corner but hadn't yet been made publicly available. That was also before the commercial rise of the Internet. It's clear that in the last seven years programming support has progressed in several directions. Unfortunately, the "official" standardization of Common Lisp has not continued in the meantime. Many things are not included in ANSI Common Lisp that are by now taken for granted in other, more fashionable programming languages. Among these features are: a proper module ("system construction") facility, Unicode support, a platform-independent GUI library, sockets and TCP/IP, XML, WebServices, and so on (add your favorite feature here).



However, the Lisp world hasn't stood still in the meantime - just because something is not specified in the ANSI Common Lisp standard this doesn't mean that it doesn't exist.



The two widely used system construction facilities are ASDF (http://www.cliki.net/asdf) and MK-DEFSYSTEM (http://www.cliki.net/mk-defsystem). Additionally, some Common Lisp implementations come with their own system construction support. Allegro Common Lisp, LispWorks and CLISP offer Unicode support. CLIM is a platform-independent GUI library that is supported by some vendors, including Franz, LispWorks and Digitool. Most serious Common Lisp implementations offer support for sockets and more advanced networking facilities. CLISP offers support for fastgci. CL-XML is a library for dealing with XML stuff.



So the basic message is: if you need some library, do a little research with Google and you might find something that you can use. Also check out some of the links provided below.



Part III: Links



The television screen is the retina of the mind's eye.

Therefore, the television screen is part of the physical structure of the brain.

Therefore, whatever appears on the television screen emerges as raw experience for those who watch it.

Therefore, television is reality, and reality is less than television.

- Professor O'Blivion in Videodrome, by David Cronenberg



Here is a list of useful and/or interesting links. Some, but not all of them have already been mentioned in the text above.



18. Personal websites




19. Common Lisp References




20. Background information




21. Repositories, link collections, software




22. Scheme links




23. Copyright issues




Acknowledgements



Many thanks (in alphabetical order) to Tom Arbuckle (http://www.sqrl.ul.ie/staff.html), Joe Bergin (http://csis.pace.edu/~bergin/) and Richard Gabriel (http://www.dreamsongs.com/) for providing lots of useful feedback on the draft version. Thanks to Seung Mo Cho for the Korean translation.



Further thanks for even more feedback go to Paolo Amoroso, Marco Antoniotti, Tim Bradshaw, Christopher Browne, Thomas F. Burdick, Wolfhard Buß, Jeff Caldwell, Bill Clementson, Matthew Danish, Biep Durieux, Knut Aril Erstad, Bob Felts, Frode Vatvedt Fjeld, John Foderaro, Paul Foley, Ron Garrett / Erann Gatt, Martti Halminen, Bruce Hoult, Iwan van der Kleyn, Arthur Lemmens, Barry Margolin, Nicolas Neuss, Duane Rettig, Dorai Sitaram, Aleksandr Skobelev, Thomas Stegen, Gene Michael Stover, Rafal Strzalinski, Raymond Toy, Sashank Varma and Espen Vestre. (Many of them are active participators in comp.lang.lisp.)



Valid HTML 4.0!