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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Clasp 0.4 – Joining Common Lisp and C++

73 点作者 mkeeter超过 9 年前

6 条评论

elcritch超过 9 年前
Fascinating project! I kind of hope to need to work on C++ sometime so I can try it out. Particularly the Clang AST library would be a enormous boon for any LLVM / C++ / C work. IMHO, 9/10's of any compiler work is just figuring out how to write recursive functions to modify the AST which is a pain using C++ and visitor patterns. Working in LISP for these parts while being integrated with C++ for other parts sounds like it would be awesome if not outright fun.
评论 #10608118 未加载
drmeister超过 9 年前
Announcing Clasp 0.4 – a new release that incorporates a brand new compiler – capable of generating 200x faster code than previously, many bug fixes, a more complete Common Lisp implementation, and improved C++ interoperation.
thrownunder超过 9 年前
Is there some sample code for the C++ interface? It is a good idea but I am curious how much headers and templates complicate things.
评论 #10607772 未加载
edwintorok超过 9 年前
There is already a Clasp in Debian, but its something else: <a href="https:&#x2F;&#x2F;packages.debian.org&#x2F;sid&#x2F;clasp" rel="nofollow">https:&#x2F;&#x2F;packages.debian.org&#x2F;sid&#x2F;clasp</a>
评论 #10608056 未加载
评论 #10609624 未加载
评论 #10612080 未加载
jlarocco超过 9 年前
I hate to be negative, but that code base is a complete mess. I looked into helping out on the project a few months ago, but stopped almost immediately when I saw the code. I&#x27;m a little sad that a release is being announced and the code is still a mess.<p>For example, in the src&#x2F;core directory there are about a million files, of types <i>.txt, </i>.cc, <i>.cxml, </i>.xml, <i>.old, </i>.py, <i>.sh, </i>.prototype, <i>.csc, </i>.pdb, <i>.moe, </i>.grep, *.fbp, etc., and many of them have mysterious names like &quot;tf.csc&quot; or &quot;v.txt&quot;. And a lot of the files seem to have nothing to do with common lisp or C++, and contain mysterious 1 or 2 line code snippets or shell one liners.<p>Honestly, it&#x27;s just a terrible first impression. Are there any plans to clean it up and make it usable by other people?<p>Edit: And perhaps more worrying, there are things like this <a href="https:&#x2F;&#x2F;github.com&#x2F;drmeister&#x2F;clasp&#x2F;blob&#x2F;master&#x2F;src&#x2F;clbind&#x2F;class_registry.cc" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;drmeister&#x2F;clasp&#x2F;blob&#x2F;master&#x2F;src&#x2F;clbind&#x2F;cl...</a>, where there&#x27;s a copyright notice, and then immediately below it an older copyright notice to somebody else.
评论 #10605219 未加载
评论 #10605141 未加载
Others超过 9 年前
Ah, the converse of Greenspan&#x27;s tenth rule in action. (<a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Greenspun%27s_tenth_rule" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Greenspun%27s_tenth_rule</a>)