189 points · by jongalloway2 · 9y ago · 49 comments
Somebody is going to come up with a CMS that "compiles" websites to monstrosity WASM applications. Hopefully the types of websites I interact with won't be the kinds for whom such a horrible idea has appeal.
WebAssembly has the potential to say play video games, including AAA titles, without having to install anything on your computer. Same goes for many software projects such as CAD, office, video editing... You could use all this from your browser.
I don't know about you, but I find this perspective very exciting.
It depends on how you define "being installed". All files living on FileAPI and IndexedDB does not make too much difference than using direct file access and SQLite. They will be cached and they will live on your computer. Well, at least until your browser faces storage pressure and decides to randomly delete website data.
I mean, yeah, everything lives in a sandbox and there's potentially less security issues. Not having to give admin privileges to an application which allows you to build houses out of blocks is a good idea. On the other hand, the capabilities of the platform is increasing like crazy and it's just a matter of time before it converges with the operating system itself.
So, I don't know. The whole situation is weird. I think we needed better operating systems with granular permissions and we're getting there using a very convoluted way.
Precisely. It's sandboxed. I very much like the idea that I could run any proprietary software inside a sandbox, and reserve "hard install" to FOSS.
Also, I just can't ignore the convenience factor.
* we already transpile HTML, CSS and Javascript,
* react.js keeps an entire virtual DOM,
* the web isn't going away.
And if those new fat-apps are browser independent and cross-platform it still seems like a win :)
How will you install a webapp version of Adobe Photoshop? Will you download multi-GB every time you use it?
But imagine an app where each function (like, say, the levels filter) was downloaded as needed and cached. That might be possible sooner rather than later.
I'm sure there are plenty of reasons why that's a non-starter. But I don't think that it's impossible to have an application of whatever complexity running in a browser... I mean, I remember when doom came out and I had a hard time running it on my machine without tweaking the configuration. And now...
Also https://blog.figma.com/webassembly-cut-figmas-load-time-by-3...
Browsers usually maintain a cache of compiled bytecode.
Regardless, when there does come a time that WASM has full DOM access you'll just be replacing a ton of JavaScript and other code with WASM bytecode. Today you can already transpile many languages to JavaScript and some frameworks even allow you to never even touch JavaScript and still create web applications. I don't see this being much different with the exception that you'll no longer be required to used or transpile to JavaScript and this could end up faster (that's a big COULD and will probably depending on what you're doing and how).
I see a lot of ways this could go wrong.
I could even imagine something like a browser but with no HTML or DOM. With just WebGL and maybe a few other APIs you could have a really awesome app platform.
If by "just" you mean "exclusively," then no.
I would be willing to bet that the vast majority of content on the web even today isn't "webapps" but basic HTML, maybe with some JQuery or Google analytics somewhere, but more or less still just documents. Webassembly augments what can be done in the browser, but it still serves a niche set of use-cases when the whole web is considered.
Until the day comes when you can't publish anything to the web without a compiler toolchain then I wouldn't worry.
-Encrypt web content with a hash of the current time
-Tell Ad provider that hashing method and have them serve that decryption key with each ad
-Embed a HTML renderer inside wasm which decrypts the web content and renders directly to canvas, ads included
-If Ad provider is domain blocked, mine bitcoins to pay equivalent cost of an ad click, trading the bitcoins for the decryption key
It's the end of ad block and userscripts.
[1] https://github.com/SteveSanderson/Blazor / https://github.com/ncave/dotnet-js
It's also mature enough nowadays, so I'm going to use Mono for future projects.