logoalt Hacker News

homarplast Friday at 7:31 PM1 replyview on HN

it is not hate. It is same reason people likes node on the backend: one language to do eveything.

Wasm with 'fast' DOM manipulation opens the door to every language compiling to wasm to be used to build a web app that renders HTML.


Replies

codelikeawolflast Friday at 8:07 PM

I don't mean to split hairs here, but considering the wording of "throw something in the gutter", I would argue that "hate" isn't really too far off the mark.

> Wasm with 'fast' DOM manipulation opens the door to every language compiling to wasm to be used to build a web app that renders HTML.

This was never the goal of Wasm. To quote this article [1]:

> What should be relevant for working software developers is not, "Can I write pure Wasm and have direct access to the DOM while avoiding touching any JavaScript ever?" Instead, the question should be, "Can I build my C#/Go/Python library/app into my website so it runs with good performance?"

Swap out "pure Wasm" with <your programming language> and the point still stands. If you really want to use one language to do everything, I'm pretty sure just about every popular programming language has a way of transpiling to JS.

[1] https://queue.acm.org/detail.cfm?id=3746174