Open forchid opened 3 years ago
You can set the Continuation object to a field but you won't be able to use it. The Continuation object is only valid if it was created by the runner and passed down the callstack. Once it leaves the runner, the Continuation object is no longer valid, so there's no point in keeping it.
It was done this way because it keeps things fast. If you need a more flexible but slower alternative, try tascalate-javaflow.
For constructors, the bytecode for calling a constructor is different than invoking a normal method (it's a 2 step process -- first allocate the object, then invoke the constructor), so implementing support for it it is more complicated and can become wasteful.
This project is in maintenance mode. I don't have the resources to keep updating it with newer/better features. I think Project Loom will get released soon -- it might give you what you need directly in the JVM.
I think Project Loom will get released soon -- it might give you what you need directly in the JVM
But the loom project is too late, and how long do we need to wait for it's GA?
I'm not sure, but the activity on the loom mailing list has slowed down so I can't imagine that it'll be too much longer before it enters preview. Maybe about a year or so?
They're incredibly slow people over there.
On Sun, Apr 4, 2021, 9:19 PM Peter pan @.***> wrote:
I think Project Loom will get released soon -- it might give you what you need directly in the JVM
But the loom project is too late, and how long do we need to wait for it's GA?
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/offbynull/coroutines/issues/96#issuecomment-813134228, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABQPQIVAO5OKE7WOVA2U6O3THEF25ANCNFSM42K653JQ .
- You can set the Continuation object to a field but you won't be able to use it. The Continuation object is only valid if it was created by the runner and passed down the callstack. Once it leaves the runner, the Continuation object is no longer valid, so there's no point in keeping it. It was done this way because it keeps things fast. If you need a more flexible but slower alternative, try tascalate-javaflow.
- For constructors, the bytecode for calling a constructor is different than invoking a normal method (it's a 2 step process -- first allocate the object, then invoke the constructor), so implementing support for it it is more complicated and can become wasteful.
This project is in maintenance mode. I don't have the resources to keep updating it with newer/better features. I think Project Loom will get released soon -- it might give you what you need directly in the JVM.
Hi, mister. You say this project is no longer support new features, which now is in maintenance model. What I wondering is if there's bug or CVE Problem, would you fix those issue?
I would make a best effort to fix the types of problems you mentioned (no promises).
Ultimately, if you rely on this software, the best thing you can do is fork it and maintain your own version internally. It's not that complicated to maintain and enhance once you learn about JVM bytecode and the ASM library.
If the license is a problem for you / your organization, I don't mind changing it to something more permissive.
On Sun, May 1, 2022, 8:17 PM Wayland Zhan @.***> wrote:
- You can set the Continuation object to a field but you won't be able to use it. The Continuation object is only valid if it was created by the runner and passed down the callstack. Once it leaves the runner, the Continuation object is no longer valid, so there's no point in keeping it. It was done this way because it keeps things fast. If you need a more flexible but slower alternative, try tascalate-javaflow.
- For constructors, the bytecode for calling a constructor is different than invoking a normal method (it's a 2 step process -- first allocate the object, then invoke the constructor), so implementing support for it it is more complicated and can become wasteful.
This project is in maintenance mode. I don't have the resources to keep updating it with newer/better features. I think Project Loom will get released soon -- it might give you what you need directly in the JVM.
Hi, mister. You say this project is no longer support new features, which now is in maintenance model. What I wondering is if there's bug or CVE Problem, would you fix those issue?
— Reply to this email directly, view it on GitHub https://github.com/offbynull/coroutines/issues/96#issuecomment-1114456606, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABQPQIQO4BGXPFXGRZRSB7DVH5CLNANCNFSM42K653JQ . You are receiving this because you commented.Message ID: @.***>
The version info
coroutines java-agent-1.5.3-shaded.jar, java 11, Ubuntu 20.04.1 LTS
The test case
The stack trace