Fork me on GitHub
#planck
<
2016-09-20
>
smw21:09:09

Has anyone looked at http://ringojs.org? Seems like a full featured, multi-threaded javascript impl on top of rhino on the jvm?

smw21:09:37

I wonder it’s possible to hack threading support into jsc?

smw21:09:23

or just add planck apis that can instantiate a new jsc runtime from clojurescript/js

mfikes21:09:44

JavaScriptCore does have support for multiple threads, so Planck could make use of that capability for interesting things

smw21:09:14

The JavaScriptCore API is thread safe—for example, you can create JSValue objects or evaluate scripts from any thread—however, all other threads attempting to use the same virtual machine will wait. To run JavaScript concurrently on multiple threads, use a separate JSVirtualMachine instance for each thread.

smw21:09:44

it does suggest that you have to make a second instance of the vm if you want true parallelism, though?