开发者

Looking for good Lisp code to read [duplicate]

开发者 https://www.devze.com 2023-01-03 11:15 出处:网络
This question already has answers here: 开发者_高级运维Closed 10 years ago. Possible Duplicate: Examples of excellent Common Lisp code?
This question already has answers here: 开发者_高级运维 Closed 10 years ago.

Possible Duplicate:

Examples of excellent Common Lisp code?

I'm currently trying to get proficient in Common Lisp and to learn some of the tricks for writing compact, clear and beautiful code in it.

So, I want to know if you have any sources of good Common Lisp, preferably free and online but books are also OK.


The most admirable modern Common Lisp I've seen is in Edi Weitz's libraries. (Look within the outline area NerdStuff/Common Lisp/Code available on this server.) His CL-PPCRE library is worth studying in depth.


Large codebases can be schizophrenic, because there are often many contributors to the project. I would also say that contributors tend to want to add new features rather than re-write some code because it could be coded in a slightly more elegant way.

Paul Graham is attributed with good coding style. The link points to pages where his coding style in ANSI Common Lisp is commented upon.

Peter Norvig has also written about good Lisp coding style here.


Practical Common Lisp

Complete book (HTML) is free.

http://www.gigamonkeys.com/book/


Most open source Common Lisp (CL) environments ship with a lot of CL source code.

Take a look at CMUCL, CLISP and SBCL.

Cliki (the Common Lisp Wiki) has many open source CL packages.

Google Code Search is another large repository of CL code. Setting the language to "Lisp" will return both CL and non-CL files, like Emacs Lisp (.el) files. To narrow the results, set the Files text box to .lisp$ so only file names that end in .lisp are returned.


Paradigms of AI Programming. The code is online, though the book itself is not to be missed.

On Lisp is also very fine.

0

精彩评论

暂无评论...
验证码 换一张
取 消