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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Lisp in about 200 lines of Ruby

94 点作者 r11t超过 15 年前

9 条评论

lisper超过 15 年前
Lisp in about 100 lines of Python:<p><a href="http://www.flownet.com/ron/lisp/l.py" rel="nofollow">http://www.flownet.com/ron/lisp/l.py</a>
评论 #932420 未加载
MaysonL超过 15 年前
A micro-Lisp compiler (to x86 executable) in about 100 lines of OMeta: <a href="http://www.vpri.org/pdf/m2009011_chns_mng.pdf" rel="nofollow">http://www.vpri.org/pdf/m2009011_chns_mng.pdf</a><p>examples given which run about 70% of the speed of equivalent C code.
评论 #930771 未加载
gord超过 15 年前
This makes me vocalize something Ive wondered about...<p>Whats the smallest subset of lisp which you need to implement in order to bootstrap the language? So, given this small subset, one can implement the rest of say scheme or common lisp or arc on top of.<p>I vaguely recall Sussman or Ebelson implementing car and cadr in terms of lambdas, for example.<p>It seems this should be quite modular, given so many implementations of lisp [ in javascript, PHP, etc now Ruby ]. So that new lisps might be easily brought up over this kernel.
评论 #930026 未加载
评论 #929967 未加载
评论 #930089 未加载
评论 #929961 未加载
评论 #929965 未加载
评论 #930777 未加载
评论 #930060 未加载
statictype超过 15 年前
I threw something like this together in python some time ago: <a href="http://bitbucket.org/statictype/code/src/tip/pylisp/" rel="nofollow">http://bitbucket.org/statictype/code/src/tip/pylisp/</a><p>Not as elegant though.
bodhi超过 15 年前
I wonder if this says more about Ruby, or more about Lisp?
stcredzero超过 15 年前
<i>X in (some small number) of lines of Y</i><p>This is generally an indicator that language_power(X) &#62; language_power(Y)
评论 #932988 未加载
z8000超过 15 年前
Does lisp not support negative numbers? :)
评论 #931614 未加载
gaius超过 15 年前
Greenspun's Law in action ;-)
评论 #930063 未加载
Anon84超过 15 年前
A upgrade to Ruby?
评论 #929898 未加载