Re:Actors, Green Threads and CSP on the JVM
by mateuszf on Wednesday September 03, 2014 @10:15AM
(#8263070)
Anyone using core.async knows how this article relates to it?
[ Parent
| on HN ]
Re:Actors, Green Threads and CSP on the JVM
by mossity on Wednesday September 03, 2014 @10:20AM
(#8263096)
The points about the JVM not being able to guarantee that your code won't block the thread apply; it's left up to you to do it. This doesn't come as any surprise to me, nor I would guess to most users of the library, so I'm not sure this is really that damning. Core.async doesn't use bytecode weaving or fork/join, so those criticisms don't specifically apply.
Re:Actors, Green Threads and CSP on the JVM
by MCRed on Wednesday September 03, 2014 @10:29AM
(#8263144)
It's damning because, rather than outsource the issue like the library makes you think you are doing (or like anyone writing erlang code actually is doing) you still have to deal with the hassle and the risk, so you're not really buying much.
Re:Actors, Green Threads and CSP on the JVM
by village-idiot on Friday September 05, 2014 @12:11AM
(#8272286)
Except you're using it Clojure, which makes it easier to avoid that kind of stuff and easier to spot when you count on Java APIs directly.
Re:Actors, Green Threads and CSP on the JVM
by nathan7 on Wednesday September 03, 2014 @11:08AM
(#8263343)
I'd say that many of the issues surrounding accidentally using mutable state are fairly moot in Clojure.
Blocking still remains an issue, though there's core.async/thread for go blocks that block so that they're executed on a thread of their own.