From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 77807 invoked by alias); 21 Feb 2018 00:21:28 -0000 Mailing-List: contact kawa-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: kawa-owner@sourceware.org Received: (qmail 77798 invoked by uid 89); 21 Feb 2018 00:21:27 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=mak, H*Ad:U*kawa, H*r:sk:kawa@so, kawa X-HELO: mail-io0-f170.google.com Received: from mail-io0-f170.google.com (HELO mail-io0-f170.google.com) (209.85.223.170) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 21 Feb 2018 00:21:25 +0000 Received: by mail-io0-f170.google.com with SMTP id e7so278501ioj.1 for ; Tue, 20 Feb 2018 16:21:25 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=266N+UN6ZKteTZI7SGC3rvJS3sv90BYBx8ACTv9mBHE=; b=KEagPRtme6EyR2Rd9ic+hu9eLXJYb5DJte+SFVK/IyAboGD/LfsD2898S9OGGtMSJI HlTrPcUgm0PZf8CtA9MaBeCWB/G+vHIGGrXrgN4L0kYmpIYnlhggSfGfrwyrkwIQieQb YXJK3jnk9A3alpLSSctesqZg7HR89VMFcs1OVqVOqEr18kohKArwJFWtieFwEjl/w2w2 OSE1INsJOcbLpQPGgkGdjF3+ViqyPz2ks4csqN8iRLcOj2CL3ywlDS70m2QIxjcUNzys YCgC/MyTknUqmkEcZ/6QJDZdIpC7L4XOB9DU80IeSef13rgAaTGH7EbU6ztgA7D3QRjE 9JWA== X-Gm-Message-State: APf1xPB1Wk9v262R27GIEC3+KMLRs+ql6xWrRtmA6qfg32179KBOb6pz fJbQ2Nzx/MFF51/VH9ueJ0MdJUOTE9JFtpAlYlY= X-Google-Smtp-Source: AG47ELs9ZxVxy61Ye09Fjae58PPwy6/qerQyt5SJL01hwgcHeYQUA5gsoo/X6MXApBAz0uneblqiucEuD+uDkf9hhvk= X-Received: by 10.107.149.70 with SMTP id x67mr1986596iod.156.1519172483762; Tue, 20 Feb 2018 16:21:23 -0800 (PST) MIME-Version: 1.0 Received: by 10.79.105.70 with HTTP; Tue, 20 Feb 2018 16:21:23 -0800 (PST) In-Reply-To: References: From: Andrea Bernardini Date: Wed, 21 Feb 2018 00:21:00 -0000 Message-ID: Subject: Re: First-class continuations in Kawa To: Duncan Mak Cc: Per Bothner , kawa mailing list Content-Type: text/plain; charset="UTF-8" X-IsSubscribed: yes X-SW-Source: 2018-q1/txt/msg00022.txt.bz2 Hi All, Regarding delimited continuations, you can see the needed changes here https://gitlab.com/andrebask/Kawa/compare/callcc...delimited-continuations Let me know if you are interested in this at all, shouldn't be difficult to add this once Duncan's pull request is merged in. In the same fork there's also a branch with the debugger implementation, however I'm not sure how useful that could be, it was quite experimental Thanks, Andrea On 20 January 2018 at 23:20, Andrea Bernardini wrote: > Yep, that's it. The whole work was originally submitted as patch. > > It is also my fault If this was never merged into master. I remember > that I started working on a switch-based variant of my work after > getting some high level suggestions from Per. That turned out to be a > fair amount of work and I didn't have much time, so I didn't manage to > put together anything working. > > I also have some working code that I mentioned in my thesis but didn't > end up in that patch, as it wasn't well tested. This was mainly for > delimited continuations and for the debugger. I'll share this soon in > a GitLab fork so it doesn't get lost. > > Andrea > > On 20 January 2018 at 16:06, Duncan Mak wrote: >> Looks interesting. >> >> Is the work contained in only these two commits? >> >> https://gitlab.com/kashell/Kawa/commit/a8e678ebf7216e9fad9238e0b1c2442ea371c63c >> https://gitlab.com/kashell/Kawa/commit/f4228b57936de5a84dba0afcfac54196bec86fa4 >> >> >> Duncan. >> >> >> On Sat, Jan 20, 2018 at 1:46 AM, Per Bothner wrote: >>> On 01/19/2018 04:48 PM, Duncan Mak wrote: >>>> >>>> Hello, >>>> >>>> I came across Andrea Bernardini's thesis called First-Class >>>> Continuations on the Java Virtual Machine: An Implementation within >>>> the Kawa Scheme Compiler just the other day. >>>> >>>> >>>> https://www.politesi.polimi.it/bitstream/10589/108685/3/2015_07_Bernardini.pdf >>>> >>>> What happened to that work, was it integrated into the mainline release of >>>> Kawa? >>> >>> >>> Sorry, no. Andrea's work is available in the 'callcc' branch, but it has not >>> been merged into master. Worse, updates to master have not been merged >>> into the callcc branch. >>> >>> It would be useful to at least update the callcc branch with recent changes, >>> and then test, evaluate, and benchmark it. If it is useful, it should be >>> merged in. >>> Even if it is slow, as long as it doesn't hurt the default behavior. It is >>> my fault >>> that hasn't been done, but there were always other things to do. >>> >>> Long time ago, I started on another implementation of continuations based on >>> switch statements. (Each continuation point would be associated with an >>> index, >>> and each function would start with a switch statement with jumps to the >>> continuation points. Capturing a continuation would essentially be saving >>> the >>> corresponding switch index.) Some of that code is still in Kawa, but >>> commented out. Following up on that idea might be more efficient. Which >>> isn't really a good excuse for not merging in Andrea's work. >>> >>> If someone is interested in following up on this work, that would be great. >>> -- >>> --Per Bothner >>> per@bothner.com http://per.bothner.com/ >> >> >> >> -- >> Duncan.