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.

A small scheme VM, compiler, and REPL in 4k

94 pointsby dannyobrienover 3 years ago

4 comments

throwaway81523over 3 years ago
Paper is acm-walled but code repo is <a href="https:&#x2F;&#x2F;github.com&#x2F;udem-dlteam&#x2F;ribbit" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;udem-dlteam&#x2F;ribbit</a> . I would like to have seen Hedgehog Lisp ( <a href="https:&#x2F;&#x2F;github.com&#x2F;sbp&#x2F;hedgehog" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;sbp&#x2F;hedgehog</a> ) in the comparison chart, since it has actually been used for practical projects. Its VM is around 20KB of object code. 4KB is impressively tiny, but any machine where 4k vs 20k makes a big difference is unlikely to have enough ram to run garbage collected applications. That seems to call more something more like Forth rather than Scheme.<p>Hedgehog is a somewhat weird functional dialect of Lisp and I&#x27;ve been wanting for a while to convert it to a Scheme subset (mostly just using Scheme syntax instead of defun, etc) so people would be more familiar with it.<p>Added: paper is here <a href="http:&#x2F;&#x2F;www.iro.umontreal.ca&#x2F;~feeley&#x2F;papers&#x2F;YvonFeeleyVMIL21.pdf" rel="nofollow">http:&#x2F;&#x2F;www.iro.umontreal.ca&#x2F;~feeley&#x2F;papers&#x2F;YvonFeeleyVMIL21....</a>
评论 #29350071 未加载
评论 #29349919 未加载
评论 #29349032 未加载
chubotover 3 years ago
Code looks very cool<p>There&#x27;s even a Python implementation with 1 space indentation :)<p><a href="https:&#x2F;&#x2F;github.com&#x2F;udem-dlteam&#x2F;ribbit&#x2F;blob&#x2F;main&#x2F;src&#x2F;host&#x2F;py&#x2F;rvm.py" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;udem-dlteam&#x2F;ribbit&#x2F;blob&#x2F;main&#x2F;src&#x2F;host&#x2F;py&#x2F;...</a>
throwaway81523over 3 years ago
I was unable to build ribbit from the git repo under Debian. The compile-all.sh script complained about absence of &quot;gambit&quot;, and after installing gambc (Debian&#x27;s gambit package) and changing the &quot;gambit&quot; command in the build script to gsc (gambit compiler), the script still throws error messages. I might mess with it some more, but I&#x27;m unfamiliar with the tool chain, so at first look I don&#x27;t know what to try next.<p>Did anyone else have better luck?
评论 #29357336 未加载
neilvover 3 years ago
Non-ACM-paywalled paper from the home page of Marc Feeley: <a href="http:&#x2F;&#x2F;www-labs.iro.umontreal.ca&#x2F;~feeley&#x2F;papers&#x2F;YvonFeeleyVMIL21.pdf" rel="nofollow">http:&#x2F;&#x2F;www-labs.iro.umontreal.ca&#x2F;~feeley&#x2F;papers&#x2F;YvonFeeleyVM...</a>