News for hackers. Stuff that matters.
Re:Between two Lisps by MH15 on Saturday December 05, 2020 @09:49PM (#25320588)
Any good guides on how to get started in Lisps, from a programming languages theory perspective?
Re:Between two Lisps by DonaldFisk on Saturday December 05, 2020 @10:01PM (#25320645)
There's Lisp In Small Pieces by Christian Queinnec (https://www.amazon.co.uk/Lisp-Small-Pieces-Christian-Queinne...), and if you want to look into CLOS in depth, there's The Art of the Metaobject Protocol by Kiczales, des Rivieres, and Bobrow (https://www.amazon.co.uk/Art-Metaobject-Protocol-MIT-Press/d...). There's also a good older text, Anatomy of Lisp by John Allen (https://www.amazon.co.uk/Anatomy-LISP-McGraw-Hill-computer-s...).
Re:Between two Lisps by linguae on Sunday December 06, 2020 @02:26AM (#25321822)
I am finishing up teaching an undergraduate-level course on programming language principles and paradigms.

Here is what I recommend:

1. Study Scheme for an introduction to programming in a Lisp-like language. I used Structure and Interpretation of Computer Programs as one of my course textbooks (I also assigned my students separate textbooks for the Prolog and Smalltalk portions of the class). My favorite part of this book is its discussion of the metacircular interpreter (i.e., a Scheme interpreter written in Scheme), which is key to understanding how a Lisp works internally.

2. Read the Lisp 1.5 Programmer's Manual. While this Lisp has long been succeeded by more modern Lisps, it is a very nicely designed manual that discusses the implementation of Lisp. It also has a short metacircular interpreter on page 13 that profoundly inspired Alan Kay and many other luminaries of computer science.

3. Begin learning Common Lisp. Common Lisp is much more complex than Scheme is; Common Lisp is to Scheme as C++ is to C. I started getting serious about learning Common Lisp earlier this year, and I am currently working through the Advent of Code exercises in Common Lisp. My favorite intro book is Common Lisp: A Gentle Introduction to Symbolic Computing. I also own a copy of Common Lisp Recipes, which has been valuable for learning Common Lisp idioms; part of the challenge of learning a large language is figuring out what are the most idiomatically correct ways of doing things.

4. Read The Art of the Metaobject Protocol. I have a copy of the book, but I haven't gone through it yet. My goal is to work through this book to have a full understanding of the Common Lisp Object System.

Re:Between two Lisps by Jach on Sunday December 06, 2020 @05:02AM (#25322451)
Regarding 4, I'd suggest reading Object-Oriented Programming: The CLOS Perspective first. It also has a great cover (same illustrator as AMOP), though it's not evident from Amazon's page last time I checked. This book is really a big collection of papers from several authors. It covers the topics of Lisp's OOP system and some of its history, its unique features (especially some comparison chapters with C++, Smalltalk, Eiffel), its meta-object protocol (and why you'd want it), some production reports from the field on its use in helping application development, and some implementation details to ward off "surely this is sooo much slower than a plain old function call?"
Re:Between two Lisps by chronal on Sunday December 06, 2020 @06:27PM (#25327684)
What textbooks did you assign for prolog and smalltalk?
Re:Between two Lisps by linguae on Monday December 07, 2020 @04:31AM (#25330629)
I used The Art of Prolog, Second Edition by Leon Sterling and Ehud Shapiro (https://mitpress.mit.edu/books/art-prolog-second-edition), which is available for free using the "Open Access" link, and also Smalltalk-80: The Language and Its Implementation by Adele Goldberg and David Robson (http://stephane.ducasse.free.fr/FreeBooks/BlueBook/Bluebook....), which is also available legally for free with permission (see http://stephane.ducasse.free.fr/FreeBooks.html for other freely-available Smalltalk books that are out of print).
Re:Between two Lisps by chronal on Monday December 07, 2020 @06:52PM (#25339442)
Thanks!
Re:Between two Lisps by fiddlerwoaroof on Saturday December 05, 2020 @11:56PM (#25321162)
I really liked Practical Common Lisp by Peter Seibel ( https://gigamonkeys.com/book/ ) however, ignore the environment setup: the recommendations it makes are no longer maintained, these days Portacle is the best way to get started.

One thing I really like about this book is it assumes you know basic programming ideas, so it gets into distinctively “lispy” features relatively quickly. The chapters on exception handling and Common Lisp’s object system, in particular, really sort of blew my mind and had a fairly profound influence on the way I think about programming languages.

Re:Between two Lisps by susam on Sunday December 06, 2020 @01:35AM (#25321634)
> I really liked Practical Common Lisp by Peter Seibel ( https://gigamonkeys.com/book/ ) however, ignore the environment setup: the recommendations it makes are no longer maintained, these days Portacle is the best way to get started.

A bunch of us from Freenode IRC have formed Common Lisp Programming Challenge (CLPC) at https://github.com/spxy/clpc in order to help beginners get started with Common Lisp (CL) while learning the language from Practical Common Lisp by Peter Seibel.

The outdated environment setup in the book can indeed be a genuine hurdle for a beginner. Portacle is a great way to get started. In the CLPC repository though, we are documenting the steps to set up Emacs, SLIME, etc. from scratch, so that a beginner to the CL ecosystem can try out and understand the traditional way of installing and setting up these tools.

If anyone here comes across this comment and is already reading or about to start reading the book Practical Common Lisp, or is eager to learn Common Lisp, you are welcome to visit https://github.com/spxy/clpc and join the Common Lisp Programming Challenge.

Re:Between two Lisps by fiddlerwoaroof on Sunday December 06, 2020 @02:02PM (#25325704)
Yeah, it's all tradeoffs, Portacle has the advantage of not requiring you to learn emacs as much to learn Common Lisp.
Re:Between two Lisps by fiddlerwoaroof on Saturday December 05, 2020 @11:58PM (#25321168)
Hmm, maybe this isn’t the best for PLT: for that, I’d recommend the Art of the Metaobject Protocol which is a really interesting case study in the design of the implementation of a fairly complex part of the CL standard.
Re:Between two Lisps by emmanueloga_ on Sunday December 06, 2020 @03:54AM (#25322142)
[1] and [2]. [3] is a good intro in a more practical perspective.

1: http://www.eopl3.com/

2: http://cs.brown.edu/courses/cs173/2012/book/

3: https://ds26gte.github.io/tyscheme/