Re:Scala.js no longer experimental
by amelius on Thursday February 05, 2015 @09:29AM
(#9003359)
But you still can't use structurally shared data, which you need when you want to share large data-structures between threads.
[ Parent
| on HN ]
If I understand you, I think it's a bit much to expect ScalaJS to somehow change the platform it is targeting, which is the browsers as accessed via Javascript (ie. without requiring plugins which would have made it DOA for most use cases). If browsers don't want threads that share data via Javascript control, and it appears they don't, and by design, then what is the alternative for ScalaJS? Same situation as with Javascript.
Mozilla is working on a type of array that can be shared.
Re:Scala.js no longer experimental
by warkdarrior on Thursday February 05, 2015 @03:17PM
(#9005714)
The DOM is your structurally shared data. You just need to find a way to represent your data as (hidden) DOM nodes.
Re:Scala.js no longer experimental
by icebraining on Thursday February 05, 2015 @04:31PM
(#9006261)
That actually doesn't work in this case, because Web Workers can't access the DOM.