Hi!
I'm new to this list and scheme in general.
Can someone please help me with a seemingly obvious thing:
How can I include / import / require srfi modules?
I'd like to use "filter" from srfi-1, for example.
I'd expect that those would ship with the gambit distribution?
Greetings, Dirk
Afficher les réponses par date
(import (std srfi/1))
2013/8/6 Dirk Theisen d.theisen@objectpark.org
Hi!
I'm new to this list and scheme in general.
Can someone please help me with a seemingly obvious thing:
How can I include / import / require srfi modules?
I'd like to use "filter" from srfi-1, for example.
I'd expect that those would ship with the gambit distribution?
Greetings, Dirk _______________________________________________ Gambit-list mailing list Gambit-list@iro.umontreal.ca https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list
Gambit is core essentials just like c compiler + standard c library.
For (import (std srfi/1)) see https://mercure.iro.umontreal.ca/pipermail/gambit-list/2012-November/006188.... .
2013/8/6 Dirk Theisen d.theisen@objectpark.org
Hi!
I'm new to this list and scheme in general.
Can someone please help me with a seemingly obvious thing:
How can I include / import / require srfi modules?
I'd like to use "filter" from srfi-1, for example.
I'd expect that those would ship with the gambit distribution?
Greetings, Dirk _______________________________________________ Gambit-list mailing list Gambit-list@iro.umontreal.ca https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list
On 2013-08-06, at 11:14 AM, Mikael mikael.rcv@gmail.com wrote:
Gambit is core essentials just like c compiler + standard c library.
For (import (std srfi/1)) see https://mercure.iro.umontreal.ca/pipermail/gambit-list/2012-November/006188.... .
You should also check out the Gambit dumping grounds for a "pure Gambit" set of SRFIs:
http://dynamo.iro.umontreal.ca/wiki/index.php/Dumping_Grounds#SRFI
Marc
Hi!
Am 06.08.2013 um 17:20 schrieb Marc Feeley feeley@iro.umontreal.ca:
You should also check out the Gambit dumping grounds for a "pure Gambit" set of SRFIs:
http://dynamo.iro.umontreal.ca/wiki/index.php/Dumping_Grounds#SRFI
Downloading and putting Srfi1.scm into my sources directory worked. However, I feel that this is not the most elegant solution.
Greetings, Dirk
On 2013-08-06, at 11:58 AM, Dirk Theisen d.theisen@objectpark.org wrote:
Hi!
Am 06.08.2013 um 17:20 schrieb Marc Feeley feeley@iro.umontreal.ca:
You should also check out the Gambit dumping grounds for a "pure Gambit" set of SRFIs:
http://dynamo.iro.umontreal.ca/wiki/index.php/Dumping_Grounds#SRFI
Downloading and putting Srfi1.scm into my sources directory worked. However, I feel that this is not the most elegant solution.
Can you explain what you mean by "elegant" solution?
With the SRFI pack you could do:
% tar zxf Srfi-pack-0-1.1.tar.gz % gsi Gambit v4.7.0
(load "srfi-pack/srfi-1.scm")
"/Users/feeley/srfi-pack/srfi-1.scm"
(count odd? '(3 1 4 1 5 9 2 6))
5
Marc
Hi!
Am 06.08.2013 um 17:14 schrieb Mikael mikael.rcv@gmail.com:
For (import (std srfi/1)) see https://mercure.iro.umontreal.ca/pipermail/gambit-list/2012-November/006188.... .
I tried to install black hole from the latest release (0.2) from git here https://github.com/pereckerdal/blackhole/releases.
The compile script issued a warning and after 5 minutes and 5GB of real memory consumption of clang, I needed to stop the installation to prevent my system from running out of memory.
This is on latest OS X 10.8.
Trying Marcs tip now.
Dirk
Probably you have one of the memory hungry GCC version!
What does your gcc -version show (gcc --version?)?
Any egcc on your system?
An alternative is to compile gambit with ./configure without --enable-single-host .
Probably the step in the install instructions you got to was the compilation of std/string/digest.scm . This takes ~2GB RAM on a good GCC version, say 75GB on a bad.
Mikael
2013/8/6 Dirk Theisen d.theisen@objectpark.org
Hi!
Am 06.08.2013 um 17:14 schrieb Mikael mikael.rcv@gmail.com:
For (import (std srfi/1)) see https://mercure.iro.umontreal.ca/pipermail/gambit-list/2012-November/006188.... .
I tried to install black hole from the latest release (0.2) from git here https://github.com/pereckerdal/blackhole/releases.
The compile script issued a warning and after 5 minutes and 5GB of real memory consumption of clang, I needed to stop the installation to prevent my system from running out of memory.
This is on latest OS X 10.8.
Trying Marcs tip now.
Dirk
Gambit-list mailing list Gambit-list@iro.umontreal.ca https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list
Hi!
Am 06.08.2013 um 19:20 schrieb Mikael mikael.rcv@gmail.com:
Probably you have one of the memory hungry GCC version!
Actually, it seemed to be using llvm clang.
Apple LLVM version 4.2 (clang-425.0.28) (based on LLVM 3.2svn) Target: x86_64-apple-darwin12.4.0 Thread model: posix
What does your gcc -version show (gcc --version?)?
i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)
Any egcc on your system?
No.
Cheers! Dirk
Hi, Mikael!
Am 06.08.2013 um 19:20 schrieb Mikael mikael.rcv@gmail.com:
Probably the step in the install instructions you got to was the compilation of std/string/digest.scm . This takes ~2GB RAM on a good GCC version, say 75GB on a bad.
:blackhole theisen$ ./compile.sh bh.scm: *** WARNING -- "bh#compile-file-to-target" is not defined, *** referenced in: ("/usr/local/share/blackhole/bh.c") bh_.c: bh.c: *** INTERRUPTED IN ##thread-check-interrupts!
This is when my machine (8 GB RAM) started to slow down to a crawl and I hit ctrl-c.
Dirk
The absence of compile-file-to-target in your Gambit should mean that you're on a Gambit version older than ~8 months. To fix that please get a newer Gambit.
Your GCC is version 4.2.1. That's a memory hogging GCC version. The 4.4, 4.6 and 4.7 series don't hog.
Also, without replacing your GCC but accepting ~20% slower Gambit code execution, recompile your Gambit with:
./configure ; make; make install
Note the absence of --enable-single-host on the ./configure clal.
This will make your Gambit compile string/digest.scm alright, as far as I remember. Anyhow getting a 4.4+ GCC might be a nicer idea.
Mikael
2013/8/7 Dirk Theisen d.theisen@objectpark.org
Hi, Mikael!
Am 06.08.2013 um 19:20 schrieb Mikael mikael.rcv@gmail.com:
Probably the step in the install instructions you got to was the compilation of std/string/digest.scm . This takes ~2GB RAM on a good GCC version, say 75GB on a bad.
:blackhole theisen$ ./compile.sh bh.scm: *** WARNING -- "bh#compile-file-to-target" is not defined, *** referenced in: ("/usr/local/share/blackhole/bh.c") bh_.c: bh.c: *** INTERRUPTED IN ##thread-check-interrupts!
This is when my machine (8 GB RAM) started to slow down to a crawl and I hit ctrl-c.
Dirk