MIT/GNU Scheme is an implementation of the Scheme programming language, providing an interpreter, compiler, source-code debugger, integrated Emacs-like editor, and a large runtime library. MIT/GNU Scheme is best suited to programming large applications with a rapid development cycle.
Questions tagged [mit-scheme]
252 questions
61
votes
10 answers
How to install MIT Scheme on Mac?
I want to install MIT Scheme on my Mac, I have downloaded the MacOS X binary(x86-64).
However, I could not make it work using Mac Terminal.
I have tried to follow these articles:
Installing MIT/GNU Scheme on Mac OS X Leopard
Installing MIT Scheme on…

Timeless
- 7,338
- 9
- 60
- 94
56
votes
4 answers
How do I execute a .scm script (outside of the REPL) with MIT-Scheme?
I want to type something like 'scheme file.scm' and have it interpret the file, and then take me back to my shell, rather than loading it in the REPL.
edit: I tried scheme < test.scm and it still uses the REPL, the only difference is that scheme…
Rusty
38
votes
3 answers
Strange multiplication behavior in Guile Scheme interpreter
I was practicing Scheme in Guile 1.8.8 interpreter on OS X. I noticed something interesting.
Here's expt function which is basically does exponentiation expt(b,n) = b^n :
(define (square x) (* x x))
(define (even? x) (= (remainder x 2) 0))
…

ahmet alp balkan
- 42,679
- 38
- 138
- 214
30
votes
4 answers
Null value in Mit-Scheme?
Can anyone tell me what is the null value representation in mit-scheme? In the SICP book, it should be "nil" but it doesn't work.
Thanks.

Khue Vu
- 3,112
- 4
- 37
- 40
27
votes
2 answers
mit-scheme REPL with command line history and tab completion
I'm reading SICP and I'm using mit-scheme installed on my os x 10.8 laptop via homebrew.
Everything works as advertised, however I'm spoiled by the ease with which I get tab completion and command line history in REPL's for runtimes like Python and…

aaronstacy
- 6,189
- 13
- 59
- 72
20
votes
1 answer
How to start REPL for slimv with MIT-Scheme
My operating system is Debian Squeeze. Here's the vim version:
VIM - Vi IMproved 7.2 (2008 Aug 9, compiled Jul 12 2010 02:29:33)
I read a tutorial on http://kovisoft.bitbucket.org/tutorial.html and tried to start REPL for MIT-Scheme. Unfortunately,…

Yai0Phah
- 433
- 4
- 14
13
votes
1 answer
How do I make arrow keys work in MIT Scheme interpreter?
I have installed MIT Scheme from the instructions here on my laptop running Yosemite. I can get the scheme interpreter from Terminal, but none of my arrow keys seem to working. For any typing mistakes I make I cannot go back and correct it. I have…

avi
- 9,292
- 11
- 47
- 84
12
votes
2 answers
Installing MIT Scheme on Windows 10 -- 'Requested Allocation is too large'
I'm trying to get Scheme going so I can work through "Structure and Interpretation of Computer Programs" but I keep running into the above-mentioned issue. I know sort of how to solve the problem but I don't know how to go about setting the file in…

Dan
- 153
- 1
- 1
- 8
12
votes
3 answers
Pros and cons of MIT Scheme and DrScheme for studying SICP
What are the pros and cons of using MIT Scheme versus using DrScheme, in the context of trying to go through SICP (presumably simultaneously to watching some / all the MIT 6.001 videos)?

JDelage
- 13,036
- 23
- 78
- 112
11
votes
2 answers
MIT Scheme REPL history
I have been using MIT-Scheme for sometime now, and it works great. However, in the REPL mode, I really miss having a history of all the commands that I typed into it. It's very frustrating to retype a piece of code in case of a small typographical…

Gooner
- 1,380
- 2
- 14
- 25
10
votes
2 answers
Why is Clojure much faster than mit-scheme for equivalent functions?
I found this code in Clojure to sieve out first n prime numbers:
(defn sieve [n]
(let [n (int n)]
"Returns a list of all primes from 2 to n"
(let [root (int (Math/round (Math/floor (Math/sqrt n))))]
(loop [i (int 3)
a…

abo-abo
- 20,038
- 3
- 50
- 71
8
votes
4 answers
mit-scheme -- run a script and exit
I want to evaluate a script from makefile and exit, like this
mit-scheme --load "fact.scm"
However, after it evaluates the file, it does not exit, and the repl appears; if I try the (exit) primitive, it asks for confirmation y/n. Is it possible to…

alinsoar
- 15,386
- 4
- 57
- 74
7
votes
3 answers
MIT/Scheme as a simple compiler under Windows
Is there a possibility to use mit scheme as a simple compiler (without runing Edwin) in Windows?
I want to edit code in wditor of my choice and compile it, but I haven't found and option to do this.
When I execute...
mit-scheme < file.scm
...I get…

Krzysztof Krasoń
- 26,515
- 16
- 89
- 115
7
votes
5 answers
"Requested allocation is too large" error while running MIT Scheme on windows 7
Error:
"Requested allocation is too large.
Try with smaller argument to --heap"
I downloaded the windows binary from http://www.gnu.org/software/mit-scheme/.
How do I fix this?

adijo
- 1,450
- 1
- 14
- 20
7
votes
2 answers
How to obtain my function definition in MIT Scheme?
In JavaScript, I can retrieve the "source code" definition of a function, for example:
function alert_Hi() {
alert("Hi");
}
alert(alert_Hi);
will return exactly what I typed. http://jsfiddle.net/DuCqJ/
How can I do this in MIT Scheme?
I…

Tina CG Hoehr
- 6,721
- 6
- 44
- 57