Live data from Hacker News

Show HN: "Programming Algorithms in Lisp” Book

apress.com

11–20 of 34 posts

Re: Show HN: "Programming Algorithms in Lisp” Book

#11
post #2

Hi, I'm the author. For those who haven't heard about the book yet: it is a practical description of the main data structures and algorithms in use today. The book is also featuring a presentation of the most important algorithm development techniques, as well a examples of the real-world use cases in each chapter. It uses Common Lisp as an implementation language, and also contains a crash course into the language i…

As a second year cs student currently taking an algorithms course with no experience with LISP, would this book be useful for me?

In the preface, I discuss a bit the topic of how algorithms are taught in the universities versus how they are actually used. I made a choice to lean heavily towards the "practical" approach. So, from the perspective of a student, this shouldn't be your principal manual, the theory isn't presented in the best possible way, to say the least. (As a manual I'd recommend Skiena, or you can use Cormen etc.) But if you read the book as supplementary material it can give you a different perspective on those theoretical concepts and, hopefully, you'll get more value from studying them as you'll see where it all leads and how you might be using the obtained knowledge in your further work. As for Lisp, I don't think that picking it for any smart student should be a problem.

Re: Show HN: "Programming Algorithms in Lisp” Book

#12
post #9
post #4

Is the big underlying motive for LISP its connection with symbolic AI?

Not anymore, today Common Lisp is generally a very nice language that balances dynamicity and performance quite well, and especially shines in interactive (or REPL-driven) development: https://mikelevins.github.io/posts/2020-12-18-repl-driven/

Also popular implementations do some cool things. The compiler section in the SBCL manual[1] has good details. SBCL's type inference is powerful and you can also convince yourself it's actually working by looking at the output of DISASSEMBLE.

[1] http://www.sbcl.org/manual/index.html

Re: Show HN: "Programming Algorithms in Lisp” Book

#13
post #9
post #4

Is the big underlying motive for LISP its connection with symbolic AI?

Not anymore, today Common Lisp is generally a very nice language that balances dynamicity and performance quite well, and especially shines in interactive (or REPL-driven) development: https://mikelevins.github.io/posts/2020-12-18-repl-driven/

Clojure is my only serious exposure to lisp, and I get jealous when hearing about features like a `breakloop` in Common Lisp.

Re: Show HN: "Programming Algorithms in Lisp” Book

#14
post #2

Hi, I'm the author. For those who haven't heard about the book yet: it is a practical description of the main data structures and algorithms in use today. The book is also featuring a presentation of the most important algorithm development techniques, as well a examples of the real-world use cases in each chapter. It uses Common Lisp as an implementation language, and also contains a crash course into the language i…

I bought myself a copy of your book recently. I have not worked through it back to back, but I enjoyed taking a look at known things through the lens of CL. However I have to admit that the reliance on additional external libraries kind of had me a bit disappointed, but I can understand the reasoning and advantages behind such a decision.

thanks for the feedback!

Re: Show HN: "Programming Algorithms in Lisp” Book

#15
post #2

Hi, I'm the author. For those who haven't heard about the book yet: it is a practical description of the main data structures and algorithms in use today. The book is also featuring a presentation of the most important algorithm development techniques, as well a examples of the real-world use cases in each chapter. It uses Common Lisp as an implementation language, and also contains a crash course into the language i…

What are this book's selling points as compared to SICP? On the surface, both are teaching computer science fundamentals in a lispy setting.

Re: Show HN: "Programming Algorithms in Lisp” Book

#16
post #15
post #2

Hi, I'm the author. For those who haven't heard about the book yet: it is a practical description of the main data structures and algorithms in use today. The book is also featuring a presentation of the most important algorithm development techniques, as well a examples of the real-world use cases in each chapter. It uses Common Lisp as an implementation language, and also contains a crash course into the language i…

What are this book's selling points as compared to SICP? On the surface, both are teaching computer science fundamentals in a lispy setting.

You're quite right that SICP is about the fundamentals. Progalgs is about writing efficient programs. It's for those who already understand the fundamentals.

Re: Show HN: "Programming Algorithms in Lisp” Book

#19
post #9

Earlier quoted context omitted.

Not anymore, today Common Lisp is generally a very nice language that balances dynamicity and performance quite well, and especially shines in interactive (or REPL-driven) development: https://mikelevins.github.io/posts/2020-12-18-repl-driven/

Clojure is my only serious exposure to lisp, and I get jealous when hearing about features like a `breakloop` in Common Lisp.

Why not give it a spin?

There is plenty more to discover in Common Lisp, Clojure has some nice tricks but it's a faint echo as far as raw power goes.

http://www.sbcl.org

Post reply on HN