TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Build Your Own Lisp

115 pointsby curious16almost 2 years ago

7 comments

capablewebalmost 2 years ago
If you want to learn languages, implementing a lisp interpreter is a great exercise, and lots of fun too. Every time I come across a new language I want to give a try, creating a lisp interpreter is one of the first things I do.<p>If you&#x27;re curious but want a more language-agnostic guide, mal (Make a lisp) is a language+project that has a guide you can follow along with basically any language, and if you get stuck, you can look at already implemented versions in practically any language: <a href="https:&#x2F;&#x2F;github.com&#x2F;kanaka&#x2F;mal">https:&#x2F;&#x2F;github.com&#x2F;kanaka&#x2F;mal</a><p>Personal favorite implementations of mal: nasm (assembly) (<a href="https:&#x2F;&#x2F;github.com&#x2F;kanaka&#x2F;mal&#x2F;tree&#x2F;master&#x2F;impls&#x2F;nasm">https:&#x2F;&#x2F;github.com&#x2F;kanaka&#x2F;mal&#x2F;tree&#x2F;master&#x2F;impls&#x2F;nasm</a>) and wasm (<a href="https:&#x2F;&#x2F;github.com&#x2F;kanaka&#x2F;mal&#x2F;tree&#x2F;master&#x2F;impls&#x2F;wasm">https:&#x2F;&#x2F;github.com&#x2F;kanaka&#x2F;mal&#x2F;tree&#x2F;master&#x2F;impls&#x2F;wasm</a>)<p>mal has also been discussed many times on HN (which is probably how I came across it the first time too) for close to a decade by now: <a href="https:&#x2F;&#x2F;hn.algolia.com&#x2F;?query=kanaka%2Fmal" rel="nofollow">https:&#x2F;&#x2F;hn.algolia.com&#x2F;?query=kanaka%2Fmal</a>
评论 #36107759 未加载
评论 #36107170 未加载
ofalkaedalmost 2 years ago
I worked through this years ago and was rather disappointed, I felt the hand holding&#x2F;explanations were not well balanced; it walks you through everything like you have no programming experience but explains things like you do have programming experience. The exercises were ok but not great. It left me with far more questions than answers and only slightly better at C than I was before.<p>But I am a hack in everyway, so it could just be me.
sfc32almost 2 years ago
I like the humour &quot;Mike Tyson • Your typical Lisp user&quot; :-) <a href="https:&#x2F;&#x2F;buildyourownlisp.com&#x2F;chapter1_introduction#who_this_is_for" rel="nofollow">https:&#x2F;&#x2F;buildyourownlisp.com&#x2F;chapter1_introduction#who_this_...</a>
naltunalmost 2 years ago
I followed the exercises in this book coming up on a decade ago. It was I valuable to my growth as a developer. The author, OrangeDuck, has many worthwhile projects. If you are learning C, it&#x27;s worth checking out their Cello project.
pcbluesalmost 2 years ago
Recent repeat, but I think I used the template that made the website in 1995. Still amusing.<p><a href="https:&#x2F;&#x2F;hn.algolia.com&#x2F;?dateRange=all&amp;page=0&amp;prefix=false&amp;query=buildyourownlisp&amp;sort=byDate&amp;type=story" rel="nofollow">https:&#x2F;&#x2F;hn.algolia.com&#x2F;?dateRange=all&amp;page=0&amp;prefix=false&amp;qu...</a>
sai2318almost 2 years ago
Bookmarked. In the same spirit, there’s also codecrafters.io that covers Building your own Git, Docker, Redis, etc.
abdullahkhalidsalmost 2 years ago
When I was an undergrad, having newly read SICP, I start to write my own lisp in.... drumroll... matlab!!! I actually made quite a bit of progress before giving up.<p>Ah, to be young again!
评论 #36113445 未加载