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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

How to Define New Intrinsics in SBCL

92 点作者 chiachun超过 10 年前

3 条评论

agentultra超过 10 年前
TIL: a solid CL implementation can provide safe maps from high-level intrinsic types to low-level implementation types at run-time. Also, SBCL has at least two IRs with each able to provide optimization hints to the code generator and compiler. So cool.<p>I love reading Paul&#x27;s posts. His bit on Tobasco sort[0] was amazing.<p>[0] <a href="http://www.pvk.ca/Blog/2012/08/27/tabasco-sort-super-optimal-merge-sort/" rel="nofollow">http:&#x2F;&#x2F;www.pvk.ca&#x2F;Blog&#x2F;2012&#x2F;08&#x2F;27&#x2F;tabasco-sort-super-optimal...</a><p><i>update: link</i>
评论 #8193099 未加载
eudox超过 10 年前
In certain ways, the difference between (Common) Lisp and other languages is the difference between Linux and Windows. When you have a fundamental problem in Windows, your only solution is to wait for a fix then reformat&#x2F;reinstall. Similarly, when there&#x27;s a problem in, say, a C compiler, all you can do is code around it, open an issue and wait for a fix in the next release.<p>In Common Lisp? Well, the compiler&#x27;s right there under these floorboards. Have a long-running web application that&#x27;s affected by this bug, and don&#x27;t want to restart it? Just run this in the REPL.
评论 #8192628 未加载
评论 #8193674 未加载
talder超过 10 年前
Does the SBCL compiler use a separate third-party assembler? Otherwise, how does it know the POPCNT opcode&#x2F;encoding? I didn&#x27;t see the author specify it in the post.
评论 #8193745 未加载