Minimal Lisp in ~70 lines of Haskell

Languages and libraries

lisp interpreter

SHOW HN2011

76points
23comments
#158of 1,097 in 2011
Top 15%of 2011 by points

How HN took it

MixedNo clear lean

4 positive, 5 neutral or asking, 0 mixed, 2 critical, out of 11 comments about the project. Thread score +0.14.

Design: 3 for, 0 againstIdea: 1 for, 1 againstExecution: 0 for, 1 against

The thread, comment by comment

Each row is a top-level comment and its replies, in HN's order. Select a cell to open that comment on HN.

positive neutral or mixed critical about another commenter or something else the maker

What HN said

What people liked

  • Fun to read and compact

    From 1 comment
    • Cool, only 70 lines!! (plus a ton of libraries) j/k ;-) Actually, I like this - it shows how cool Haskell really is! No, wait - it shows how cool Lisp really is! No wait... I'm…
      kleiba on HN

Objections

  • Lacks arithmetic, scoping and error handling, so not a real Lisp

    From 1 comment
    • I do not know Haskell enough to fully judge this, so maybe someone can correct me, but that seems _very_ minimal. From what I understand, it doesn't even have arithmetic…
      stiff on HN
  • Dense operator syntax is hard for Haskell beginners to read

    From 1 comment
    • I'm familiar with parser combinators, but not the Attoparsec or other libraries. Furthermore, I have limited Haskel experience, so I'm struggling to read this. In particular, the…
      snprbob86 on HN

Requests

  • Explain how the code handles car and cdr

    From 1 comment
    • Can you give the example that breaks car/cdr? They seem to be evaluating their args here: ``` fst $ repl "(car (cons 1 (quote ())))" Number 1 ```
      Peaker on HN

Questions

  • How long did it take to write

    From 1 comment

Alternatives named

  • Write Yourself a Scheme in 48 Hours

    From 2 comments
    • This is clearly a golfing exercise. If you want a more full featured Lisp check out Write Yourself A Scheme in 48 Hours by Jonathan Tang:…
      sjs on HN
    • And 'Write Yourself a Scheme in 48 Hours" http://en.wikibooks.org/wiki/Write_Yourself_a_Scheme_in_48_Hours
      thinkingeric on HN
  • Peter Norvig's lispy in Python

    From 1 comment
    • I do not know Haskell enough to fully judge this, so maybe someone can correct me, but that seems _very_ minimal. From what I understand, it doesn't even have arithmetic…
      stiff on HN
  • Lisprolog in Prolog

    From 1 comment
    • You might also like: Lisprolog http://stud1.tuwien.ac.at/~e0225855/lisprolog/lisprolog.html "Some online books show how to implement a simple "Prolog" engine in Lisp. They…
      GregBuchholz on HN

Category, keywords, summaries and labels on this page were made by AI (Thread Reader v2) and not checked by hand. Each point links to the comments it came from.

Add a badge to your READMEShown on HackerShow
[![Shown on HackerShow](https://hackershow.org/badge.svg)](https://hackershow.org/show/2502173)