unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
* bug#24102: Use guile variable objects as SRFI-111 boxes.
@ 2016-07-29  9:21 Glenn Michaels
  2016-08-02 10:25 ` Glenn Michaels
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Glenn Michaels @ 2016-07-29  9:21 UTC (permalink / raw)
  To: 24102

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





^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2017-03-01  8:51 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-07-29  9:21 bug#24102: Use guile variable objects as SRFI-111 boxes Glenn Michaels
2016-08-02 10:25 ` 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

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).