4 ms·
You can run all the code from the book and do all the exercises in Racket(https://racket-lang.org https://racket-lang.org) with minimal modification.
by xxyzz 6y ago
You can run all the code from the book and do all the exercises in Racket(https://racket-lang.org https://racket-lang.org) with minimal modification.
- caslon 6y agoOr, ideally, use mit-scheme, and have zero modification.
- xxyzz 6y agoBut drracket is more easier to use.
- caslon 6y agoNo, not really. $ mit-scheme MIT/GNU Scheme running under GNU/Linux Type `^C' (control-C) followed by `H' to obtain information about interrupts. Copyright (C) 2014 Massachusetts Institute of Technology This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Image saved on Friday January 4, 2019 at 11:17:34 PM Release 9.2 || Microcode 15.3 || Runtime 15.7 || SF 4.41 || LIAR/C 4.118 || Edwin 3.116 1 ]=>
- harry8 6y agohttps://www.mail-archive.com/mit-scheme-devel@gnu.org/msg01515.html https://www.mail-archive.com/mit-scheme-devel@gnu.org/msg015... vs https://docs.racket-lang.org/guide/scripts.html https://docs.racket-lang.org/guide/scripts.html MIT scheme does not love us as users. That's fine. That's entirely their decision of which this is one example. This aspect of the mit-scheme culture is a pretty significant hurdle to it gaining popularity. Probably one that was simply too big. I believe it has been replaced with python for 6.001 nowadays too. Another example of the same mentality can be seen in the really great SICP video lectures. Jerry Sussman treats the audience like a compiler. He takes the view if he says it once correctly, successful communication of the idea is no longer his problem. That's a lot easier for the audience now we can rewind videos and listen to some small number of sentences again, and again until we get it. It's not exactly a fun way to learn things. It is also a massive contrast to the way say Larry Wall or Guido Van Rossum went about things. I've noticed since Perl ever single new language trumpets how friendly and /helpful/ the community is. I think that's probably pretty significant. This is not a criticism of Jerry, I don't know what his objectives with the language and SICP course were. Hard to get into is hard to get into whatever the reasons.
- koalahedron 6y agoFurthermore, to get an Emacs-like REPL (Edwin) 1 ]=> (edit) ;Loading "/usr/lib/x86_64-linux-gnu/mit- scheme/lib/prx11.so"... done
- vitus 6y agoI usually just open up a *scratch* buffer in emacs, and use ctrl-J to evaluate expressions. I think my most common use case is for math (e.g. adding values that I extracted via some emacs keyboard macros).
- bmitc 6y agoWindows is not even supported by MIT Scheme anymore. There is also the #lang sicp for Racket that needs no modification from the code in the book, to my knowledge.
- vats 6y agoSICP language in racket lacks 1+ and -1+ (increment and decrement), last I checked. So it does still need some modification.
- soegaard 6y agoAre those actually used in the book? But if needed, the user can write: (define (1+ x) (+ x 1)) (define (1- x) (- x 1)) Although, I think, add1 and sub1 are more common nowadays.
- jgwil2 6y agoPretty sure that example comes from the first edition. #lang sicp is made to work with the second edition I assume.
- xxyzz 6y agoRacket can also be used in terminal. But I think it's harder to debug in terminal compared to debug in DrRacket especially in the later chapter. Besides, racket also has a sicp package for the book(https://docs.racket-lang.org/sicp-manual https://docs.racket-lang.org/sicp-manual).
- konjin 6y agoMIT scheme does not have the picture language.
- koalahedron 6y agoIt really seems like it should.
- rekado 6y agoSpeaking of which: Guile also has a picture language: https://elephly.net/guile-picture-language/ https://elephly.net/guile-picture-language/
- deleted 6y ago[deleted]