4 ms·
> no view source! that broke the basic treatise of the internet. I was pretty young, but I'm pretty sure I remember opening someone else's swf file in a decomp
by Wowfunhappy 5y ago
> no view source! that broke the basic treatise of the internet.
I was pretty young, but I'm pretty sure I remember opening someone else's swf file in a decompiler in middle school. It was a little weird but I was able to make the changes I wanted.
How editable is WASM code, really?
- oneplane 5y agoHow editable is raw JFIF data, really? You need to run it through some fancy graphics library before you can do anything with it. /s It's not as much how you can hack around it but more about open-by-default and open-by-design.
- Wowfunhappy 5y agoWell, that was my point about SWF files. You could edit them with the right tools. But like WASM, they are far less editable than the original source files. Unfortunately, there are very practical performance reasons to send information in a "compiled," less-editable format. Which is why even static sites nowadays typically use some type of build system.
- oneplane 5y agoYeah, that's very true. I do wonder if with the 'somewhat standard' min.map files that can point out what the rendered versions relate to in the 'source' versions could somehow be enforced. That way you can still use the compact version first and if you do want to see what's happening you can just get the map and the source and explore.
- rektide 5y agoEven if you do decompile the SWF & edit it, the flash can still interact with the page. In many cases you'd need to alter the page too, to inject your hacked swf. Wasm code is editable via the very very good dev tools systems we have today, mostly dictated via the Chrome DevTools protocol which even Mozilla largely harkens to & which is being semi-standardized through wicg[1]. Still fairly early days but support is not bad! But... it's a monumentally harder challenge imo than JS. There are source maps, so if the site is nice, you can see what the authored uncompiled code was, but there's no facility to author in that language & recompile your changes via the debugger. And I fear few sites will post the source maps to make webassembly comprehendible. Few sites have morals, ethics, or respect for the web as a medium: they see it as a platform for them alone to dictate to you the user what you get. This, to me, is the sad end Flash had forced upon us, that the web was so much better than. [1] https://github.com/WICG/devtools-protocol https://github.com/WICG/devtools-protocol