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.

Gisp: A Lisp that compiles to Go

80 pointsby jcla1over 11 years ago

9 comments

chalstover 11 years ago
If you are wanting a native dynamic scripting language for Go, goluago is coming along quite nicely (alpha version released at New Year):<p><a href="https://github.com/akavel/goluago" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;akavel&#x2F;goluago</a><p>I think if I wanted to implement a native Lisp interpreter&#x2F; bytecode compiler for Go, I would build on top of this project rather than starting from scratch.
评论 #7216893 未加载
yasonover 11 years ago
For any programming language or platform without macros, a Lisp frontend appears.
评论 #7217126 未加载
评论 #7216757 未加载
pjmlpover 11 years ago
For those playing with this type of code generation, you get to learn more by targeting Assembly instead.<p>Define a proper interface between ASTs and code generation and retarding the compiler is also not that complicated.<p>Or generate LLVM bitcode and use the LLVM tools to compile it to native.<p>Way better than relying in other compiler stacks.<p>Of course, it is a matter how deep one wants to get into compiler stuff.
评论 #7216844 未加载
bfeover 11 years ago
See also Kakapo, an effort at a lisp interpreter in Go.<p><a href="https://github.com/bytbox/kakapo" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;bytbox&#x2F;kakapo</a>
jcla1over 11 years ago
Author here, in case anyone has any questions!
评论 #7218744 未加载
e12eover 11 years ago
Does look like it could use a little more documentation? Am I missing something or is the only list of supported syntax etc the (very limited) examples and the implementation itself? There&#x27;s no design&#x2F;goal document listing what&#x27;s supported or not?<p>Other than that, this looks like a lot of fun :-)
评论 #7218260 未加载
cryptolectover 11 years ago
Feels like this is the beginning of a trend: Clojure, Hy and now Gisp.
评论 #7216948 未加载
评论 #7216602 未加载
评论 #7217312 未加载
erikjover 11 years ago
Is there a Scheme implementation that compiles to Go?
评论 #7217240 未加载
评论 #7217422 未加载
blahbl4hblahtooover 11 years ago
Oh my god, if someone wrote a bitcoin wallet that protected you chats from the NSA in this List that compiles to GO THIS WOULD BE THE PERFECT HN POST.
评论 #7218397 未加载