From: "Glenn Michaels" <gmichaels@Safe-mail.net>
To: 24102@debbugs.gnu.org
Subject: bug#24102: Use guile variable objects as SRFI-111 boxes.
Date: Fri, 29 Jul 2016 05:21:53 -0400 [thread overview]
Message-ID: <N1O-EYuO2QhvA6@Safe-mail.net> (raw)
Currently, guile's (srfi srfi-111) module ("mutable boxes") provides
an implementation based on records with a single value field.
Wouldn't it make more sense to re-export the functions make-variable,
variable?, variable-ref and variable-set! from the guile core as box,
box?, unbox and set-box! respectively?
These functions have the same signatures and the same semantics as
required by the SRFI-111 spec., and they appear to be significantly
faster than the current record-based implementation.
Moreover, SRFI-111 boxes and guile variable objects are clearly
semantically the same thing. It's bad enough having two names for the
same thing, without having two implementations too.
Reference: http://srfi.schemers.org/srfi-111/srfi-111.html
next reply other threads:[~2016-07-29 9:21 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-29 9:21 Glenn Michaels [this message]
2016-08-02 10:25 ` bug#24102: Use guile variable objects as SRFI-111 boxes Glenn Michaels
2016-08-04 20:59 ` Andy Wingo
2016-08-05 4:31 ` Mark H Weaver
2016-08-05 4:37 ` Mark H Weaver
2016-08-18 13:07 ` Glenn Michaels
2016-08-18 16:14 ` Mark H Weaver
2016-08-31 9:03 ` Andy Wingo
2017-03-01 8:51 ` Andy Wingo
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=N1O-EYuO2QhvA6@Safe-mail.net \
--to=gmichaels@safe-mail.net \
--cc=24102@debbugs.gnu.org \
/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).