You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Valery Silaev (JIRA)" <ji...@apache.org> on 2010/06/15 10:25:23 UTC

[jira] Created: (SANDBOX-323) Support for ASM 3.2 / 3.3 and in/out continuations parameters

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 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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (SANDBOX-323) Support for ASM 3.2 / 3.3 and in/out continuations parameters

Posted by "Torsten Curdt (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SANDBOX-323?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Torsten Curdt closed SANDBOX-323.
---------------------------------

    Resolution: Fixed

Committed revision 958247

Applied with only few changes.

Thanks!

> 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
>            Assignee: Torsten Curdt
>             Fix For: Nightly Builds
>
>         Attachments: JavaFlow-SANDBOX-323.patch, 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.


[jira] Updated: (SANDBOX-323) Support for ASM 3.2 / 3.3 and in/out continuations parameters

Posted by "Niall Pemberton (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SANDBOX-323?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Niall Pemberton updated SANDBOX-323:
------------------------------------

    Attachment: JavaFlow-SANDBOX-323.patch

Its better if you submit changes in patch format - and more likely that it might get applied. Attaching a patch for the changes you submitted - looks to me like there are various other changes included - not just for this issue.

> 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-SANDBOX-323.patch, 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.


[jira] Updated: (SANDBOX-323) Support for ASM 3.2 / 3.3 and in/out continuations parameters

Posted by "Valery Silaev (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SANDBOX-323?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Valery Silaev updated SANDBOX-323:
----------------------------------

    Attachment: javaflow_modified.zip

> 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 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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (SANDBOX-323) Support for ASM 3.2 / 3.3 and in/out continuations parameters

Posted by "Valery Silaev (JIRA)" <ji...@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.


[jira] Commented: (SANDBOX-323) Support for ASM 3.2 / 3.3 and in/out continuations parameters

Posted by "Torsten Curdt (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SANDBOX-323?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12881307#action_12881307 ] 

Torsten Curdt commented on SANDBOX-323:
---------------------------------------

Got it applied locally but still need to go through everything.

> 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
>            Assignee: Torsten Curdt
>             Fix For: Nightly Builds
>
>         Attachments: JavaFlow-SANDBOX-323.patch, 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.