5 ms·
Lisp in a Weekend
- lprd 5y agoOne of these days I'm gonna sit down and properly learn Lisp. My career as a programmer is still relatively young ( < 5 years), and learning lisp won't provide any value in my day-to-day work. But understand the concepts and paradigms of Lisp certainly has to have some value.
- dunefox 5y agoThere's also SICP and Lisp in Small Pieces, maybe also Artificial Intelligence: A Modern Approach, that contain very interesting stuff with Lisp and in general.
- agumonkey 5y agohave you read L.i.S.P cover to cover ? I still have to finish it also do you know other books of the same kind ?
- dunefox 5y agoNo, I read chapters from time to time, I'd love to have time to read all of it. Maybe, I'll think about it.
- ngcc_hk 5y agoPaip is a good and useful one to learn https://github.com/norvig/paip-lisp https://github.com/norvig/paip-lisp
- dunefox 5y agoOh man, that's the one I meant, not AIMA+Lisp. But AIMA is great in general.
- nivenkos 5y agoI'd also recommend the Nand2Tetris course / book if you haven't done it already.
- agumonkey 5y agopeople have accumulated a lot of lisp impl on Make A Lisp repo https://github.com/kanaka/mal https://github.com/kanaka/mal
- Kototama 5y agoIt depends, if you switch to Emacs you could get proficient with Emacs Lisp. If you are used to think with objects, thinking with data + functions will change the way you solve problems. Finally you could use a modern Lisp like Clojure for a small project at work or your next job. Besides that, the history of Lisps is fascinating, specially Lisp machines.
- alfiedotwtf 5y agoAlthough it's Scheme, I recommend "The Little Schemer". It's quite short, but fun, and by the end of it you should have the idea and be able to pick up other texts with ease.
- Guthur 5y agoIn some strange ways I wish I never had. And I'm truly not being overly hyperbolic when I say I struggle to enjoy programming in other languages. I can do it but I can just never quite make the other languages fit how I want to think about the problems. I think one major barrier is that nearly every language I have to use is lumbered with truly horrible data handling with the pervasive OO model that is so bad. I've used CLOS too much to never look at OO the same again. And then if I'd rather just think of things as name/value collections, Clojure is just so easy.
- brundolf 5y agoI think you're just stuck with the wrong languages. I too like to structure nearly everything as plain data (name/value collections, lists, etc) these days, but I do it in TypeScript or Python or Rust. It doesn't require a lisp.
- phyrex 5y agoLisps make it much, much easier though. My dayjob is python, but my heart yearns for clojure
- brundolf 5y agoDifferent strokes I guess. I played with Clojure a bit and it didn't really hook me; TypeScript is the language that I feel lets me beam my thoughts directly into code.
- phyrex 5y agoFwiw, clojure is an acquired taste. It took me months to rewire my brain and get comfortable with it. Enjoy your time with TS and remember clojure if it ever doesn’t satisfy you anymore
- ithrow 5y agoExcept for the macros you can use JS the same as you use Clojure.
- mmargerum 5y agoBeen leering at lisp in the corner for 23 years. Been doing c/c++/delphi/go/objC/swift all this time. I finally have had it with OO and static typing. Javascript was my first intro to the liberation dynamic types and functional programming can bring when I built a project in Vue. I kinda loved it. I started writing code in emacs lisp to help me write and navigate xml and it's been wonderful. now im deciding on whether to use Common Lisp or guile to build some projects. I'm sold.
- WalterGR 5y ago> There are lots of standard functions still missing, but rather than implement them as built-ins, they can be implemented from the primitives already available. I'd be interested in reading more about this. For example, how was that set of primitives chosen? How does the author know that the set of primitives is sufficient? A couple relevant (and interesting) links: What is the "minimal" set of primitives needed for a Lisp interpreter? https://www.cs.cmu.edu/Groups/AI/html/faqs/lang/lisp/part1/faq-doc-6.html https://www.cs.cmu.edu/Groups/AI/html/faqs/lang/lisp/part1/f... What is the smallest definition of Lisp? https://www.reddit.com/r/lisp/comments/aklz0x/what_is_the_smallest_definition_of_lisp/ https://www.reddit.com/r/lisp/comments/aklz0x/what_is_the_sm...
- pjmlp 5y agoI would consider Lisp 1.5 manual as the minimal set.
- metagame 5y agoConsider alternatively: https://github.com/jart/sectorlisp/blob/main/sectorlisp.S https://github.com/jart/sectorlisp/blob/main/sectorlisp.S https://github.com/jart/sectorlisp/blob/main/lisp.lisp https://github.com/jart/sectorlisp/blob/main/lisp.lisp This does give me an idea to do it in even less, though. I'll have to spend a weekend on it. It's also worth noting that the 1.5 metacircular interpreter is incomplete: https://github.com/kragen/stoneknifeforth#why--to-know-what-im-doing https://github.com/kragen/stoneknifeforth#why--to-know-what-...
- abecedarius 5y agoAn old go of mine at filling in that incompleteness in a minimal way: https://github.com/darius/ichbins https://github.com/darius/ichbins It went a little too minimal in having no comments.
- fsloth 5y ago"Structure and interpretation of computer programs" (SICP) by Sussman and Abelson contains a recipe for scheme interpreter that can be implemented in any language and answers this as well (well, for scheme).
- ngcc_hk 5y agoScheme is not that interesting … Even using js to do cl like is hard.
- indymike 5y agoThanks for sharing this. It's easy to forget what can be achieved in a weekend. Very cool project!
- jes 5y agoDecades ago I enjoyed working with XLisp [1] for a while. It seemed like well-done and simple Lisp that would be good as an extension language. I'm wondering if this Lisp took any inspiration from XLisp or has a similar goal. [1] https://github.com/dbetz/xlisp https://github.com/dbetz/xlisp
- kazinator 5y agoSomeone also thought so in the 1980's at AutoDesk; they based AutoCAD's AutoLisp on an early version of XLisp.