TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

How to Define New Intrinsics in SBCL

92 pointsby chiachunalmost 11 years ago

3 comments

agentultraalmost 11 years ago
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 未加载
eudoxalmost 11 years ago
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 未加载
talderalmost 11 years ago
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 未加载