paip-lisp
cl-cookbook
Our great sponsors
paip-lisp | cl-cookbook | |
---|---|---|
65 | 50 | |
6,988 | 887 | |
- | 1.6% | |
0.8 | 8.8 | |
5 months ago | 8 days ago | |
Common Lisp | JavaScript | |
MIT License | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
paip-lisp
-
Ask HN: Guide for Implementing Common Lisp
PAIP by Peter Norvig, Chapter 23, Compiling Lisp
https://github.com/norvig/paip-lisp/blob/main/docs/chapter23...
-
Towards a New SymPy
Sounds like a great project idea to make a toy demo of this direction you'd like to see. Maybe comparable to https://github.com/norvig/paip-lisp/blob/main/docs/chapter15... and https://github.com/norvig/paip-lisp/blob/main/docs/chapter8.... which are a few hundred lines of Lisp each, but do enough to be interesting.
-
A few newbie questions about lisp
You could look into Paradigms of AI Programming by Peter Norvig which might interest you regardless of Lisp content.
- Peter Norvig – Paradigms of AI Programming Case Studies in Common Lisp
-
A lispy book on databases
Origen: Conversación con Bing, 4/4/2023(1) gigamonkey/monkeylib-binary-data - GitHub. https://github.com/gigamonkey/monkeylib-binary-data Con acceso 4/4/2023. (2) paip-lisp/chapter4.md at main · norvig/paip-lisp · GitHub. https://github.com/norvig/paip-lisp/blob/main/docs/chapter4.md Con acceso 4/4/2023. (3) bibliography.md · GitHub. https://gist.github.com/gigamonkey/6151820 Con acceso 4/4/2023.
-
sbcl and Let Over Lambda
Worth mentioning it is on github with corrected code (I've already run into mistakes in the printed version) https://github.com/norvig/paip-lisp
-
The Janet Language
Reading Peter Norvig's PAIP (https://github.com/norvig/paip-lisp) in 1998 totally blew my mind. It completely changed how I think about programming in every other language I use(d). I love it still, and always will. And yes, my experience is the same as yours: learning lisp made me a better programmer in every other language I use (especially -- but not only -- Python).
The simplicity and symmetry of the syntax is a big part of that love for me. Being able to manipulate lisp code as lisp data, using the full power of the language to do so, is just brilliant.
Janet looks lovely! Looking forward to the book.
-
How exactly would you go about writing a program to simplify algebraic expressions?
PAIP has some chapters on this. Here is one: https://github.com/norvig/paip-lisp/blob/main/docs/chapter8.md
-
A Few Examples of Lisp Code Typography
For Common Lisp, there are several free books available:
- Practical Common Lisp (aimed at people who know how to program in a more mainstream language already) [1]
- Paradigms in Artificial Intelligence Programming (my personal favorite) [2]
- Common Lisp: A Gentle Introduction to Symbolic Computation (aimed at absolute beginners of programming) [3]
I highly recommend the r/lisp reddit community. Reddit as a platform has its issues, but the (Common) Lisp community there is very responsive and very helpful.
Lastly, you might be interested in checking out a game written entirely in Common Lisp, to be released imminently on Steam. It's called Kandria, and it's effectively 100% Lisp. [4]
[1] https://gigamonkeys.com/book/
[2] https://github.com/norvig/paip-lisp
-
Common Lisp vs Racket
https://github.com/norvig/paip-lisp - Peter Norvig's Paradigm's of AI Programming
https://github.com/norvig/paip-lisp/search?l=Markdown&q=defm... - all references to defmacro in the markdown files
Chapter 3 shows a simple macro, just adding a while loop to the language.
Chapter 9 shows some more complex ones, including a with- macro and a grammar compiler macro.
Chapters 11 and 12 show the development of a Prolog implementation in CL using defmacro to aid in compilation again in Chapter 11.
Chapter 12 shows adding an OO system to the language. Technically not needed with CLOS, but a good demonstration of what can be done with macros.
There are other examples (why I included that search link). Macros let you change the language in ways large and small. Many uses could probably be replaced with functions, though you'd end up having to throw a bunch of quotes about or closures in order to delay processing things.
cl-cookbook
-
Gamedev in Lisp. Part 1: ECS and Metalinguistic Abstraction
> the problem with Lisp is that it's sorta bundled with Emacs
What's the problems with Alive, SLT, Slyblime, and Vlime? I mean, I use Emacs, but I was using Emacs before getting into Scheme and CL anyway.
> Every website that teaches Lisp is in ugly HTML+CSS-only style
I dunno, I feel like the Community Spec (<https://cl-community-spec.github.io/pages/index.html>) and the Cookbook (<https://lispcookbook.github.io/cl-cookbook/>) are fine.
> I like the philosophy of (s-exp) but modern lisps have ruined its simplicity for me by introducing additional bracket notations [like this].
Yes, that additional notation is a terrible blight on the perfection that is S-expressions, I wholeheartedly agree.
-
Common Lisp: An Interactive Approach (1992) [pdf]
check out the editor section, there's more than Emacs these days: https://lispcookbook.github.io/cl-cookbook/editor-support.ht...
- https://github.com/CodyReichert/awesome-cl for libraries
- https://www.classcentral.com/report/best-lisp-courses/#ancho...
- a recent overview of the ecosystem: https://lisp-journey.gitlab.io/blog/these-years-in-common-li... (shameless plug, on HN: https://news.ycombinator.com/item?id=34321090)
-
A few newbie questions about lisp
Q4: the Cookbook should get you straight to the point: build a website, web scraper, DB access, reference of data structures… https://lispcookbook.github.io/cl-cookbook/
-
How to Understand and Use Common Lisp
It's a good book!
Modern companions would be:
- the Cookbook: https://lispcookbook.github.io/cl-cookbook/ (check out the editors section: Atom/Pulsar, VSCode, Sublime, Jetbrains, Lem...)
- https://github.com/CodyReichert/awesome-cl to find libraries
Also:
- https://stevelosh.com/blog/2018/08/a-road-to-common-lisp/
- https://news.ycombinator.com/item?id=34321090 2022 in review
Seems like a nice book. I like that it gets into the fundamental stuff like setq, cond, let, list, cons, etc. quickly enough in the 3rd chapter. In my opinion, the sooner these concepts are introduced in a book, the better.
I have also found from my first hand experience is that a programming language is best learnt by diving straight into it and writing small software that you care about with it.
When I began learning serious computer programming two decades ago, it was pretty much necessary to buy a good book and read as much of the book as possible chapter by chapter. For example, the first programming language book that I read was K&R and I read that cover to cover. It was quite formative in my journey of computer programming. It took me a long time to start writing useful software with the knowledge but when I did begin writing software, I had a pretty thorough knowledge of C.
I have come to realise that these days, it is not uncommon for aspiring programmers to jump straight into developing a software with a programming language determined by requirements. Not everyone had the time to read a book cover to cover. In fact, I myself learnt Python by jumping straight into developing tools that I needed for myself with it.
If someone wants to similarly get started developing tools with Common Lisp these days, I would suggest https://lispcookbook.github.io/cl-cookbook/ . It is a great resource to look up common recipes for common tasks.
-
Peter Norvig – Paradigms of AI Programming Case Studies in Common Lisp
https://leanpub.com/lovinglisp -- this one is great, and the first thing I recommend
https://lispcookbook.github.io/cl-cookbook/ -- also great and up to date
https://awesome-cl.com/ -- for anything else.
-
Good short documentation for CL functions (etc.) available?
For more beginner-friendly, I suggest P. Siebels Practical Common Lisp or The CL Cookbook. Both of those should be available in Emacs info format! If authors are lurking in here :-)
- Common Lisp and Music Composition
-
Debugging Lisp: fix and resume a program from any point in stack 🎥
the code snippet used for the example is here: https://github.com/LispCookbook/cl-cookbook/pull/472
-
How to learn Lisp?
Lisp Cookbook is a pretty good supplement (to PCL or otherwise). Works well as a reference, and small bits make it easy to digest.
What are some alternatives?
mal - mal - Make a Lisp
30-days-of-elixir - A walk through the Elixir language in 30 exercises.
Crafting Interpreters - Repository for the book "Crafting Interpreters"
coalton - Coalton is an efficient, statically typed functional programming language that supercharges Common Lisp.
picolisp-by-example - The source code of the free book "PicoLisp by Example"
slime - The Superior Lisp Interaction Mode for Emacs
common-lisp-by-example - Repo for Common Lisp by Example [Moved to: https://github.com/ashok-khanna/lisp-notes]
pytudes - Python programs, usually short, of considerable difficulty, to perfect particular skills.
babashka - Native, fast starting Clojure interpreter for scripting
janet - A dynamic language and bytecode vm
deprecated-coalton-prototype - Coalton is (supposed to be) a dialect of ML embedded in Common Lisp.