[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Fix the R6RS exact-integer-sqrt and import into core guile

From: Peter Brett
Subject: Re: [PATCH] Fix the R6RS exact-integer-sqrt and import into core guile
Date: Sat, 09 Apr 2011 00:34:44 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux)

address@hidden (Ludovic Courtès) writes:

>   1. I think we shouldn’t augment the C API unless strictly necessary,
>      because the idea is to write Scheme, not C, and because of the
>      maintenance cost.

At the risk of repeating myself:

The main attraction of using libguile for me is the fact that Guile has
a quite comprehensive C API for operating on Scheme values, and one that
is much more powerful and complete than most other embeddable Schemes.
Calling a scm_xxx_yyy() function is far far far (far far) more
convenient than looking up and dereferencing a Scheme variable, checking
that the value is a procedure of the correct number of arguments and
then constructing a procedure call.  I find the increasing frequency of
people asserting that "the idea is to write Scheme, not C" disturbing,
and the trend certainly makes me worry whether embedded interpreter
users being increasingly treated as second class citizens.


Peter Brett <address@hidden>
Remote Sensing Research Group
Surrey Space Centre

reply via email to

[Prev in Thread] Current Thread [Next in Thread]