comp.lang.scheme

Syndicate content
The Scheme Programming language.
Updated: 13 weeks 6 days ago

Compiling Gambit on Windows

Fri, 03/28/2008 - 18:04
I am trying (without success) to compile Scheme programs using the
gambit compiler. I searched the web, and noticed that I am not the
only one who failed. The manual does not help much, since it gives
examples for Mac OS-X, and for Linux, but none for Windows. Here is
what I did:
gsc -link test.scm
This generates two files:

Transforming Data (with Macros)

Fri, 03/28/2008 - 18:04
Hi,
I need to implement a kind of template processor in which simple
constructs like this:
(define-activity
:name activity-name
:subactivities subactivity-list)
get translated into a bunch of replacement s-expressions.
I have a simple define-syntax macro definition that seems to work on forms
when they appear in the same Scheme code as the define-syntax form or are

GMP integration

Fri, 03/28/2008 - 18:04
Back in 2003 there was a flurry of Scheme implementations adopting/
integrating with the GMP libraries. Does anyone know what the current
state of play is on that topic?
david

SRFI 97: SRFI Libraries

Fri, 03/28/2008 - 18:04
This announces the availability for discussion of
Scheme Request for Implementation 97
"SRFI Libraries"
by David Van Horn.
Its draft and an archive of the ongoing discussion is available at
[link]
You can join the discussion of the draft by sending an email message
with a "subscribe" subject line to

scheme coding help...

Fri, 03/28/2008 - 18:04
Just a couple questions about scheme, thanks for all your help in
advance.
Say for example, you have a file with one line of text in it.
How would you go about doing the following:
Take the file name as a command line argument
Retrieve the first and only line of the file
Place the line into a list with each word as separate elements

Summer of Code 2008

Fri, 03/28/2008 - 18:04
Guys,
LispNYC is an official Google Summer of Code 2008 mentoring
organization and is now accepting proposals for anything involving
Lisp-based technology:
[link]
This is an exciting year as we already have non-Google funding offers
for projects. Check out the ideas, toss in your own and feel free to

Emacs 'M-x run-scheme' with MIT/GNU scheme

Fri, 03/28/2008 - 18:04
When I do 'M-x run-scheme' in emacs, it doesn't autoindent
correctly with mit-scheme. If I do 'C-u M-x run-scheme' with guile or
mzscheme, autoindent works perfectly. Any ideas?

Eager comprehensions for Bigloo

Fri, 03/28/2008 - 18:04
Many people ran into trouble while trying to use Eager Comprehensions
(SRFI-42) on Bigloo; there are two issues: (1) Bigloo does not accept
identifiers containing the colon character, that it reserves for the
optional type declaration; (2) The :list generator suffers from name
capture, and produces wrong results when running in :parallel. I

Exercise 3.1.1

Fri, 03/28/2008 - 18:04
First, get the attendeees from the ticket value or "t"
(define (attendees t)
(+ 120 (* 15 (/ (- 5 t) .1))))
(define (revenue t)
(* t (attendees t)))
(define (cost t)
(+ 180 (* .04 (attendees t))))
(define (profit t)
(- (revenue t) (cost t)))

Square brackets issue.

Fri, 03/28/2008 - 18:04
First of all, thank you guys for your great help in my first post in
this group (the question related to libraries).
Now, another question:
I'm playing a little with macros, and I'm building a macro that builds
a function using the list data type. Here it is:
(define-macro m2
(lambda ()
(list 'define 'm2

Local: LispSTL Meeting

Fri, 03/28/2008 - 18:04
Please come join us for our first social meeting of LispSTL on Friday
March 28, 2008
from 7pm till 10pm. At Kayak's Cafe, 276 North Skinker Blvd.
Open to the Public, so all are welcome.
[link]

Scheme eval issues

Fri, 03/28/2008 - 18:04
This SHOULDN'T matter, but the following questions stems from running
Scheme under Windows XP.
(define (rep-loop)
(display "repl>")
(write (eval (read)))
(rep-loop))
1 ]=> (rep-loop)
repl>(+ 4 5)
When I run this, or any kind of variation, I an error message that is
something like the following.

Bigloo+GUI: Tutorial for Linux

Wed, 03/26/2008 - 17:56
Only after receiving many emails from readers, I noticed that I have
not posted the Linux version of the Bigloo/GUI tutorial. This may
explain why the stalin version of the tutorial is much in demand,
compared with the Bigloo version. BTW, the Linux tutorial, libraries,
and GUI examples are ready for download at

Advanced Interactive Shell

Wed, 03/26/2008 - 17:56
Hello Group,
I'm looking for a somewhat advanced scheme shell (something like
ipython for python, but, well for scheme).
Features that I'd appreciate:
* gnu readline line editing
* visual parentheses matching (like the vim standard-plugin MatchParen
does)
* <tab> syntax completion
One solution that provides line editing is to pipe through ledit, but

Stalin / New tutorial

Wed, 03/26/2008 - 17:56
From the number of downloads, and emails received by members of my
group, I noticed that stalin is much more popular than bigloo. I
cannot understand the reason for this strong preference for stalin,
since bigloo is also a fine implementation of Scheme. Anyway, I posted
two more chapters of the stalin tutorial. I give many examples of

[image manipulation]

Wed, 03/26/2008 - 17:56
Hi,
I discovered Scheme thanks to Gimp.
As I suffered from not being able to ask Gimp to do what I really wanted
it to do, I studied the language rather seriously with SICP.
Now, when I read a "script-fu" found on the Internet, I can decide
whether or not the author profited from the powerfulness of Scheme by