GNU bug report logs - #24102
Use guile variable objects as SRFI-111 boxes.

Previous Next

Package: guile;

Reported by: "Glenn Michaels" <gmichaels <at> Safe-mail.net>

Date: Fri, 29 Jul 2016 09:23:02 UTC

Severity: normal

Tags: patch

Full log


Message #19 received at 24102 <at> debbugs.gnu.org (full text, mbox):

From: Mark H Weaver <mhw <at> netris.org>
To: "Glenn Michaels" <gmichaels <at> Safe-mail.net>
Cc: Andy Wingo <wingo <at> pobox.com>, 24102 <at> debbugs.gnu.org
Subject: Re: bug#24102: Use guile variable objects as SRFI-111 boxes.
Date: Fri, 05 Aug 2016 00:37:40 -0400
Mark H Weaver <mhw <at> netris.org> writes:

> As a result, some important properties of SRFI-111 boxes do not hold for
> your proposed implementation.  For example, in SRFI-111, (box? x)
> implies that (box-ref x) will not raise an exception, and this fact can
> be exploited by a compiler to produce better native code for 'box-ref'
> when the type of its argument is known to be a box.  In such cases, I
> guess 'box-ref' can be implemented as a single load instruction, whereas
> 'variable-ref' will require a conditional branch.

s/box-ref/unbox/g

     Mark




This bug report was last modified 8 years and 108 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.