Download presentation
Presentation is loading. Please wait.
1
Common Lisp! John Paxton Montana State University Summer 2003
2
Montana State University 10,689 Undergraduate Students 1,234 Graduate Students 1 Year Residence Expenses: $12,127 1 Year Out-of-State Expenses: $19,764 Founded in 1893 Operating Budget: $84,500,000. Faculty: 982
3
Montana State University
4
More Information Common Lisp the Language, 2 nd Edition Guy Steele Digital Press (1029 pages) 1990 1-5558-041-6
5
CLISP http://clisp.cons.org http://clisp.cons.org/propaganda.html
6
Propaganda Common Lisp is a general-purpose programming language and an AI language interactive a Lisp for professional use
7
Propaganda Common Lisp programs are easy to test (interactive) easy to maintain (depending on programming style) portable across hardware/OS platforms and implementations (there is a standard for the language and the library functions)
8
Propaganda Our Common Lisp CLISP needs only 2 MB of memory implements most of the ANSI standard, as well as many extensions can call your preferred editor is freely distributable
9
Propaganda Common Lisp provides clear syntax, carefully designed semantics several data types: numbers, strings, arrays, lists, characters, symbols, structures, streams etc. runtime typing: the programmer need not bother about type declarations, but he gets notified on type violations. many generic functions: 88 arithmetic functions for all kinds of numbers (integers, ratios, floating point numbers, complex numbers), 44 search/filter/sort functions for lists, arrays and strings
10
Propaganda Common Lisp provides automatic memory management (garbage collection) packaging of programs into modules an object system, generic functions with powerful method combination macros: every programmer can make his own language extensions
11
Propaganda Our Common Lisp CLISP provides an interpreter a compiler which makes execution of programs 5 times faster a source-level debugger which allows stepping through interpreted code, form by form all data types with unlimited size (the size need never be declared, the size of lists and arrays may be changed dynamically) integers of arbitrary length unlimited floating point number precision 800+ library functions and macros, 600+ of them written in C
12
What is Scheme? Developed by Guy Steele and Gerald Sussman. Dialect of Lisp. Meant to have exceptionally clear and simple semantics.
13
Scheme Example (define map-streams (lambda (f s) (cons (f (head s)) (delay (map-streams f (tail s)))) )
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.