Hi,
I am new to Gambit as well as new to Scheme programming. I would like to download and use a Stable version of scheme. Also, I want to compile from source rather than use the binary distribution.
Can someone tell me which file I need to download? I see bunch of files in the site. Which version is the stable version? And further whats the difference between gambc-v#_#_#-devel.tgz & gambc-v#_#_#.tgz and which one should I download?
Thanks,
Nikhil
Afficher les réponses par date
Hi!
Last versions of Gambit are stable.
follow next instructions (for Linux):
get source code here: http://www.iro.umontreal.ca/~gambit/download/gambit/v4.5/source/gambc-v4_5_3...
unpack it: tar -xzf gambc-v4_5_3.tgz
configure it:
if you have fast computer with lots of memory (i need more than 6 Gig on my 64 bit desktop to compile gambit with this options):
./configure --enable-gcc-opts --enable-single-host
otherwise:
./configure --enable-gcc-opts
make all sources:
make
and install:
sudo make install
and you'll get two main programs installed: gsi and gsc. gsi - interpreter and gsc is compiler scheme-to-c and c-to-obj via gcc.
Use gsi to learn basic features of scheme.
I may recommend next books to read: 1. SICP http://mitpress.mit.edu/sicp/full-text/book/book.html 2. Concepts, Techniques, and Models of Computer Programming www.ulb.ac.be/di/rwuyts/INFO020_2003/vanRoyHaridi2003-book.pdf 3 Concrete Abstractions http://gustavus.edu/+max/concrete-abstractions.html 4. How to design programs http://www.htdp.org/2003-09-26/Book/
Vasil
Nikhil Barthwal wrote:
Hi,
I am new to Gambit as well as new to Scheme programming. I would like to download and use a Stable version of scheme. Also, I want to compile from source rather than use the binary distribution.
Can someone tell me which file I need to download? I see bunch of files in the site. Which version is the stable version? And further whats the difference between gambc-v#_#_#-devel.tgz & gambc-v#_#_#.tgz and which one should I download?
Thanks,
Nikhil
Gambit-list mailing list Gambit-list@iro.umontreal.ca https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list
On Mon, 2009-12-07 at 03:17 +0300, vasil wrote:
configure it:
if you have fast computer with lots of memory (i need more than 6 Gig on my 64 bit desktop to compile gambit with this options):
./configure --enable-gcc-opts --enable-single-host
otherwise:
./configure --enable-gcc-opts
In my experience, --enable-single-host is much more important than --enable-gcc-opts for speed.
Brad
Bradley Lucier wrote:
On Mon, 2009-12-07 at 03:17 +0300, vasil wrote:
configure it:
if you have fast computer with lots of memory (i need more than 6 Gig on my 64 bit desktop to compile gambit with this options):
./configure --enable-gcc-opts --enable-single-host
otherwise:
./configure --enable-gcc-opts
In my experience, --enable-single-host is much more important than --enable-gcc-opts for speed.
Yes, with --enable-single-host option Gambit runs about 1.5 to 2 times faster. But on my x86_64 machine compilation with some not-so-good versions of GCC (4.3.x) take about 10 Gigabytes of virtual memory in peak and near 30 minutes. If target architecture is 32bit with small amount of registers (x86, for instance), then --enable-single-host is strongly recommended option.
PS: For MIPS32 arch on Au1250 system compilation of Gambit took about 6 hours with --enable-single-host :)
Vasil
Hi Everyone,
Thanks for your help. Unfortunately I am getting errors during the build process. I tried:
./configure --prefix=/home/nikhil/Programs/Scheme --enable-gcc-opts --enable-single-host
Everything seems to be fine except a warning message that some optimization will not work. But when I invoked make, the attached error message popped up. Please help!
Thanks,
Nikhil
nikhil@barthwal:~/Programs/gambc-v4_5_3$ make making all in include make[1]: Entering directory `/home/nikhil/Programs/gambc-v4_5_3/include' major=`echo v4.5.3 | sed -e "s/v//g" -e "s/.[^.]*.[^.]*//g"`; \ minor=`echo v4.5.3 | sed -e "s/v[^.]*.//g" -e "s/.[^.]*//g"`; \ revision=`echo v4.5.3 | sed -e "s/v[^.]*.[^.]*.//g" -e "s///g"`; \ version_num=`eval expr "( 100000 \* $major ) + ( 1000 \* $minor ) + $revision"`; \ echo "#error "The version indicated in ___VERSION is not supported by gambit.h"" > gambit-not$version_num.h; \ echo "#error "You are probably compiling C code generated by a Gambit compiler earlier or later than v4.5.3"" >> gambit-not$version_num.h; \ echo "#error "___VERSION will be set to $version_num to reduce other errors"" >> gambit-not$version_num.h; \ echo "#undef ___VERSION" >> gambit-not$version_num.h; \ echo "#define ___VERSION $version_num" >> gambit-not$version_num.h; \ echo "#include "gambit.h"" >> gambit-not$version_num.h make[1]: Leaving directory `/home/nikhil/Programs/gambc-v4_5_3/include' making all in lib make[1]: Entering directory `/home/nikhil/Programs/gambc-v4_5_3/lib' ../gsc-comp -:~~bin=../bin,~~lib=../lib,~~include=../include -f -c -check _io.scm /bin/sh: ../gsc-comp: not found make[1]: *** [_io.c] Error 127 make[1]: Leaving directory `/home/nikhil/Programs/gambc-v4_5_3/lib' make: *** [all-recursive] Error 1
The time stamps on your files seems to be inconsistent. Please start from a freshly unpacked gambc-v4_5_3.tgz . If that doesn't work, you can probably do "touch */*.c" and then "make".
Marc
On 2009-12-06, at 11:17 PM, Nikhil Barthwal wrote:
Hi Everyone,
Thanks for your help. Unfortunately I am getting errors during the build process. I tried:
./configure --prefix=/home/nikhil/Programs/Scheme --enable-gcc-opts --enable-single-host
Everything seems to be fine except a warning message that some optimization will not work. But when I invoked make, the attached error message popped up. Please help!
Thanks,
Nikhil
nikhil@barthwal:~/Programs/gambc-v4_5_3$ make making all in include make[1]: Entering directory `/home/nikhil/Programs/gambc-v4_5_3/include' major=`echo v4.5.3 | sed -e "s/v//g" -e "s/.[^.]*.[^.]*//g"`; \ minor=`echo v4.5.3 | sed -e "s/v[^.]*.//g" -e "s/.[^.]*//g"`; \ revision=`echo v4.5.3 | sed -e "s/v[^.]*.[^.]*.//g" -e "s///g"`; \ version_num=`eval expr "( 100000 \* $major ) + ( 1000 \* $minor ) + $revision"`; \ echo "#error "The version indicated in ___VERSION is not supported by gambit.h"" > gambit-not$version_num.h; \ echo "#error "You are probably compiling C code generated by a Gambit compiler earlier or later than v4.5.3"" >> gambit-not$version_num.h; \ echo "#error "___VERSION will be set to $version_num to reduce other errors"" >> gambit-not$version_num.h; \ echo "#undef ___VERSION" >> gambit-not$version_num.h; \ echo "#define ___VERSION $version_num" >> gambit-not$version_num.h; \ echo "#include "gambit.h"" >> gambit-not$version_num.h make[1]: Leaving directory `/home/nikhil/Programs/gambc-v4_5_3/include' making all in lib make[1]: Entering directory `/home/nikhil/Programs/gambc-v4_5_3/lib' ../gsc-comp -:~~bin=../bin,~~lib=../lib,~~include=../include -f -c -check _io.scm /bin/sh: ../gsc-comp: not found make[1]: *** [_io.c] Error 127 make[1]: Leaving directory `/home/nikhil/Programs/gambc-v4_5_3/lib' make: *** [all-recursive] Error 1
Gambit-list mailing list Gambit-list@iro.umontreal.ca https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list
Hi!
I am integrating Scheme with my other tool-chain and I need to make some changes to it to make it consistent.
1. I observed that Gambit starts with some colouring (bold while on blue background) and the text we type is also bold in colour. I want to disable all test colouring so that everything appears simple regular test.
2. I want to prompt to change from ">" to " * ".
3. Insead of the Gambit v4_5.3 message, I would prefer it just says "Scheme".
I downloaded the gambc-v4_5_3-devel.tgz file and I was trying to go through the source code but I could not figure out where these formatting were define. Can someone tell me how I can make the above changes or at the very least, where in source code can I do the modifications?
Thanks in advance,
Nikhil
vasil wrote:
Hi!
Last versions of Gambit are stable.
follow next instructions (for Linux):
get source code here: http://www.iro.umontreal.ca/~gambit/download/gambit/v4.5/source/gambc-v4_5_3...
unpack it: tar -xzf gambc-v4_5_3.tgz
configure it:
if you have fast computer with lots of memory (i need more than 6 Gig on my 64 bit desktop to compile gambit with this options):
./configure --enable-gcc-opts --enable-single-host
otherwise:
./configure --enable-gcc-opts
make all sources:
make
and install:
sudo make install
and you'll get two main programs installed: gsi and gsc. gsi - interpreter and gsc is compiler scheme-to-c and c-to-obj via gcc.
Use gsi to learn basic features of scheme.
I may recommend next books to read:
- SICP
http://mitpress.mit.edu/sicp/full-text/book/book.html 2. Concepts, Techniques, and Models of Computer Programming www.ulb.ac.be/di/rwuyts/INFO020_2003/vanRoyHaridi2003-book.pdf 3 Concrete Abstractions http://gustavus.edu/+max/concrete-abstractions.html 4. How to design programs http://www.htdp.org/2003-09-26/Book/
Vasil
Nikhil Barthwal wrote:
Hi,
I am new to Gambit as well as new to Scheme programming. I would like to download and use a Stable version of scheme. Also, I want to compile from source rather than use the binary distribution.
Can someone tell me which file I need to download? I see bunch of files in the site. Which version is the stable version? And further whats the difference between gambc-v#_#_#-devel.tgz & gambc-v#_#_#.tgz and which one should I download?
Thanks,
Nikhil
Gambit-list mailing list Gambit-list@iro.umontreal.ca https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list
These things are defined in lib/_repl.scm . Look for this definition:
(define prompt "> ")
and also the procedure definition ##repl-debug-main .
Are you sure you are not doing your users a disservice by hiding the fact that they are using the Gambit interpreter? Also, the ">" prompt is fairly universal and users may find it annoying (for instance most tutorials use the ">" to indicate the prompt).
Marc
On 2009-12-19, at 6:44 PM, Nikhil Barthwal wrote:
Hi!
I am integrating Scheme with my other tool-chain and I need to make some changes to it to make it consistent.
- I observed that Gambit starts with some colouring (bold while on blue
background) and the text we type is also bold in colour. I want to disable all test colouring so that everything appears simple regular test.
I want to prompt to change from ">" to " * ".
Insead of the Gambit v4_5.3 message, I would prefer it just says
"Scheme".
I downloaded the gambc-v4_5_3-devel.tgz file and I was trying to go through the source code but I could not figure out where these formatting were define. Can someone tell me how I can make the above changes or at the very least, where in source code can I do the modifications?
Thanks in advance,
Nikhil
vasil wrote:
Hi!
Last versions of Gambit are stable.
follow next instructions (for Linux):
get source code here: http://www.iro.umontreal.ca/~gambit/download/gambit/v4.5/source/gambc-v4_5_3...
unpack it: tar -xzf gambc-v4_5_3.tgz
configure it:
if you have fast computer with lots of memory (i need more than 6 Gig on my 64 bit desktop to compile gambit with this options):
./configure --enable-gcc-opts --enable-single-host
otherwise:
./configure --enable-gcc-opts
make all sources:
make
and install:
sudo make install
and you'll get two main programs installed: gsi and gsc. gsi - interpreter and gsc is compiler scheme-to-c and c-to-obj via gcc.
Use gsi to learn basic features of scheme.
I may recommend next books to read:
- SICP
http://mitpress.mit.edu/sicp/full-text/book/book.html 2. Concepts, Techniques, and Models of Computer Programming www.ulb.ac.be/di/rwuyts/INFO020_2003/vanRoyHaridi2003-book.pdf 3 Concrete Abstractions http://gustavus.edu/+max/concrete-abstractions.html 4. How to design programs http://www.htdp.org/2003-09-26/Book/
Vasil
Nikhil Barthwal wrote:
Hi,
I am new to Gambit as well as new to Scheme programming. I would like to download and use a Stable version of scheme. Also, I want to compile from source rather than use the binary distribution.
Can someone tell me which file I need to download? I see bunch of files in the site. Which version is the stable version? And further whats the difference between gambc-v#_#_#-devel.tgz & gambc-v#_#_#.tgz and which one should I download?
Thanks,
Nikhil
Gambit-list mailing list Gambit-list@iro.umontreal.ca https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list
Gambit-list mailing list Gambit-list@iro.umontreal.ca https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list
Hi Nikhil,
And further whats the
difference between gambc-v#_#_#-devel.tgz & gambc-v#_#_#.tgz and which one should I download?
The "-devel" version is meant for developers of gambit, not users. Get the "normal" one, and follow Vasil's guide.
(Still, I think that if you don't have 6 gigs of RAM, you want to do ./configure --enable-single-host instead of ./configure --enable-gcc-opts)
Cheers,
Adrian