First Impressions Using React Native
I think it's a very strong point that moving script code off the main thread can help achieve smooth UIs. No more GC pauses, no more slowdowns if the JS engine hits a snag, etc.<p>I think this is actually possible on the web as well. Someone could write a UI framework which runs JS in a Worker, and sends messages to the main thread, on which there is HTML and minimal JS to receive the messages and handle them.<p>I'm surprised this hasn't been done, or has it and I just haven't heard about it?<p>If you're worried about the overhead of transferring lots of messages from the Worker to the main thread, I think it can be pretty fast actually. I did an experiment with proxying WebGL that way, which is a fairly high-traffic API, with nice results,<p><a href="https://blog.mozilla.org/research/2014/07/22/webgl-in-web-workers-today-and-faster-than-expected/" rel="nofollow">https://blog.mozilla.org/research/2014/07/22/webgl-in-web-wo...</a><p>For something rendering a UI, message passing overhead should be reasonable, especially if the framework is smart enough to only send over what changes (like React Native does).