From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Glenn Michaels" Newsgroups: gmane.lisp.guile.bugs Subject: bug#24102: Use guile variable objects as SRFI-111 boxes. Date: Fri, 29 Jul 2016 05:21:53 -0400 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1469784213 7595 80.91.229.3 (29 Jul 2016 09:23:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 29 Jul 2016 09:23:33 +0000 (UTC) To: 24102@debbugs.gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Fri Jul 29 11:23:21 2016 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1bT40l-0001qe-Qd for guile-bugs@m.gmane.org; Fri, 29 Jul 2016 11:23:19 +0200 Original-Received: from localhost ([::1]:58388 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bT40f-00046B-M7 for guile-bugs@m.gmane.org; Fri, 29 Jul 2016 05:23:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42417) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bT40Z-000464-2h for bug-guile@gnu.org; Fri, 29 Jul 2016 05:23:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bT40U-0005tD-Ry for bug-guile@gnu.org; Fri, 29 Jul 2016 05:23:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:52663) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bT40U-0005t5-Ob for bug-guile@gnu.org; Fri, 29 Jul 2016 05:23:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bT40U-00039o-FU for bug-guile@gnu.org; Fri, 29 Jul 2016 05:23:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Glenn Michaels" Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Fri, 29 Jul 2016 09:23:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 24102 X-GNU-PR-Package: guile X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-guile@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.146978414012071 (code B ref -1); Fri, 29 Jul 2016 09:23:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 29 Jul 2016 09:22:20 +0000 Original-Received: from localhost ([127.0.0.1]:49960 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bT3zn-00038d-LH for submit@debbugs.gnu.org; Fri, 29 Jul 2016 05:22:19 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:51251) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bT3zk-00038N-45 for submit@debbugs.gnu.org; Fri, 29 Jul 2016 05:22:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bT3ze-0005my-1b for submit@debbugs.gnu.org; Fri, 29 Jul 2016 05:22:10 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:60122) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bT3zd-0005mj-Ug for submit@debbugs.gnu.org; Fri, 29 Jul 2016 05:22:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42208) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bT3zb-0003ro-O7 for bug-guile@gnu.org; Fri, 29 Jul 2016 05:22:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bT3zY-0005lx-CZ for bug-guile@gnu.org; Fri, 29 Jul 2016 05:22:07 -0400 Original-Received: from www.safe-mail.net ([212.29.227.81]:55968 helo=orange.safe-mail.net) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bT3zY-0005kS-4k for bug-guile@gnu.org; Fri, 29 Jul 2016 05:22:04 -0400 Original-Received: by orange.safe-mail.net with Safe-mail (Exim 4.84) (envelope-from ) id 1bT3zO-0007Vt-B5 for bug-guile@gnu.org; Fri, 29 Jul 2016 05:21:54 -0400 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=N1-0105; d=Safe-mail.net; b=ciuuGj7NAsZDwrd9COR3CE5LOirPh/pO306xwxhGvrycrACcmiXkjF+rlc42ngCQ J87KHHk2S3hMVzfc52hMAupd//woPH+cAGZipbeqEJZf2wZXYNgKiZpqGuOmfD+6 2GrhFmiSyTXUpcMQFt4PZnyQMeaF4S24py3drBWWBx4=; Original-Received: from pc ([185.65.134.81]) by Safe-mail.net with https X-SMType: Regular X-SMRef: N1O-EYuO2QhvA6 X-SMSignature: nL00nQ99PTQU4Mhmu00i2e5ftqAWOQn8zZc5wIlBAQSUULflOmtsneji9lTac7TW 50pWwgwEJ8rs1TjUsRjP7JnA2VeCptMEuri29KVAGcYRQj5mfXcMjNaYXLNx61Rm 5DzHtn57kWVZxUXUbbNi9OzbJudr59Uexf2lLGRKO8I= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-guile@gnu.org List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Original-Sender: "bug-guile" Xref: news.gmane.org gmane.lisp.guile.bugs:8322 Archived-At: 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