Skip to content
HomeVideosBooks
AllTopicsTrends
BlogsPodcasts
HistoryListsWatch laterLiked videosFollowing

The videos, books, blogs and podcasts Hacker News keeps recommending, all in one place.

VideosBooksBlogsPodcastsAboutPrivacySettings

Data from Hacker News, HackerTube, HackerBooks, HackerBlogs and Open Library. Credits · Not affiliated with Y Combinator.

HomeVideosBooksBlogsPodcasts
Ctrl K
    Cover of The reasoned schemer

    The reasoned schemer

    Daniel P. Friedman · 2005

    A new edition of a book, written in a humorous question-and-answer style, that shows how to implement and use an elegant little programming language for logic programming. The goal of this book is to show the beauty and elegance of relational programming, which captures the essence of logic programming. The book shows how to implement a relational programming language in Scheme, or in any other functional language, and demonstrates the remarkable flexibility of the resulting relational programs. As in the first edition, the pedagogical method is a series of questions and answers, which proceed with the characteristic humor that marked The Little Schemer and The Seasoned Schemer. Familiarity with a functional language or with the first five chapters of The Little Schemer is assumed. For this second edition, the authors have greatly simplified the programming language used in the book, as well as the implementation of the language. In addition to revising the text extensively, and simplifying and revising the “Laws” and “Commandments,” they have added explicit “Translation” rules to ease translation of Scheme functions into relations.

    Lisp & FunctionalProgramming
    Open LibraryAmazon
    Stats for nerds
    45recommend
    107mentions
    79people
    2007–2026years
    57% recommend41% neutral2% critical

    Mentions per year

    20072009201120132015201720192021202320252026

    What Hacker News says

    1. tmtvlApr 2025
      If you're ever bored for a weekend I'd recommend reading through the Reasoned Schemer, or at least the final chapter and the appendices to see how a simple Kanren can be implemented. It's what got me to properly appreciate macros.
      thread
    2. jhbadgerJul 2024
      There is a very practical embedable logic-programming engine called miniKanren for many programming languages that can be used to add the logic-programming techniques of Prolog to other languages.

      https://en.wikipedia.org/wiki/MiniKanren

      There's a great book in the same series as the "Little Lisper"/"Little Schemer" books called "The Reasoned Schemer" that uses MiniKanren with Scheme.

      thread
    3. zelphirkaltApr 2024
      I am working my way through "The Seasoned Schemer". Maybe I will go for "The Reasoned Schemer" next. Or "The Little Learner". Great series of books.
      thread
    4. tmtvlMar 2024
      Various Scheme texts cover writing your own interpreter in more or less detail: Structure and Interpretation of Computer Programs (AKA SICP)*, the Little Schemer, Concrete Abstractions**. Norvig's Paradigms of AI Programming also contains a Scheme interpreter, though the text mainly focuses on Common Lisp. And finally I'd throw Exploring Programming Language Architecture in Perl*** in the mix as a more in-depth look at creating a Scheme interpreter.

      The style of the Little/Seasoned/Reasoned Schemer is a little different from the other books I highlighted here, but various people have said they really like it, including Guy Steele, so they may be worth a look if the others don't really work for you.

      *: <https://mitp-content-server.mit.edu/books/content/sectbyfn/b...>

      **: <https://gustavus.edu/academics/departments/mathematics-compu...>

      ***: <https://www.billhails.net/Book/front.html>

      thread
    5. sn9May 2023
      Lots of great suggestions here.

      I'll throw out a recommendation for The Little series of books (e.g., The Little Schemer, The Seasoned Schemer, The Reasoned Schemer, The Little Typer, etc.)

      The first book is all you need to grok recursion. You can just toss a copy at any student who struggles with it.

      The second book ends with some really non-trivial CS stuff.

      They're fantastic examples of the power of good pedagogy to explain interesting and difficult concepts normally relegated to drier texts.

      thread
    6. paultarvydasFeb 2023
      The Computer Science Cabal reading group will begin reading through "The Reasoned Schemer".

      Essentially, this book teaches Declarative Programming in the form of Relational Programming, using miniKanren.

      Relational Programming is very much different from the usual forms of programming, and, IMO, worth knowing in order to expand your horizons, esp. if you are interested in Architecting software.

      The group meets once a week on Zoom and chit-chats on Slack in the interim.

      The next Zoom meeting is on Thursday Feb. 23, 7pm EST. Contact me for an invite.

      thread

    Related

    Cover of The seasoned schemer
    2007–2026

    The seasoned schemer

    Daniel P. Friedman
    33 recommend · 60
    Cover of The Little Schemer
    2007–2026

    The Little Schemer

    Daniel P. Friedman
    288 recommend · 652
    Cover of Structure and Interpretation of Computer Programs
    2007–2026

    Structure and Interpretation of Computer Programs

    Harold Abelson
    347 recommend · 761
    Cover of The Little Typer
    2018–2026

    The Little Typer

    Daniel P. Friedman
    16 recommend · 37
    Cover of On LISP
    2007–2026

    On LISP

    Paul Graham
    192 recommend · 533
    Cover of The little LISPer
    2008–2025

    The little LISPer

    Daniel P. Friedman
    28 recommend · 47
    Cover of How to Design Programs
    2007–2026

    How to Design Programs

    Matthias Felleisen
    277 recommend · 776
    Cover of Essentials of programming languages
    2008–2026

    Essentials of programming languages

    Daniel P. Friedman
    43 recommend · 76