|
|||
|
hi,
seems like the Control.Concurrent stuff could be used to build either Actors (a la Erlang, Scala) or Agents (a la Clojure). any thoughts on how one might do those? re: Erlang, it seems straight-forward: forkIO off a function that self- calls and/or uses State monad, and that communicates over some Chan. re: Clojure, i'm not so sure since e.g. getting the value of a Clojure Ref or Agent isn't async iiuc, and leverages STM. and i don't yet grok Haskell's STM stuff. clojure ref ?= haskell MVar/TVar? clojure agent ?= haskell ?? http://clojure.org/state thanks. |
|
|
||||
|
||||
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|