Download Common Lisp: An Interactive Approach (Principles of Computer by Stuart C. Shapiro PDF

By Stuart C. Shapiro

It is a first-class LISP booklet; probably the simplest. The booklet is brief (~240 pages), relaxing to learn and comprises an in depth reference of the language behind the publication. i'd certainly suggest analyzing this booklet sooner than advancing onto Paul Graham's "On Lisp".

Show description

Read Online or Download Common Lisp: An Interactive Approach (Principles of Computer Science Series) PDF

Best software books

Software Engineering Education: SEI Conference 1990 Pittsburgh, Pennsylvania, USA, April 2–3, 1990 Proceedings

This quantity represents a consultant to software program engineering schooling.

Functional Programming for Loosely-Coupled Multiprocessors (Research Monographs in Parallel and Distributed Computing)

Contemporary development in VLSI offers large parallelism yet basic function parallel pcs stay elusive because of constrained communications functionality. This ebook proposes a brand new excessive point method of programming that addresses the pragmatic factor of the way a computation is shipped throughout a laptop.

Empirical Foundations of Information and Software Science

The aim of the second one Symposium on Empirical Foundations of Informa­ tion and software program technological know-how (EFISS) was once, in essence, kind of like that of the 1st Symposium during this sequence, i. e. to discover matters and strategies of sci­ entific inquiry that are of primary and customary curiosity to info and software program sciences, and to map instructions of study that may enjoy the mutual interplay of those fields.

Internetware: A New Software Paradigm for Internet Computing

This publication provides a accomplished creation to Internetware, protecting elements starting from the basic rules and engineering methodologies to operational systems, caliber measurements and coverage and destiny instructions. additionally it is directions and various consultant real-world case reviews that function a useful reference source for software program engineers occupied with the improvement of Internetware purposes.

Additional info for Common Lisp: An Interactive Approach (Principles of Computer Science Series)

Sample text

6 (d) See what happens if you mistakenly leave out the parentheses, by typing > + 2 3 or > 2 + 3 to Lisp. 7 (i) Try the operators +, *, and / with one and with more than two arguments. 8 (i) Try each of the four arithmetic operators with no arguments. For example, + applied to no arguments is written (+). You should get two numeric answers, and two error messages. What is Common Lisp’s error message when you give a function too few arguments? 9 (i) Try = with zero and with one argument. 10 (i) Ask Lisp to evaluate (sqrt 4 9).

Notice that Lisp is an objectoriented language in the sense that it evaluates objects, not expressions. 1 In this chapter, you will get more experience interacting with the Lisp listener and distinguishing between objects and their printed representations. We will again use numbers, since you are already familiar with them. Numbers are one type of Common Lisp object, and there are several subtypes, including integers and floating-point numbers. Integers are used for whole numbers, such as 5 or 127.

1 (r) Try all the interactions of this chapter for yourself. 2 (i) Enter some short unquoted lists and note the error messages. We will discuss these errors later. 3 (i) Type a line containing just a right parenthesis. How does Lisp respond? 4 (i) Enter a quoted list with too many right parentheses. How does your Lisp respond? 5 (i) Enter some quoted lists that, by including carriage returns, extend over several lines. Carefully observe how Lisp behaves until the list is finally finished. Note the format in which Lisp prints lists.

Download PDF sample

Rated 4.83 of 5 – based on 35 votes