7 ms·
Does anybody know of a way to run the code in this book? I've tried a couple of times but never quite succeeded.
by Schiphol 11mo ago
Does anybody know of a way to run the code in this book? I've tried a couple of times but never quite succeeded.
- nemoniac 11mo agoYou can run it in Racket with the SICP language. https://docs.racket-lang.org/sicp-manual/SICP_Language.html https://docs.racket-lang.org/sicp-manual/SICP_Language.html
- Schiphol 11mo agoAh, 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!
- noosphr 11mo agohttps://github.com/perceptual-ai/sicm-scheme-exercises https://github.com/perceptual-ai/sicm-scheme-exercises
- Schiphol 11mo agoThis is what I tried, unsuccessfully if I remember correctly. I'll give it another try, thanks!
- gsf_emergency_4 11mo agohttps://groups.csail.mit.edu/mac/users/gjs/6946/installation.html https://groups.csail.mit.edu/mac/users/gjs/6946/installation... https://stackoverflow.com/questions/62518079/scmutils-for-sicm https://stackoverflow.com/questions/62518079/scmutils-for-si... Easter egg: if you dig deeper into the code you will find the "amazing bug" (footnote on page 5) https://arxiv.org/abs/1211.4892 https://arxiv.org/abs/1211.4892
- gugagore 11mo agoThe bug being "perturbation confusion"?
- gsf_emergency_4 11mo agoThe 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)
- kkylin 11mo agoMIT 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=readme-ov-file https://github.com/kkylin/mit-scheme-intel-mac-patch?tab=rea... Works well on Intel Macs and (with effort) mostly works on Apple Silicon.
- HexDecOctBin 11mo agoI found this, will try tomorrow: https://hub.docker.com/r/sritchie/mechanics/ https://hub.docker.com/r/sritchie/mechanics/
- tantony 11mo agoI was able to get pretty far using Clojure and this package instead of Scheme: https://github.com/sicmutils/sicmutils 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/ https://www.thomasantony.com/projects/sicm-workbook/