3 ms·
"using a type-directed continuation passing transform." So it converts your program to continuation-passing style, which you can do in any environment if you'r
by amalcon 18y ago
"using a type-directed continuation passing transform."
So it converts your program to continuation-passing style, which you can do in any environment if you're willing to mangle the program enough. I would not expect it to be fast.
- rcoder 18y agoMy understanding is that Scala already wraps lambdas in internal class instances with a `call` method, so I would imagine that CPS will carry a similar performance and memory hit. It certainly won't be quite as fast as idiomatic Java code, but it should be considerably faster than other non-local exit implementations that rely on exception handling to manipulate the stack.