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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

A revised Lisp interpreter in Go

54 点作者 suzuki大约 9 年前

4 条评论

suzuki大约 9 年前
This is a revised port of<p>Lisp interpreter in Dart <a href="http:&#x2F;&#x2F;www.oki-osk.jp&#x2F;esc&#x2F;dart&#x2F;lisp-en.html" rel="nofollow">http:&#x2F;&#x2F;www.oki-osk.jp&#x2F;esc&#x2F;dart&#x2F;lisp-en.html</a><p>Lisp interpreter in TypeScript <a href="http:&#x2F;&#x2F;www.oki-osk.jp&#x2F;esc&#x2F;typescript&#x2F;lisp-en.html" rel="nofollow">http:&#x2F;&#x2F;www.oki-osk.jp&#x2F;esc&#x2F;typescript&#x2F;lisp-en.html</a><p>to Go with the addition of &quot;future&quot; and &quot;force&quot; which makes use of goroutines&#x27; concurrency.<p><pre><code> (let ((a (future (prin1 &quot;hi&quot;)))) (dotimes (i 20) (princ i) (princ &quot; &quot;)) (force a)) (terpri) </code></pre> It is not deterministic when the word &quot;hi&quot; will be printed.<p><pre><code> $ lisp-light test.l 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 &quot;hi&quot;16 17 18 19 $</code></pre>
评论 #11423522 未加载
评论 #11414051 未加载
amelius大约 9 年前
How does this compare performance-wise to a compiler?
评论 #11414571 未加载
shitgoose大约 9 年前
at least is sounds better than kakapo:<p><a href="https:&#x2F;&#x2F;github.com&#x2F;bytbox&#x2F;kakapo" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;bytbox&#x2F;kakapo</a>
feylikurds大约 9 年前
Would not a JavaScript interpreter be more useful, especially considering the wider use of it?
评论 #11415708 未加载