Re:Frege: A JVM pure functional programming language in the ...
by voxfrege on Thursday November 07, 2013 @01:31PM
(#6691302)
> which suggests that the author isn't interested in supporting Haskell's idiomatic concurrency model atop the JVM
This is not quite true (I am the author). Yet I know my limits. Every contribution from the community is welcome, OTOH.
The point of the blog posts was only to explore how far one can get with what Java has.
Re:Frege: A JVM pure functional programming language in the ...
by pron on Thursday November 07, 2013 @11:54AM
(#6690473)
There are at least two JVM lightweight thread libraries. Kilim [1] and Quasar[2] (written mostly by me).
While it is true that the vast majority of JVM code you interact with is blocking and expects to own whatever OS thread it is running on, that could be treated as a concern of FFI, where untrusted/blocking code in Java land gets dedicated OS threads (similar to FuturePools/execution-contexts for scala Futures, or how you would manually isolate blocking code for Erlang or Go FFI.)
Additionally, the comment dismissing STM seems like an afterthought, because there are at least three JVM implementations (Clojure's, Scala's, and Multiverse)
But the main comment I was referring to was:
... which suggests that the author isn't interested in supporting Haskell's idiomatic concurrency model atop the JVM, and is instead fine with the status quo of blocking code.