Return-Path: Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: (qmail 89275 invoked from network); 15 Jun 2010 08:27:51 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 15 Jun 2010 08:27:51 -0000 Received: (qmail 8220 invoked by uid 500); 15 Jun 2010 08:27:51 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 7851 invoked by uid 500); 15 Jun 2010 08:27:49 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 7835 invoked by uid 99); 15 Jun 2010 08:27:47 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Jun 2010 08:27:47 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Jun 2010 08:27:45 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o5F8RNYR007424 for ; Tue, 15 Jun 2010 08:27:23 GMT Message-ID: <32358770.2441276590443351.JavaMail.jira@thor> Date: Tue, 15 Jun 2010 04:27:23 -0400 (EDT) From: "Valery Silaev (JIRA)" To: issues@commons.apache.org Subject: [jira] Updated: (SANDBOX-323) Support for ASM 3.2 / 3.3 and in/out continuations parameters In-Reply-To: <17883382.2381276590323673.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/SANDBOX-323?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Valery Silaev updated SANDBOX-323: ---------------------------------- Description: 1. Currently JavaFlow can't be used with new ASM builds due to incompatible changes introduced in ASM 3.2, the patch provided adds support for ASM 3.2 / 3.3, so JavaFlow may be used with any ASM 3.x version 2. There is no API to return result from suspended continuation, ad-hoc custom logic with ThreadLocal variables is necessary for this. The patch contains necessary API improvements. // In continuation final Object varReceivedByContinuation = Continuation.suspend(varPassedByContinuation); // In calling client final Continuation cc = Continuation.startWith(code); System.out.println(cc.value()); // value() is yielded by continuation In certain sense this works as "yield" operator found in other programming languages, and has even richer semantics. 3. Miscellaneous: continuation-specific Iterable/Iterator are provided with patch as well to simplify iteration over multiple values yielded by continuation code; they are named CoRoutine / CoIterator in code. was: 1. Currently JavaFlow can be used with new ASM builds due to incompatible changes introduced in ASM 3.2, the patch provided adds support for ASM 3.2 / 3.3, so JavaFlow may be used with any ASM 3.x version 2. There is no API to return result from suspended continuation, ad-hoc custom logic with ThreadLocal variables is necessary for this. The patch contains API changes to allow this. // In continuation final Object varReceivedByContinuation = Continuation.suspend(varPassedByContinuation); // In calling client final Continuation cc = Continuation.startWith(code); System.out.println(cc.value()); // value() is yielded by continuation In certain sense this works as "yield" operator found in other programming languages, and has even richer semantics. 3. Miscellaneous: continuation-specific Iterable/Iterator are provided with patch as well to simplify iteration over multiple values yielded by continuation code; they are named CoRoutine / CoIterator in code. > Support for ASM 3.2 / 3.3 and in/out continuations parameters > ------------------------------------------------------------- > > Key: SANDBOX-323 > URL: https://issues.apache.org/jira/browse/SANDBOX-323 > Project: Commons Sandbox > Issue Type: Improvement > Components: Javaflow > Affects Versions: Nightly Builds > Environment: SUN JDK 1.6 > Reporter: Valery Silaev > Fix For: Nightly Builds > > Attachments: javaflow_modified.zip > > > 1. Currently JavaFlow can't be used with new ASM builds due to incompatible changes introduced in ASM 3.2, the patch provided adds support for ASM 3.2 / 3.3, so JavaFlow may be used with any ASM 3.x version > 2. There is no API to return result from suspended continuation, ad-hoc custom logic with ThreadLocal variables is necessary for this. The patch contains necessary API improvements. > // In continuation > final Object varReceivedByContinuation = Continuation.suspend(varPassedByContinuation); > // In calling client > final Continuation cc = Continuation.startWith(code); > System.out.println(cc.value()); // value() is yielded by continuation > In certain sense this works as "yield" operator found in other programming languages, and has even richer semantics. > 3. Miscellaneous: continuation-specific Iterable/Iterator are provided with patch as well to simplify iteration over multiple values yielded by continuation code; they are named CoRoutine / CoIterator in code. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.