Skip to content

Comment on Snappy UIs with WebAssembly and Web Workersparent

Comments

99% of webapps are absolutely fine using JavaScript.

as a user, much less than 99% of apps are "absolutely fine" to use.

This is not a Javascript problem, this is a Javascript ecosystem problem. A standard web page will load megabytes of JS code that was packaged from hundreds of dependancies for the reason that "this is how everyone does it".

I just finished a UI that requires a few HTTP requests to the API and a bit of dynamic behavior (but not a ton), and it's done inline with ES6, with no transpilers or minifiers, using ArrowJS. It does the job, and it rips.

Also developers' problem. I just saw code that imports a 1M library to use one function that would take anyone no more than 10 minutes to implement. Maybe it is not too bad in the end because of tree shaking etc, but this kind of thing happens all the time.

This is not a Javascript problem, this is a Javascript ecosystem problem.

you cant really divorce the language from its ecosystem.

I am telling you - I did :) but it's not possible in a professional environment.

You are arguing a very separate point, one that I tackle in the next paragraph.

Having them in wasm won't always improve them so this is a bit of a statistical fallacy.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.