logoalt Hacker News

hollerithtoday at 2:13 AM2 repliesview on HN

I'm going to resist wasm as much as practical. At least that is my current intention based on what I have learned from being a web user for the last 33.5 years.

First of all, wasm won't run in my browser (I determined that by evaluating `typeof WebAssembly` in the console tab of Developer Tools), a choice made not by me, but by the maintainer of my browser (Trivalent) -- probably for security reasons. I trust the maintainer of my browser about security-related decisions.

Besides security, another reason I am going to resist wasm is that it gives the site owner more power at my expense. The way it is now, I can modify web sites using extensions. For example, for years, I ran an extension that deletes "fixed elements" from web page (which didn't work on 100% of sites with fixed elements, but was still a welcome assistance to me because it worked on about 70% of sites). Wasm would make it more difficult for an extension to modify a site in ways that users with various preferences and various disabilities might want -- because code is more difficult to modify than data is, and the way web pages are now, there is a lot of data in a web page stored in 'locations' that an extension can programmatically find and modify.

In summary, site owners already have too much control over my experience (relative to me and authors of software such as a browser extension acting on my behalf), and wasm would give them even more control.

It would be one thing if I used the web mainly to run sophisticated applications. I do not: I use it mainly to find simple data resources, mostly text and URLs, written by ordinary people such as yourself. When anyone anywhere wants to get some information out to the world and consider how best to do that, 99% percent of the time, the first thought that comes to mind is to put some text or maybe a video or some other kind of data on the web. I see sentiments like the one you expressed just now as interfering with the flow of this text or other kind of data to me -- by making the process more complicated, less customizable by the user and giving "middlemen" like advertiser more ways to profit from this flow.

Again: I never wanted or asked for a platform for the delivery of sophisticated applications over the internet (using web protocols) to get all mixed up and combined with the world's most important and most convenient platform that ordinary users (i.e., not site owners or professional technologists for the most part) use to publish and consume simple data objects like text and URLs and such.


Replies

apatheticoniontoday at 2:37 AM

1) Wasm wouldn't prevent you from running those client scripts (e.g. remove fixed elements). That would still just be a script that modifies the DOM from an extension after the page is rendered/dom mutations occur.

2) wasm makes serving static content practical as server side rendering is economical. My previous employer, for instance, spends tens of millions of dollars every year running SSR servers - almost all of that would be eliminated if the backend could just run the client as wasm.

3) Scrapers (think puppeteer) would be faster and more resource efficient because they wouldn't need to start a JavaScript runtime to load a page.

4) You don't use Electron apps?

5) You may not, but everyone else uses rich interactive web applications. Think of the energy usage and cost savings there would be to the world.

show 1 reply
MintPawtoday at 2:26 AM

> The way it is now, I can modify web sites using extensions

This isn't related too directly to WASM, what you want is DOM rendering only, you would theoretically reject canvas and WebGL rendering I imagine. But you could create DOM nodes with WASM. The only difference is that WASM is not as easy to decompile, but I can't imagine you're really unminifiying and patching Javascript are you?

show 1 reply