On Fri Jul 12 16:56:17 2013, Michał Marczyk wrote:
At the risk of sounding pedantic, concurrency is not the same as
parallelism. Multiple threads can be scheduled on a single core (and
that's plenty useful). So, with the async stuff you mention,
JavaScript already supports concurrency. ClojureScript has recently
come to have particularly good support for it thanks to core.async.
As for parallelism, you can already do it with web workers. There are
limitations, but you can still do very cool things with them, cf. the
pedestal-app tutorial's web worker section:
https://github.com/pedestal/app-tutorial/wiki/Parallel-Processing
More thread-like (as opposed to process-like) models... Who knows.
Here's hoping.
Cheers,
Michał
On 13 July 2013 00:42, Alexander Gunnarson <alexandergunnar...@gmail.com> wrote:
One of Clojure's main selling points is the ability to implement concurrency
in a fairly straightforward way. I know that ClojureScript doesn't support
concurrency because JavaScript's VM doesn't support it. I mean, of course
you can try to get around that by doing crazy tricks with asynchronous event
loops and such, but really it only is simulating concurrency with no real
speed advantage. My question to everyone is, when do you all think that the
JavaScript VM will support concurrency? Will it ever support it?
--
--
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/groups/opt_out.
To learn more Rob Pike gave a good presentation on 'Concurrency Is Not
Parallelism': http://vimeo.com/49718712
-Ben
--
--
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/groups/opt_out.