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.

Going Faster with Lisp

124 pointsby foobover 7 years ago

4 comments

_ph_over 7 years ago
SBCL is a very interesting compiler. I can only encourage anyone, who is interested in Lisp or dynamic languages in general to check it out. It always compiles to native code, and as the article has shown, you can see what it compiles to. That gives you direct feedback how good the resulting code is.<p>By default, SBCL always generates &quot;correct&quot; code. That of course means for a dynamically typed language, that it has to assume any type. Also, for integer operations, it means, still producing a correct result, even if the integers exceed the values which can be represented by machine-sized integers. As a result, the generated code isn&#x27;t overly impressive in the beginning. But SBCL has very high abilities to reason about the code, including type inferencing. So, when you add a few type declarations, the generated code gets substantially faster, often matching and sometimes even exceeding what GCC produces for C programs.
评论 #15278978 未加载
评论 #15288266 未加载
评论 #15281912 未加载
taericover 7 years ago
Am I the only person that noticed the hover on the lisp code blocks? Surprised me at first. Can&#x27;t tell if I like the idea or not.<p>Rather, I know I like the idea. I can&#x27;t decide if I like the execution. I&#x27;m leaning towards liking it.
评论 #15280778 未加载
评论 #15284073 未加载
评论 #15280672 未加载
评论 #15280483 未加载
flavio81over 7 years ago
TL;DR: Very interesting article about improving performance in Common Lisp. The author has a 6502 CPU emulator and finds out how to improve his assembly output. Additionally, it shows how the &quot;static&quot; typing facilities of Lisp help for increasing performance.
mamcxover 7 years ago
How easy is to embed this? If I wanna make a language and use a lisp as the &quot;backend&quot; this one is good for this?
评论 #15279455 未加载
评论 #15279253 未加载
评论 #15279254 未加载
评论 #15279476 未加载