3 ms·
> The problem with Flash is that it opted out of the web architecture WebAssembly doesn't. WebAssembly is part of the web's architecture. It has been for 8 yea
by zfg 2y ago
> The problem with Flash is that it opted out of the web architecture
WebAssembly doesn't. WebAssembly is part of the web's architecture. It has been for 8 years. You've doubtless run WebAssembly without even realizing it.
Google Sheets for example uses WebAssembly: https://web.dev/case-studies/google-sheets-wasmgc https://web.dev/case-studies/google-sheets-wasmgc
Amazon Prime Video uses WebAssembly: https://www.amazon.science/blog/how-prime-video-updates-its-app-for-more-than-8-000-device-types https://www.amazon.science/blog/how-prime-video-updates-its-...
> Flash could do that too. Virtually nobody bothered.
But virtually somebody is bothering with WebAssembly.
- JimDabell 2y agoI know how WebAssembly works. You don’t need to explain it to me. Take a look at the article. It’s specifically advocating for: > So throw out all the web standards. Make a browser that just runs WASM blobs, and gives them a surface to use And no, WebAssembly isn’t different. I just opened one of the examples you provided and tried to right-click to inspect element. Nothing happened. When I inspected the source a different way, all I found was an SVG for the logo and a JavaScript file to load the binary. When I inspected the DOM, all I found was a `<canvas>` the executable code draws into. This is exactly what I was complaining about: > The problem with Flash is that it opted out of the web architecture because they only wanted your browser window to be a surface for an executable to draw into.
- zfg 2y ago> And no, WebAssembly isn’t different. I just opened one of the examples you provided and tried to right-click to inspect element. Nothing happened. When I inspected the source a different way, all I found was an SVG for the logo and a JavaScript file to load the binary. When I inspected the DOM, all I found was a `<canvas>` the executable code draws into. What does that have to do with running the application? What user is going to inspect the elements of a web page? No end user will. Developers will, but that's got nothing to do with running the application. You can always go ahead and disassemble the .wasm file just like any other executable format. Here are some tools: https://github.com/WebAssembly/wabt https://github.com/WebAssembly/wabt If you're worried about understanding how an application works, remember that most of it is on the server side anyway. You won't have access to that. And if anything, WebAssembly puts more of it on the client side.
- eadmund 2y ago> WebAssembly is part of the web's architecture. It’s formally part of the web’s architecture, but it is bolted on and violates the fundamental principles underlying the web’s architecture. It’s much like a worse JavaScript in that way.
- zfg 2y ago> it is bolted on WebAssembly is no more bolted on than JavaScript is and JavaScript has been part of the web for 29 years. > violates the fundamental principles underlying the web’s architecture. Which ones?