News for hackers. Stuff that matters.
Re:First Impressions Using React Native by akrymski on Friday February 06, 2015 @02:28PM (#9011015)
I've been thinking about this as well yesterday, but to be honest I'm not sure where the benefits are. In theory the browser is doing the rendering in a separate thread anyway, i.e. CSS layout and things like scrolling are handled by the browser. If you're doing a long algorithmic (CPU-intensive) computation in JS then you should probably do that in a WebWorker anyway. Otherwise I'm not sure the overhead is worth it, for example the dragging / touch events should be invoking such a tiny amount of javascript that you shouldn't see much benefit in moving that logic to a separate thread.

Would be interested to see real examples of where this is makes sense.

Disclosure: we're developing an email client using Cordova and purely web tech using our own framework: https://github.com/techlayer/espresso.js

Re:First Impressions Using React Native by nwienert on Friday February 06, 2015 @02:32PM (#9011034)
Exactly. I think moving everything but React into the web worker is enough. But that itself isn't easy as far as my limited knowledge, you need to have separate script files. Perhaps a webpack plugin that manages that for you?
Re:First Impressions Using React Native by akrymski on Friday February 06, 2015 @09:13PM (#9012790)
I think simply moving any function that takes more than 10ms to a web worker is enough frankly.