News for hackers. Stuff that matters.
Re:Making WebAssembly a first-class language on the Web by thesmart on Thursday February 26, 2026 @03:44PM (#47171782)
WebAssembly is amazing, but I don't think making it a DOM controller is where the action is. What specific scenarios do you aspire to unlock and why would those scenarios lead to broader adoption?
Re:Making WebAssembly a first-class language on the Web by yoshuaw on Thursday February 26, 2026 @04:31PM (#47172253)
I think it's less about unlocking new scenarios per se, and more about making existing scenarios better. If given the choice I'll generally prefer to write my code in Rust. But with native Wasm Component-based DOM bindings that same code will now run twice as fast.
Re:Making WebAssembly a first-class language on the Web by yoshuaw on Thursday February 26, 2026 @04:39PM (#47172341)
The other side of the story here is also worth considering: native support in browsers provides a stable compile target for language toolchains. It'd be really nice if targeting the web from e.g. Kotlin, Swift, or Rust becomes just a matter of passing the right flag to the compiler.
Re:Making WebAssembly a first-class language on the Web by bvisness on Thursday February 26, 2026 @06:17PM (#47173599)
> I don't think making it a DOM controller is where the action is

Why not? I feel like people have gotten so used to the limitations of WebAssembly today that they've internalized JS as the only answer. But I don't really like JS, and would love to build web apps in other languages, and I totally would if it wasn't a huge pain (and slower too!)

Re:Making WebAssembly a first-class language on the Web by mendyberger on Thursday February 26, 2026 @07:24PM (#47174467)
> What specific scenarios do you aspire to unlock

Modern languages come with lots of interesting features like better dev ex, null safety, etc. Js is a fine language, but there are other languages that bring unique advantages, the web shouldn't block developers from using better tools. The web is best off when developers have freedom.

Re:Making WebAssembly a first-class language on the Web by justinclift on Friday February 27, 2026 @06:01AM (#47179100)
Being able to program modern websites without having to learn javascript/typescript in any way? :)
Re:Making WebAssembly a first-class language on the Web by swiftcoder on Wednesday March 11, 2026 @12:24PM (#47337664)
Web development in languages other than Javascript, mostly. Today this would benefit languages like Rust that already have adhoc JS-based glue layers to enable their WASM output to call Web APIs, but you can imagine a future where languages like TypeScript compile directly to WASM instead of transpiling to JS...