> I serve as a technical lead for Project Loon. That is the project that's intended to add continuations and fibers to the JDK. > However, actually, Project Loom, the goal of the project is to add continuations, fibers, and tail call elimination. I'm guessing that the project is called either Loom or Loon (and i believe it's the former), but i like the idea that there are actually two cooperating projects, each of wh…
Why Continuations Are Coming to Java
121–130 of 185 posts
Re: Why Continuations Are Coming to Java
#122One thing I get learning about implementing continuations is that at the end them have huge runtime cost and complicate implementation and debugging greatly. Even do a simple interpreter with them quickly get out of control. Exist update info in how tame it?
Re: Why Continuations Are Coming to Java
#123Seems like every sufficiently advanced language at one time or another turns into LISP.
Re: Why Continuations Are Coming to Java
#124Re: Why Continuations Are Coming to Java
#125Re: Why Continuations Are Coming to Java
#126Honest question, maybe obvious: Why is the java-scheduler/ thread model so much better than the OS-level one? What does the java one do, or better what does it not do? And why can't the principles which make java-scheduling fast be applied to OS-threads?
The OS thread model is lightweight processes - each OS thread is essentially a separate process sharing a common section of the process control block. Context switches are still relatively heavyweight involving a kernel mode switch, CPU state save and restore. Application threads are a part of the application runtime environment. Thread scheduling is little more than a function call and doesn't involve a syscall invo…
Re: Why Continuations Are Coming to Java
#127> I serve as a technical lead for Project Loon. That is the project that's intended to add continuations and fibers to the JDK. > However, actually, Project Loom, the goal of the project is to add continuations, fibers, and tail call elimination. I'm guessing that the project is called either Loom or Loon (and i believe it's the former), but i like the idea that there are actually two cooperating projects, each of wh…
Re: Why Continuations Are Coming to Java
#128How does this differ from scheme-style continuations? IIRC, full continuations in the scheme sense of the term are currently impossible in Java as they require forbidden stack manipulation. Or is what's being proposed here something entirely else?
Oleg Kiselyov has written about it extensively: http://okmij.org/ftp/continuations/
Re: Why Continuations Are Coming to Java
#129What ever happened with continuations in Scala? A lot of people were excited about them back in 2009, but if I google them now I still only get pages from 10 years ago. I haven't used Scala in a very long time, so I stopped paying attention to any changes in the language.