Virtual Threads for a scripting language in Java 8 without Loom
1–10 of 11 posts
Re: Virtual Threads for a scripting language in Java 8 without Loom
#2Re: Virtual Threads for a scripting language in Java 8 without Loom
#3I think this is similar to the way Kotlin implements coroutine.
I believe Kotlin goes to the extra miles to also capture parts of the stack frames when creating the Continuation object so even when the runtime resume the continuation, the exceptions thrown later get the "correct" stack trace (not the one that shows that you come from a call through a MethodHandle).
Re: Virtual Threads for a scripting language in Java 8 without Loom
#4Author here: Jactl is a secure embeddable scripting language that compiles to bytecode and supports Java 8 and later versions. The article describes how Continuations were used to provide Virtual Thread-like behaviour for scripts. Blocking operations suspend a script which is then resumed from where it left off once the operation completes.
Any tips on using with gui/swing? rendering images/simple html, that would be awesome!
And what about (gasp) JSP? Or any other templating? It is old school, yeah but I like jsp include (with params) and jsp 'web components' (tags).
Anyway, thanks for writing jactl!
Re: Virtual Threads for a scripting language in Java 8 without Loom
#5Re: Virtual Threads for a scripting language in Java 8 without Loom
#6Re: Virtual Threads for a scripting language in Java 8 without Loom
#7Check Kilim: https://github.com/kilim/kilim
Re: Virtual Threads for a scripting language in Java 8 without Loom
#8Author here: Jactl is a secure embeddable scripting language that compiles to bytecode and supports Java 8 and later versions. The article describes how Continuations were used to provide Virtual Thread-like behaviour for scripts. Blocking operations suspend a script which is then resumed from where it left off once the operation completes.
def fib(x) { x Re: Virtual Threads for a scripting language in Java 8 without Loom
#9Ah, I had virtual threads in Java 8 back in the day. I believe it still works. Check Kilim: https://github.com/kilim/kilim
https://docs.paralleluniverse.co/quasar/
But I believe the author moved to a Big Corp which sells databases, working on some big project which took all his time...
Re: Virtual Threads for a scripting language in Java 8 without Loom
#10Ah, I had virtual threads in Java 8 back in the day. I believe it still works. Check Kilim: https://github.com/kilim/kilim
Another project worth checking would be Quasar (and had virtual threads in 2013): https://docs.paralleluniverse.co/quasar/ But I believe the author moved to a Big Corp which sells databases, working on some big project which took all his time...