Sharing a JavaScript implementation across realms
Anne van Kesteren
annevk at annevk.nl
Tue Jan 13 04:21:13 PST 2015
A big challenge with self-hosting is memory consumption. A JavaScript
implementation is tied to a realm and therefore each realm will have
its own implementation. Contrast this with a C++ implementation of the
same feature that can be shared across many realms. The C++
implementation is much more efficient.
If we want to get further with turning the web platform into a giant
JavaScript library, we need to tackle this somehow.
Has anyone been thinking about how to do this and what changes it
would require from JavaScript proper? We're now at the point where we
can implement platform objects in terms of JavaScript, but JavaScript
loses out due to lack of efficiency.
PS: Alternative explanation available here:
https://annevankesteren.nl/2015/01/javascript-web-platform
--
https://annevankesteren.nl/
More information about the es-discuss
mailing list