Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Does anybody know of a way to run the code in this book? I've tried a couple of times but never quite succeeded.



The bug being "perturbation confusion"?


The specific bug in sicm is discussed on pages 19-21

(Sorry, it's been a while, but iirc the code comments call it the amazing bug, with credit to Radul)


MIT Scheme (and ScmUtils) are unfortunately not getting enough maintainence, but they still work with a little effort. Probably better on Linux than any other environment. If you have a Mac you may try this:

https://github.com/kkylin/mit-scheme-intel-mac-patch?tab=rea...

Works well on Intel Macs and (with effort) mostly works on Apple Silicon.


You can run it in Racket with the SICP language.

https://docs.racket-lang.org/sicp-manual/SICP_Language.html


Ah, nice, I'll try that. SICM in particular relies on numerical routines and things for scientific computing that this perhaps doesn't cover. We'll see. Thanks!


Someone ported the sicm/scmutils code to Racket: https://github.com/bdeket/rktsicm


I think, this is the best way of running the SICM programs.


I was able to get pretty far using Clojure and this package instead of Scheme: https://github.com/sicmutils/sicmutils

I was able to make "CloJupyter" notebooks with the examples from the book. You can see some of my notes here (only goes till Chapter 2): https://www.thomasantony.com/projects/sicm-workbook/


I found this, will try tomorrow: https://hub.docker.com/r/sritchie/mechanics/



This is what I tried, unsuccessfully if I remember correctly. I'll give it another try, thanks!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: