def fib(x) { x <= 2 ? 1 : fib(x - 1) + fib(x - 2) }
println "40th fibonacci number is ${fib(40)}"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!
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...
I 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).