Download PDF by Paul Graham: On Lisp: advanced techniques for Common Lisp

By Paul Graham

ISBN-10: 0130305529

ISBN-13: 9780130305527

Written by way of a LISP specialist, this is often the main complete instructional to be had at the complicated LISP positive aspects and programming strategies. It indicates the best way to application within the bottom-up kind that's perfect for LISP programming, and contains a exact, sensible selection of LISP programming suggestions that indicates tips to make the most of the languages layout for hugely effective programming in a large choice of (non-artificial intelligence) applications.* makes use of an cutting edge bottom-up method of programming in LISP - an technique that's supreme to LISP and particularly potent in facing surprisingly huge or tricky courses. * bargains an entire educational on helpful LISP macros and LISP macro programming suggestions, together with functional suggestion on while - and whilst no longer - to exploit macros. * indicates how one can positioned Lisp macros to paintings in quite a few actual functions. * explains what makes LISP diverse from different languages - find out how to do in LISP what cant be performed - or performed simply - in different languages. * starts with finished chapters on capabilities and indicates tips on how to use features to increase LISP. * covers embedded languages, displaying tips to use LISP for a database software and the way to construct a programming surroundings on most sensible of LISP. * covers object-oriented programming and complicated info constructions. * includes hundreds of thousands of operating examples - starting from unmarried expressions to a operating Prolog implementation.

Show description

Read or Download On Lisp: advanced techniques for Common Lisp PDF

Similar programming: programming languages books

New PDF release: Thinking in Java (3rd Edition) (One-Off)

I do not like desktop books that deal with you love a child: you must struggle through chapters and chapters prior to the writer begins demanding you. no longer this one. TIJ reads like a talk, strikes speedy and is often marvelous you with attention-grabbing programming snippets. Its really loads of enjoyable to learn and hard to place down!

Read e-book online SCJP 100 Success Secrets: Success with The Sun Certified PDF

Addresses the pinnacle a hundred consultancy & schooling discussion board questions, with assistance & luck components on investigating, comparing, reaching & capitalising on sunlight qualified Java Programmer (SCJP) IT certification.

Additional info for On Lisp: advanced techniques for Common Lisp

Sample text

The cost of writing or maintaining a program increases with its length. ◦ All other things being equal, the shorter program is the better. From this point of view, the writing of utilities should be treated as a capital expenditure. By replacing find-books with the utility find2, we end up with just as many lines of code. But we have made the program shorter in one sense, because the length of the utility does not have to be charged against the current program. It is not just an accounting trick to treat extensions to Lisp as capital expenditures.

The function remove-if-not, which collects all the elements of a list satisfying some predicate, was defined by individual programmers for years before it became a part of Common Lisp. 1 BIRTH OF A UTILITY 41 Learning to write utilities would be better described as learning the habit of writing them, rather than the technique of writing them. Bottom-up programming means simultaneously writing a program and a programming language. To do this well, you have to develop a fine sense of which operators a program is lacking.

The rotatef macro rotates the values of any number of generalized variables—that is, expressions you could give as the first argument to setf. When applied to just two arguments, the effect is to swap them. 2 shows a function which returns reversed lists. With good-reverse, we get the reversed list as the return value; the original list is not touched. 2: A function to return reversed lists. It used to be thought that you could judge someone’s character by looking at the shape of his head. Whether or not this is true of people, it is generally true of Lisp programs.

Download PDF sample

On Lisp: advanced techniques for Common Lisp by Paul Graham


by Mark
4.0

Rated 4.81 of 5 – based on 20 votes