Having lightning fast messaging from isolate to isolate is really important apps that run hat run on 60Hz. The fastes way on workers is sending array buffers.Could we get that on isolates as well, on the standalone dartVM and dartium?
This was already asked several times... and I think that we didn't get any satisfying answer. I'd love to know as well. Actually, I think that we haven't heard much about isolates plans in general, even though I consider them one of the major features of Dart.
This was already asked several times... and I think that we didn't get any satisfying answer. I'd love to know as well. Actually, I think that we haven't heard much about isolates plans in general, even though I consider them one of the major features of Dart.Yes I know, but with the new with the new unified library for TypedArrays I thought its the right time to ask again.
Ladislav, if they work like this, does Arraybuffers on webworkers with dart are actually transferable in Dartium?
Workers have their separated heap (as far is I know) so that they can have GC calls without affecting other workers or the mainthread. Arraybuffers are allocated outside of the VM in webkit. But they want to change that so that V8 allocates them directly (because this is much faster).
So nothing changed since last summer. Thats a bit sad, so often one of the big selling points of dart was how fast it is but it still misses a fast solution for Isolates.But anyways, I think I will build the communication between isolates with typed-arrays, as thats the only choice to transfer data, when compiled to js really fast. So in the end if isolate communication will be ever fast and want to have that fast communication consistent on javascript as well, it has to use transferable typed arrays... right?
Yesterday, I've seen this commit: https://code.google.com/p/dart/source/detail?r=20036 It refers to a Uint8List.transferable constructor, which sounds promising. I couldn't find it in the documentation, but it's probably just a matter of time.LT
--