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.

The half strap: self-hosting and Guile

82 pointsby epsylonover 9 years ago

2 comments

davexunitover 9 years ago
I've built the new Guile from source a handful of times now. It's definitely a slow process, but I'm very grateful that Guile doesn't require an older version of itself in order to build like a lot of other self-hosted languages. Self-hosting is good, but it's imperative that users can bootstrap on their own so that they don't have to place trust in a pre-built binary of the compiler in order to build the compiler. For example, Go has a self-hosted compiler now, but you don't need to trust a pre-built Go compiler binary to build Go, because you can bootstrap it using gccgo.
评论 #10894872 未加载
评论 #10895036 未加载
评论 #10895775 未加载
outworlderover 9 years ago
I like Chicken Scheme&#x27;s take on this. Since Chicken&#x27;s compiler always generates C code, which is then compiled by GCC (or Clang), one just releases both the source and the compiled scheme files(which are C sources).<p>Then, it&#x27;s just &quot;make&quot; as usual.<p>I&#x27;ve even used this strategy to run a scheme program on iOS, trivially. You just have to ask it to stop at the C code generation and not invoke the C compiler. You then insert both chicken&#x27;s C code and your program&#x27;s in the xcode project, and call libchicken&#x27;s initialization code from Objective-C. And then compile the whole blob with clang.<p>EDIT: :%s&#x2F;compiled C&#x2F;compiled scheme&#x2F;g
评论 #10896449 未加载