On Tue, 2007-07-10 at 17:56 -0400, Sandro Magi wrote: > On 7/10/07, skaller <[EMAIL PROTECTED]> wrote: > > On Tue, 2007-07-10 at 12:59 -0400, Sandro Magi wrote: > > > On 7/10/07, skaller <[EMAIL PROTECTED]> wrote: > > > > > As long as you can continue useful computation while blocking, and you > > > can do so safely, then you have a good concurrency model. > > > > On blocking: it's the other way around. The current fibre > > executes UNTIL it blocks (or dies). > > So there are continuations being used to block and resume computation. > The only difference seems exactly what you pointed out: promises are a > type of reified continuation that the client can actually pass around > until it chooses to block (by calling 'when'), instead of when they > invoke the operation.
Actually if you want to play at a lower level you can pass around continuations and run them yourself. Remember Felix generates C++ and binds to any C++ .. including its own C++... /////////////////////////////// #import <flx.flxh> var f = { println "hello"; }; f(); /////////////////////////////// look at the C++ -- John Skaller <skaller at users dot sf dot net> Felix, successor to C++: http://felix.sf.net ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Felix-language mailing list Felix-language@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/felix-language