News for hackers. Stuff that matters.
Re:A Go Package for Building Progressive Web Apps by mumphster on Friday September 17, 2021 @10:40AM (#28566012)
That applies if youre shipping a giant 15 meg blob of js (not saying some sites dont do this), a lot of the size also comes from css and other assets which still apply with shipping a wasm blob. I'm gonna guess that v8 can parse a 1-2 meg js file just as fast if not faster than the time it takes to download a 15 meg wasm blob or a 4 meg blob + decompress + parse outputted from golang. Like your last line says, shipping 15 megs of any kind of code makes no sense to me
Re:A Go Package for Building Progressive Web Apps by chrismorgan on Friday September 17, 2021 @10:04PM (#28572908)
When considering performance, some people presume that WASM is much the same as JavaScript; I’m just reminding them that this is not the case: WASM has better loading characteristics than JavaScript so that its cost per byte is much more like that of images than of JavaScript.