You need to write either an interpreter of some sort of bytecode in 
javascript/clojurescript and and have the interpreter implement the 
threading, or use a webworker for each process then something like 
core.async for sending ui events to the main browser loop. Clojurescript 
doesnt attempt to emulate full threads.

On Wednesday, April 9, 2014 8:51:57 AM UTC+12, t x wrote:
>
> Hi, 
>
>
>   * I am aware of core.async. However, I don't like the fact that (go 
> ... ) is a macro, thus forcing the >! and <! to appear "in the body", 
> and I can't do nested things like: 
>
>   (defn foo [chan] 
>      (let [x (<! chan)] ... )) 
>
>   (go ... (foo ... )) 
>
>
>   * For the following, I only need it to work in ClojureScript. I 
> don't need it to work in Clojure. Furthermore, we can assume browser = 
> latest Firefox, or browser = latest Chrome. 
>
>
>   Now, my question: is there a library which provides "true" 
> lightweight Clojurescript threads? 
>
>
> Thanks! 
>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
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 clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to