From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ludo@gnu.org (Ludovic =?iso-8859-1?Q?Court=E8s?=) Newsgroups: gmane.lisp.guile.devel Subject: Re: srfi-18 and the vm Date: Sat, 23 May 2009 00:04:48 +0200 Message-ID: <87fxewssjj.fsf@gnu.org> References: <878wkp41ie.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1243029915 16752 80.91.229.12 (22 May 2009 22:05:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 22 May 2009 22:05:15 +0000 (UTC) To: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Sat May 23 00:05:08 2009 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1M7crU-0002Zn-8J for guile-devel@m.gmane.org; Sat, 23 May 2009 00:05:08 +0200 Original-Received: from localhost ([127.0.0.1]:52233 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M7crT-00086y-68 for guile-devel@m.gmane.org; Fri, 22 May 2009 18:05:07 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M7crQ-00086m-Rf for guile-devel@gnu.org; Fri, 22 May 2009 18:05:04 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M7crM-00083x-D0 for guile-devel@gnu.org; Fri, 22 May 2009 18:05:04 -0400 Original-Received: from [199.232.76.173] (port=54731 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M7crM-00083m-4C for guile-devel@gnu.org; Fri, 22 May 2009 18:05:00 -0400 Original-Received: from main.gmane.org ([80.91.229.2]:47151 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1M7crL-0005TW-FA for guile-devel@gnu.org; Fri, 22 May 2009 18:04:59 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1M7crJ-0001nA-Qk for guile-devel@gnu.org; Fri, 22 May 2009 22:04:57 +0000 Original-Received: from reverse-83.fdn.fr ([80.67.176.83]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 22 May 2009 22:04:57 +0000 Original-Received: from ludo by reverse-83.fdn.fr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 22 May 2009 22:04:57 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 33 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: reverse-83.fdn.fr X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 4 Prairial an 217 de la =?iso-8859-1?Q?R=E9volution?= X-PGP-Key-ID: 0xEA52ECF4 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 821D 815D 902A 7EAB 5CEE D120 7FBA 3D4F EB1F 5364 X-OS: i686-pc-linux-gnu User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.90 (gnu/linux) Cancel-Lock: sha1:xypoctvRGunaL6NNbwMIUxOcjTA= X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:8507 Archived-At: Andy Wingo writes: > On Fri 22 May 2009 17:10, ludo@gnu.org (Ludovic Courtès) writes: >> Andy Wingo writes: >> >>> I'm catching up with mail. On my syncase-in-boot-9 branch, I enabled >>> compilation of srfi-18 and fixed a bug in it regarding multiple-value >>> returns. Now I just ran the srfi-18 test like 100 times in a row and it >>> didn't show any strange errors. Yaaaay! >> >> What kind of "strange errors" would it lead to before? > > Random ones based on races, as code was lazily memoized from multiple > threads at once. OK (I thought you were referring to errors related to multiple-value returns.) Then, indeed, yaay! > Indeed. The VM truncates multiple values, but here we were doing a (let > ((x (values))) something x), which returned 0 values to a continuation > needing a value, raising a valid error. Fixed that in the original > source code. > > In addition, we were sometimes getting 0 values in a for-effect context, > which the GHIL->GLIL compiler didn't support. Like this: > > (begin (call/cc (lambda (k) (k))) 10) > > I've fixed this in the tree-il->glil compiler. Thanks for the explanation. Ludo'.