Book description
...it has a fresh view on the language and the examples in the later chapters are usable in your day-to-day work as a programmer. — Frank Buss, Lisp Programmer and Slashdot Contributor
If you're interested in Lisp as it relates to Python or Perl, and want to learn through doing rather than watching, Practical Common Lisp is an excellent entry point. — Chris McAvoy, Chicago Python Users Group
Lisp is often thought of as an academic language, but it need not be. This is the first book that introduces Lisp as a language for the real world.
Practical Common Lisp presents a thorough introduction to Common Lisp, providing you with an overall understanding of the language features and how they work. Over a third of the book is devoted to practical examples such as the core of a spam filter and a web application for browsing MP3s and streaming them via the Shoutcast protocol to any standard MP3 client software (e.g., iTunes, XMMS, or WinAmp). In other "practical" chapters, author Peter Seibel demonstrates how to build a simple but flexible in-memory database, how to parse binary files, and how to build a unit test framework in 26 lines of code.
Table of contents
- Title Page
- Dedication
- Contents at a Glance
- Contents
- About the Author
- About the Technical Reviewer
- Acknowledgments
- Typographical Conventions
- CHAPTER 1 Introduction: Why Lisp?
- CHAPTER 2 Lather, Rinse, Repeat: A Tour of the REPL
- CHAPTER 3 Practical: A Simple Database
- CHAPTER 4 Syntax and Semantics
- CHAPTER 5 Functions
- CHAPTER 6 Variables
- CHAPTER 7 Macros: Standard Control Constructs
- CHAPTER 8 Macros: Defining Your Own
- CHAPTER 9 Practical: Building a Unit Test Framework
- CHAPTER 10 Numbers, Characters, and Strings
- CHAPTER 11 Collections
- CHAPTER 12 They Called It LISP for a Reason: List Processing
- CHAPTER 13 Beyond Lists: Other Uses for Cons Cells
- CHAPTER 14 Files and File I/O
- CHAPTER 15 Practical: A Portable Pathname Library
- CHAPTER 16 Object Reorientation: Generic Functions
- CHAPTER 17 Object Reorientation: Classes
- CHAPTER 18 A Few FORMAT Recipes
- CHAPTER 19 Beyond Exception Handling: Conditions and Restarts
- CHAPTER 20 The Special Operators
- CHAPTER 21 Programming in the Large: Packages and Symbols
- CHAPTER 22 LOOP for Black Belts
- CHAPTER 23 Practical: A Spam Filter
-
CHAPTER 24 Practical: Parsing Binary Files
- Binary Files
- Binary Format Basics
- Strings in Binary Files
- Composite Structures
- Designing the Macros
- Making the Dream a Reality
- Reading Binary Objects
- Writing Binary Objects
- Adding Inheritance and Tagged Structures
- Keeping Track of Inherited Slots
- Tagged Structures
- Primitive Binary Types
- The Current Object Stack
-
CHAPTER 25 Practical: An ID3 Parser
- Structure of an ID3v2 Tag
- Defining a Package
- Integer Types
- String Types
- ID3 Tag Header
- ID3 Frames
- Detecting Tag Padding
- Supporting Multiple Versions of ID3
- Versioned Frame Base Classes
- Versioned Concrete Frame Classes
- What Frames Do You Actually Need?
- Text Information Frames
- Comment Frames
- Extracting Information from an ID3 Tag
- CHAPTER 26 Practical: Web Programming with AllegroServe
- CHAPTER 27 Practical: An MP3 Database
- CHAPTER 28 Practical: A Shoutcast Server
- CHAPTER 29 Practical: An MP3 Browser
- CHAPTER 30 Practical: An HTML Generation Library, the Interpreter
- CHAPTER 31 Practical: An HTML Generation Library, the Compiler
- CHAPTER 32 Conclusion: What's Next?
- INDEX
Product information
- Title: Practical Common Lisp
- Author(s):
- Release date: April 2005
- Publisher(s): Apress
- ISBN: 9781590592397
You might also like
book
Land of Lisp
Lisp is a uniquely powerful programming language that, despite its academic reputation, is actually very practical. …
book
Programming Clojure, 3rd Edition
Drowning in unnecessary complexity, unmanaged state, and tangles of spaghetti code? In the best tradition of …
book
Programming Algorithms in Lisp: Writing Efficient Programs with Examples in ANSI Common Lisp
Master algorithms programming using Lisp, including the most important data structures and algorithms. This book also …
book
The Go Programming Language
is the authoritative resource for any programmer who wants to learn Go. It shows how to …