What practical use cases for #WebAssembly can you imagine?

Tell about it in this thread.

I use WASM to integrate software solutions across different stacks. For example, I compile a Twofish cipher implementation from C to WASM and use it in the browser. It’s cheap and prevents reinventing the wheel.

However, WASM has limitations: no threads, no hardware acceleration, etc.

What other real-world use cases can you imagine?

#wasm #webassembly #askfedi #opensource #programming

@vitonsky The main use case is avoiding JS. Mixing languages is more complicated than not mixing them. I do web UIs fully in #golang using a react-like framework https://go-app.dev
A Go package for building Progressive Web Apps

A package for building progressive web apps (PWA) with the Go programming language (Golang) and WebAssembly (Wasm). It uses a declarative syntax that allows creating and dealing with HTML elements only by using Go, and without writing any HTML markup.

@pancsta i've just clicked your link.

I waited a seconds for a loading spinner. Then i closed that page.

That is unacceptable bad UX, because the Time to Useful Content is too high. The proper way is to pre-render web pages.

That is common problem of any projects who trying to use WASM instead of JS. The UI works bad and does not competitive to any site built via HTML & JS.

There are blog post about this problem

https://hacks.mozilla.org/2026/02/making-webassembly-a-first-class-language-on-the-web/

Why is WebAssembly a second-class language on the web? – Mozilla Hacks - the Web developer blog

This post is an expanded version of a presentation I gave at the recent WebAssembly CG meeting in Munich. WebAssembly has come a long way since its first release in 2017. The 1.0 version of WebAssembly was already a great fit for low-level languages like C and C++, and immediately enabled many new kinds of applications to efficiently target the web.

Mozilla Hacks – the Web developer blog

@vitonsky @pancsta

Not really a use case, but what I consider the killer app of #WebAssembly .. *polyglot* modular systems and contract-based development where #wasm components can be dropped in at runtime and be hosted on any device, from cloud-based servers to mobile and IoT on the edge.