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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Ruby 'compiler' in Common Lisp

10 点作者 r11t超过 14 年前

2 条评论

ohyes超过 14 年前
Another interesting example of a program like this is CLPython:<p><a href="http://github.com/franzinc/cl-python" rel="nofollow">http://github.com/franzinc/cl-python</a><p>It is too bad that more language implementors do not go this route, as it is a really easy way to get decent efficiency.<p>I suppose it isn't surprising, however. It is a lot easier to find people willing to contribute to open source C/C++/Java code than Common Lisp.<p>I will note this implementation and does not have a lot of the important functionality involved in classes/modules and their scoping (so pretty much any of the language semantics, which is understandable as it is a toy).<p>Implementing the semantics of the language, would be trickier and probably lead to less efficient code.
regularfry超过 14 年前
Neat trick. Still, it's like Charles Nutter said - it's easy to make a fast subset of ruby by chopping off inconvenient corner cases. It's really, really hard to make a fast ruby.