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.

MIT Scheme on Apple Silicon

145 pointsby kennethfriedmanover 3 years ago

13 comments

sritchieover 3 years ago
I&#x27;ve been engaged in a 1.5 year long (so far) project to port the entirety of GJS&#x27;s &quot;scmutils&quot; package over to Clojure, and the erratic behavior of MIT Scheme over Rosetta has been a pain I&#x27;ve consigned myself to for months. I keep an old machine handy when I need to test functions that can&#x27;t work on the M1.<p>I am SO HAPPY to see this work! Major timesaver for me and anyone looking to run the executable versions of Functional Differential Geometry[1] and Structure and Interpretation of Classical Mechanics[2] in the original language.<p>[0] <a href="https:&#x2F;&#x2F;github.com&#x2F;sicmutils&#x2F;sicmutils" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;sicmutils&#x2F;sicmutils</a> [1] <a href="https:&#x2F;&#x2F;github.com&#x2F;sicmutils&#x2F;fdg-book" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;sicmutils&#x2F;fdg-book</a> [2] <a href="https:&#x2F;&#x2F;github.com&#x2F;sicmutils&#x2F;sicm-book" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;sicmutils&#x2F;sicm-book</a>
评论 #29715161 未加载
nneonneoover 3 years ago
Both of the compilation errors identified in this article were just fixed in the master branch of MIT&#x2F;GNU Scheme five hours ago: <a href="https:&#x2F;&#x2F;git.savannah.gnu.org&#x2F;cgit&#x2F;mit-scheme.git&#x2F;commit&#x2F;?id=350be6720bce76eec23b551c720adc3570c0a608" rel="nofollow">https:&#x2F;&#x2F;git.savannah.gnu.org&#x2F;cgit&#x2F;mit-scheme.git&#x2F;commit&#x2F;?id=...</a>, <a href="https:&#x2F;&#x2F;git.savannah.gnu.org&#x2F;cgit&#x2F;mit-scheme.git&#x2F;commit&#x2F;?id=013fad016413e582d769e5d1b7e6bd15006554c4" rel="nofollow">https:&#x2F;&#x2F;git.savannah.gnu.org&#x2F;cgit&#x2F;mit-scheme.git&#x2F;commit&#x2F;?id=...</a>. So, if you grab the current master branch, it should just build for x86 without any fixes needed.
评论 #29718656 未加载
jeroenhdover 3 years ago
What&#x27;s stopping people from just compiling Scheme for ARM? The website has a separate aarch64 download it seems, so why not patch that instead of relying on Rosetta2?<p>The vfork&#x2F;fork issue and the compiler upgrade issue don&#x27;t seem to be too problematic to work around, so there must be some kind of ARM limitation that&#x27;s preventing Scheme from working, but what?
评论 #29714587 未加载
carreauover 3 years ago
I find it a bit disingenuous to say that it runs on apple silicon if you need to modify source code. Also it&#x27;s not because it compiles and starts that it&#x27;s fully functional.<p>The main MIT Scheme page say that it&#x27;s not possible and need significant efforts, so I would be curious to get a description as to why one claim it&#x27;s impossible while the other show that it compiles and starts.<p>Are the original authors too much against M1&#x2F;Apple and justify themselves ? Or does compiling on M1 sort-of works until you hit more complex features that will crash or misbehave ?
评论 #29714264 未加载
mark_l_watsonover 3 years ago
I got MIT Scheme running on my M1 MacBook Pro about 6 months ago when I bought the book &quot;Software Design for Flexibility&quot; and although I can&#x27;t find my notes for that, I think I remember building from source natively, not via Rosetta - but I may remember incorrectly.<p>I also remember it taking a while to get Gerbil Scheme running on M1.
评论 #29716631 未加载
pupdroidover 3 years ago
The Racket fork of Chez Scheme runs natively on Apple ARM (AFAIK these changes have not yet been merged into the main branch of Chez Scheme)<p><a href="https:&#x2F;&#x2F;github.com&#x2F;racket&#x2F;ChezScheme&#x2F;" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;racket&#x2F;ChezScheme&#x2F;</a>
softwarebewareover 3 years ago
Just fyi in dark mode on this site, the code snippets are almost unreadable
评论 #29733643 未加载
jeffrallenover 3 years ago
Rule of thumb: don&#x27;t take advice from people who can&#x27;t explain why they suggest you comment code out.
评论 #29733653 未加载
montmorency88over 3 years ago
Very cool how much interest there is in mit-scheme and sicm. On the csail website I think the &#x27;.com&#x27; binary for scmutils only works with v10 and was released about a year ago. Does anyone know where there are instructions for finding&#x2F;compiling a version that works with the latest version of mit scheme?
rcarmoover 3 years ago
Nice. FYI, I&#x27;ve been using Fennel on Monterey (via brew), and it&#x27;s also great for that extra LISPy feeling.
wyclifover 3 years ago
I wish I had known this before I recently installed Racket because I&#x27;m currently reading SICP.
Koshkinover 3 years ago
That MIT Scheme includes an emacs clone that uses Scheme instead of elisp is a nice touch.
评论 #29721034 未加载
thomasjudgeover 3 years ago
Just a UI comment, the white highlighting of white text on a black&#x2F;grey background is pretty unreadable in my browser
评论 #29714260 未加载
评论 #29721357 未加载