unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
From: Greg Troxel <gdt@ir.bbn.com>
To: mikael@djurfeldt.com
Cc: "Ludovic Courtès" <ludo@gnu.org>, guile-devel@gnu.org
Subject: Re: Heads up: Releasing 1.8.2
Date: Tue, 26 Jun 2007 08:19:20 -0400	[thread overview]
Message-ID: <rmibqf2gb7b.fsf@fnord.ir.bbn.com> (raw)
In-Reply-To: <66e540fe0706250542gfaf6effif30c55b81d1db5e3@mail.gmail.com> (Mikael Djurfeldt's message of "Mon, 25 Jun 2007 14:42:10 +0200")

"Mikael Djurfeldt" <mikael@djurfeldt.com> writes:

> Isn't the original and only purpose of Guile's provide/require to be
> part of support for slib?  I think the idea was to tell slib (and
> other code) what feature sets are already present in Guile.  My guess
> is that the original was simply a clone of the corresponding parts of
> slib, so that they could simply replace the slib version.

That sounds believable to me.  A quick grep shows that it's a bit messier.  If provides/require and friends are only internal to guile, and not part of the inerface to the user, and are for  a different purpose, it seems easy enough

I should note that the 1.8.1 I'm using replaces ice-9/slib.scm:

# scmconfig.h will be rebuilt first thing.  This hack is here because
# gen-scmconfig.c includes string.h (from /usr/include) which in turn
# tries to include /usr/include/strings.h but instead the compiler picks
# up ./strings.h which tries to include scmconfig.h which doesn't exist
# yet.  While not a clean fix, this seems to work around the problem.
#
# 
# for info on the slib part, see
# http://lists.gnu.org/archive/html/guile-user/2006-11/msg00035.html
post-patch:
        ${TOUCH} ${WRKSRC}/libguile/scmconfig.h
        echo "(define-module (ice-9 slib))" > ${WRKSRC}/ice-9/slib.scm
        echo "(load-from-path \"slib/guile.init\")" >> ${WRKSRC}/ice-9/slib.scm 
> With time, however, slib has developed independently of Guile.  I
> think what needs to be done is to come to an agreement with Aubrey
> Jaffer of how the interface to slib should look like and how it should
> be maintained.  When I last looked at it, slib's Guile interface was
> based on heavily outdated assumptions.  Preferably, the Guile part of
> slib should be minimal, giving larger freedom for development on both
> sides.

I agree.  The above is pretty minimal, except that there's a definition
of provide and require.

Probably slib should have a procedure that's callable just after init to
give it a list of names that the native implementation provides.  I see
no need for provide native guile to have provide/require.

> When doing this, it is important that the result works well with
> Guile's module system.

Yes, but I think now all the slib symbols end up in (ice-9 slib), and
get exported, and that's ok.

I think that fixing the requires confusion and slib/module system
interaction are orthogonal, and that we might as well do the requires
stuff first.


_______________________________________________
Guile-devel mailing list
Guile-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-devel


  reply	other threads:[~2007-06-26 12:19 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-23 15:43 Heads up: Releasing 1.8.2 Ludovic Courtès
2007-06-24 22:31 ` Greg Troxel
2007-06-25  8:11   ` Ludovic Courtès
2007-06-25 12:42   ` Mikael Djurfeldt
2007-06-26 12:19     ` Greg Troxel [this message]
2007-06-26 15:34       ` Mikael Djurfeldt
2007-08-15 23:08     ` Kevin Ryde

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=rmibqf2gb7b.fsf@fnord.ir.bbn.com \
    --to=gdt@ir.bbn.com \
    --cc=guile-devel@gnu.org \
    --cc=ludo@gnu.org \
    --cc=mikael@djurfeldt.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).