Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a fast language that supports portable continuations?

I'm looking for a fast language (ie. a language that can be compiled natively to achieve performance not more than 3 or 4 times slower than C), which supports portable continuations. By this I mean a continuation that can be serialized on one computer, and deserialized on another.

I know that SISC can do this (a Scheme implementation in Java), but its slow. Ditto for Rhino (a Javascript implementation in Java).

like image 526
sanity Avatar asked Nov 14 '08 06:11

sanity


4 Answers

Did you checked OCaml ? It can be compiled and should be marginally slower than C.

Continuations and delimited control

like image 101
Robert Vuković Avatar answered Oct 06 '22 19:10

Robert Vuković


Scala 2.8.0 will allow continuations, and they'll be portable.

like image 26
Scott Morrison Avatar answered Oct 06 '22 19:10

Scott Morrison


While I agree that dialects of Caml might be an excellent choice I feel I have to mention Gambit Scheme. Together with Termite, an erlang-like framework it has support for serializing continuations, sending them over the wire, and much more.

It compiles to C-code.

like image 38
Joel Borggrén-Franck Avatar answered Oct 06 '22 21:10

Joel Borggrén-Franck


Its possible to do serializable continuations in Java using Apache JavaFlow - if you do go that route then the Swing Continuations library at:

http://www.exploringexcellence.com/swingcontinuations/download.html

makes it the coding a lot more pleasant.

like image 37
tonys Avatar answered Oct 06 '22 21:10

tonys