Personally, I see no greater advance for humanity than curing diseases. Some of these illnesses have been with us since before humans became modern humans, and now for the first time ever, we have a chance at curing or…
Facebook.com, LinkedIn.com, and Google Sheets ship ~1MB of JS compressed for their main pages, which is 5-10 MB of JS uncompressed. So JS parsing time ends up taking hundreds of milliseconds on initial load. And of…
To be fair, pretty much any platform (operating system) provides rich APIs and basic functionality like built-in UI components. So I don't think there's a lot more pre-existing functionality in a browser vs Windows or…
I would say that the burden of proof is on me to prove that Binary AST is a significant real-world performance win and that it will not cause undue burden on JS engine implementors. I don't think the "burden of proof"…
Yup, replied above. Thanks for digging into this more :)
Facebook.com today loads functionality dynamically. Open the Network panel, interact with a secondary feature, and you will see it load code on-demand. With respect to your example of unnecessary modules, sometimes the…
Right, and that's what happens today, the JS for the secondary functionality is loaded on demand. Here's what I have in my FB homepage during a random load: - Search bar for searching people/groups/posts/pages - News…
I don't, you're welcome to prove me wrong if you want to whip up a basic prototype. I'm vdjeric on github. My goal is to make sophisticated web apps faster, I'm not married to any particular approach.
> One of my complaints was that yes, WebAssembly for some reason decided to target C++ first. It's much easier to support C++ in WebAssembly. C++ and other statically typed languages can be compiled ahead of time to…
Yes, Facebook already lazily loads code for secondary functionality. More details in this comment https://news.ycombinator.com/item?id=14912871
Chrome and Firefox both cache hot code in its compiled (bytecode) form. This proposal addresses cold code loads. Many web apps update frequently (more than once per day) making caching much less effective, and cold code…
Facebook already only ships code that is needed to render the current page. It even goes further and it streams the code in phases so that the browser renders the UI incrementally and the page becomes interactive as…
WebAssembly is well suited for statically typed codebases written in C++ etc. You can't compile JavaScript to WebAssembly. Yes, you could do Web development in a statically typed language, but would you want to?
Facebook.com does a lot more than show a newsfeed, profiles, and notifications. - It contains a fully-fledged messenger application that supports payments, videoconferencing, sharing rich media etc - The newsfeed…
Personally, I see no greater advance for humanity than curing diseases. Some of these illnesses have been with us since before humans became modern humans, and now for the first time ever, we have a chance at curing or…
Facebook.com, LinkedIn.com, and Google Sheets ship ~1MB of JS compressed for their main pages, which is 5-10 MB of JS uncompressed. So JS parsing time ends up taking hundreds of milliseconds on initial load. And of…
To be fair, pretty much any platform (operating system) provides rich APIs and basic functionality like built-in UI components. So I don't think there's a lot more pre-existing functionality in a browser vs Windows or…
I would say that the burden of proof is on me to prove that Binary AST is a significant real-world performance win and that it will not cause undue burden on JS engine implementors. I don't think the "burden of proof"…
Yup, replied above. Thanks for digging into this more :)
Facebook.com today loads functionality dynamically. Open the Network panel, interact with a secondary feature, and you will see it load code on-demand. With respect to your example of unnecessary modules, sometimes the…
Right, and that's what happens today, the JS for the secondary functionality is loaded on demand. Here's what I have in my FB homepage during a random load: - Search bar for searching people/groups/posts/pages - News…
I don't, you're welcome to prove me wrong if you want to whip up a basic prototype. I'm vdjeric on github. My goal is to make sophisticated web apps faster, I'm not married to any particular approach.
> One of my complaints was that yes, WebAssembly for some reason decided to target C++ first. It's much easier to support C++ in WebAssembly. C++ and other statically typed languages can be compiled ahead of time to…
Yes, Facebook already lazily loads code for secondary functionality. More details in this comment https://news.ycombinator.com/item?id=14912871
Chrome and Firefox both cache hot code in its compiled (bytecode) form. This proposal addresses cold code loads. Many web apps update frequently (more than once per day) making caching much less effective, and cold code…
Facebook already only ships code that is needed to render the current page. It even goes further and it streams the code in phases so that the browser renders the UI incrementally and the page becomes interactive as…
WebAssembly is well suited for statically typed codebases written in C++ etc. You can't compile JavaScript to WebAssembly. Yes, you could do Web development in a statically typed language, but would you want to?
Facebook.com does a lot more than show a newsfeed, profiles, and notifications. - It contains a fully-fledged messenger application that supports payments, videoconferencing, sharing rich media etc - The newsfeed…