TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Lisp implemented in under 1K of JavaScript

108 点作者 swannodette大约 10 年前

5 条评论

andrewchambers大约 10 年前
This person wrote a lisp in 1K lines of C (not bytes :)), the cool thing is that also includes a copying garbage collector.<p><a href="https://github.com/rui314/minilisp" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;rui314&#x2F;minilisp</a>
评论 #9112099 未加载
评论 #9111368 未加载
PinnBrain大约 10 年前
So much effort to go under 1K (in the era of 128GiB fingernail chips), with this .gitignore:<p>node_modules <i>-uglify</i> <i>-crush</i> <i>-regpack</i>
guard-of-terra大约 10 年前
Thank you for at least not writing another Brainfuck clone.
mattdw大约 10 年前
It&#x27;s JSON lists as s-exps, which means (as I understand it) that the author doesn&#x27;t need to implement parsing, only traversal and evaluation. (Which can essentially be a big-ass case statement.)<p><pre><code> [&quot;def&quot;, &quot;foo&quot;, 1] [&quot;fn&quot;, &quot;foo&quot;, [&quot;a&quot;, &quot;b&quot;], […]] </code></pre> It&#x27;s not the most attractive Lisp I&#x27;ve seen…
评论 #9110445 未加载
TazeTSchnitzel大约 10 年前
I wrote a minimal Lisp for PHP in about an hour: <a href="https://gist.github.com/TazeTSchnitzel/44720ea3aec64a9e330a" rel="nofollow">https:&#x2F;&#x2F;gist.github.com&#x2F;TazeTSchnitzel&#x2F;44720ea3aec64a9e330a</a>