Re:Kubernetes is a red flag signalling premature optimisation
by biztos on Monday July 04, 2022 @04:49AM
(#31974928)
And isn’t Wasm supposed to (some day) free us from the need to pick JS for the front end?
[ Parent
| on HN ]
Re:Kubernetes is a red flag signalling premature optimisation
by ggktk on Monday July 04, 2022 @05:23AM
(#31975131)
Unfortunately, that doesn't seem the way WASM is going. It's been 5 years and we still can't access the DOM without going through JS.
Re:Kubernetes is a red flag signalling premature optimisation
by jpgvm on Monday July 04, 2022 @05:42AM
(#31975257)
There isn't the political will-power to make it happen and force all the browser vendors to agree and implement. Hence status-quo remains.
Re:Kubernetes is a red flag signalling premature optimisation
by afiori on Monday July 04, 2022 @07:54AM
(#31976049)
Which is ironic as the DOM interface was designed as an abstract interface (the IDL used in the spec is more interested in compatibility with Java than JS).
In practice though the main reason is that to have decent DOM bindings you need to stabilize many other specs first (unless you do a ultra-specific DOM-only extension, but nobody wants that)
Re:Kubernetes is a red flag signalling premature optimisation
by marcosdumay on Monday July 04, 2022 @01:37PM
(#31979765)
WASM can access the DOM by its foreign functions interface. It still needs some data conversion, but it's not through JS.
Rust, for example, has a huge package with interfaces for every DOM function.
Re:Kubernetes is a red flag signalling premature optimisation
by marcosdumay on Monday July 04, 2022 @01:36PM
(#31979740)
I have been very successful in replacing a JS browser application with Rust. It has been great, because Rust is much easier to change, and since the application is complex, I need to change it a lot.
But I wouldn't recommend it in general, because JS (and for slightly more complex things, TS) is much easier to create because of all the old Rust features that surface every time you mention it. And most GUI code is simple enough that you only have to write once, maybe fix a few details, and forget about it.
Wasm would be much more compelling if it was target by higher level languages.