4

I found this article: http://www.mono-project.com/Continuations So I have a few questions about it. Are there any implementations of erlang-style or (at least) scala-style actors for Nemerle based on this framework ? If no, can anyone give an example of usage of this API, please.

Also is this continuation framework compatable with native Microsoft .NET CLR ?

Thank you for your help.

gordon-quad
  • 734
  • 5
  • 15

1 Answers1

3

I have not seen a Nemerle actors library. However, the ComputationExpressions library is more powerful than continuations. It adds monad support to Nemerle, making it possible to implement continuations, coroutines, and many other features. You can find examples of implementing async using it in the snipets.

Don Reba
  • 13,814
  • 3
  • 48
  • 61
  • Thanks, it very interesting, but there are a lot of letters :) how this thing works? how async blocks do information exchange ? Is there something like "channels" ? And how this blocks scheduled ? I want something like erlang actor model where I can run a lot of "processes", executed in few threads and execution flow is switched by message-passing. Is this ComputationExpressions act like that? – gordon-quad Sep 10 '11 at 20:34
  • Computation Expressions add monad support to the language, which could be used to implement actors. Channels and message is passing are some of the things one would have to implement to make an actor library. – Don Reba Sep 11 '11 at 23:51