unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
From: ludo@gnu.org (Ludovic Courtès)
To: guile-devel@gnu.org
Subject: Re: srfi-18 and the vm
Date: Sat, 23 May 2009 00:04:48 +0200	[thread overview]
Message-ID: <87fxewssjj.fsf@gnu.org> (raw)
In-Reply-To: m3eiuhgldl.fsf@pobox.com

Andy Wingo <wingo@pobox.com> writes:

> On Fri 22 May 2009 17:10, ludo@gnu.org (Ludovic Courtès) writes:
>> Andy Wingo <wingo@pobox.com> 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'.





  reply	other threads:[~2009-05-22 22:04 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-22 14:39 srfi-18 and the vm Andy Wingo
2009-05-22 15:01 ` Julian Graham
2009-05-22 15:10 ` Ludovic Courtès
2009-05-22 16:20   ` Andy Wingo
2009-05-22 22:04     ` Ludovic Courtès [this message]
2009-05-23  9:52 ` Neil Jerram
2009-05-23 16:38   ` Andy Wingo
2009-05-23 22:03     ` Ludovic Courtès
2009-05-23 22:16       ` Andy Wingo
2009-05-24 14:08         ` Ludovic Courtès
2009-05-25 21:57           ` Neil Jerram
2009-05-29  9:55             ` Andy Wingo
2009-05-30 23:07               ` Neil Jerram
2009-05-31 13:30                 ` 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=87fxewssjj.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=guile-devel@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).