1 / 17

About Lisp

About Lisp. Zang Zhida. Original purpose: A practical mathematical notation for computer programs. Not supposed to be a programming language. I nfluenced by the notation of Alonzo Church's lambda calculus. But quickly became the favored programming language for  AI.

sakura
Download Presentation

About Lisp

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. About Lisp ZangZhida

  2. Original purpose: Apractical mathematical notation for computer programs. Not supposed to be a programming language. Influenced by the notation of Alonzo Church's lambda calculus. But quickly became the favored programming language for AI.

  3. ---<<Revenge of the Nerds>>

  4. Lisp V.S. Fortran Lisp: a piece of theory, unexpectedly turned into a programming language. Fortran: developed intentionally as a programming language, but considered as a very low-level one. Trunks of two separate evolutionary trees: One rooted in math One rooted in machine architecture

  5. Lisp V.S. Others Lisp started out powerful, and over the next twenty years got fast. So-called mainstream languages started out fast, and over the next forty years gradually got more powerful, until now the most advanced of them are fairly close to Lisp. Close, but they are still missing a few things....

  6. What Made Lisp Different When it was first developed, Lisp embodied nine new ideas. 1. Conditionals 2. A function type 3. Recursion 4. Dynamic typing 5. Garbage-collection 6. Programs composed of expressions 7. A symbol type 8. A notation for code using trees of symbols and constants 9. The whole language there all the time

  7. Ideas 1-5 are now widespread.  Number 6 is starting to appear in the mainstream. Python has a form of 7, though there doesn't seem to be any syntax for it. Ideas 8 and 9 only became part of Lisp by accident. Turns out to be responsible for both Lisp's strange appearance and its most distinctive features.  More importantly Ideas 8 and 9 together mean that you can write programs that write programs.

  8. The more powerful the language, the shorter the program. Lisp versus C, for example, have been around 7-10x.

  9. Appendix: Power Common Lisp: Ruby: Perl5:

  10. JavaScript: Python:

  11. Java: Only works for integers!

  12. The end! Thanks for watching! Enjoy the following 3 days!

More Related