David is right, it can be done with workers.

I created a proof of concept in Shoreleave to do this dynamically.  The 
dynamic workers implemented IFn and supported IWatchable via the HTML5 
Messaging API.
https://gist.github.com/ohpauleez/2914039

About a month or so ago, I started creating a new proof of concept around 
parallel.js but haven't finished it yet 
(http://adambom.github.io/parallel.js/)
Parallel.js just wraps up the web workers stuff in a more convenient API.

Hope this helps,
Paul // ohpauleez
 

On Tuesday, May 7, 2013 2:39:48 PM UTC-7, Ghassan Ayesh wrote:
>
> Hi:
>
> In Javascript language, and while the language is inherently functional, 
> Javascript's *implementation* until now, does not support parallel code 
> execution against available CPU cores, unlike Erlang for example or Clojure 
> on JVM, so I am thinking that the actor pattern in Clojure when targetting 
> JavaScript does not run in parallel natively. Am I right?
>
> -Ghassan.
>

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to