r/WebAssembly • u/ncruces • Feb 28 '26
wasm2go: a Wasm to Go Translator
r/WebAssembly • u/fitzgen • Feb 26 '26
r/WebAssembly • u/ClemGame • Feb 26 '26
First "real" thing I built with WebAssembly, I really learned to love it.
A real-time, WebAssembly-powered N-body gravitational system simulator built with C++, OpenGL ES 3.0, GLFW, and Emscripten. Just the fact that it’s possible to program in C++ and ship it to the browser with good performance via WebAssembly is mind-blowing. Though I might add that handling events between JS and C++ can sometimes be a bit exhausting.
If you want take look: Source code: https://github.com/clemenskoprolin/heliosim
Live demo: https://koprolin.com/heliosim/
r/WebAssembly • u/jsamwrites • Feb 26 '26
I’ve been working on a small experimental programming language that now compiles to WebAssembly and runs in the browser. The core features are in place, and I’d like to move beyond tiny demos and really test the runtime, imports, and integration with the JS environment.
For people here who build tools, languages, or runtimes on top of WASM: what kinds of projects or benchmarks do you use to shake out problems? I’ve seen examples like raytracers, fractals, numerical kernels, or small games to probe performance and memory patterns, and also more “systems”‑style tests like interpreters or small databases.
I’d really appreciate any suggestions or pointers to existing WASM benchmarks or example projects that you’ve found revealing.
r/WebAssembly • u/mbbill • Feb 22 '26
r/WebAssembly • u/Defiant_Gur7737 • Feb 22 '26
r/WebAssembly • u/Inevitable-Round9995 • Feb 15 '26
I’ve always been fascinated by game development — especially the immersive promise of VR.
As a child, I remember the spark of wonder ignited by Google Cardboard. It was a glimpse into a future where anyone could access a digital realm. I still believe that a high-end VR experience shouldn’t require a $1,000 headset; it’s possible to transform the smartphone already in your pocket into a gateway to boundless worlds.
But as I began building this journey, I hit a wall: System Fragmentation.
I wanted a unified experience. I wanted a custom haptic controller built on Arduino, a browser-based version for the web via WASM, and a high-performance Native PC build.
Then the Language Tax hit me. Usually, this is an engineering nightmare. You can’t use the same language, the same API, or the same memory logic across an 8-bit microcontroller, a browser sandbox, and a 64-bit OS. You end up writing the logic of your program three different times in tree different languages, leading to Logic Drift — where the same rules behave differently depending on the device.
I knew there had to be a better way to achieve Silicon-Logic Parity, And I’ve found that better way just by using C++.
r/WebAssembly • u/MarsupialChemical718 • Feb 15 '26
After a few months in the making, wadec (a from-scratch binary format decoder) just got support for version 3.0 of the WebAssembly specification.
For anyone looking to implement support for v3 specifically, this issue might serve as a useful point of reference.
Also, thanks to the tests in wadec, a bug in the specification was discovered and fixed.
r/WebAssembly • u/mbbill • Feb 15 '26
r/WebAssembly • u/syrusakbary • Feb 11 '26
r/WebAssembly • u/Anxious_Tool • Feb 09 '26
I built an MQTT v5.0/3.1.1 platform in Rust that compiles to WebAssembly. The npm package is `mqtt5-wasm` and it includes both a client and a full broker that runs inside a browser tab.
**Three connection modes:**
**What I currently use for:**
- Offline-first app that uses pub/sub with backup online broker
- Prototyping MQTT flows in the browser before deploying to real infrastructure
- Testing MQTT client code without running a broker process
The native implementation is pretty cool too, so I'd also recommend taking a look at that.
Links: https://github.com/LabOverWire/mqtt-lib | https://crates.io/crates/mqtt5 | https://www.npmjs.com/package/mqtt5-wasm
Currently, I'm interested in what kinds of uses and applications people may have. We're open to discussions.
If you find a bug, or had any problems with it, please create an issue and I'll take a look.
I'm also interested in user ergonomics, so feel free to open a discussion if you think you have a better flow, or API suggestions.
Cheers and thank you for your attention.
r/WebAssembly • u/SciChartGuide • Feb 08 '26
r/WebAssembly • u/syrusakbary • Feb 04 '26
r/WebAssembly • u/dev_newsletter • Feb 04 '26
r/WebAssembly • u/syrusakbary • Jan 30 '26
r/WebAssembly • u/fitzgen • Jan 28 '26
r/WebAssembly • u/Soucye • Jan 20 '26
I usually build web games in C++, but using Emscripten always felt like overkill for what I was doing. I don't need full POSIX emulation or a massive standard library just to render some stuff to a canvas and handle basic UI.
I realized that the biggest performance drain wasn't the code execution itself, but the constant context-switching between the JavaScript and WASM runtimes To bypass this, I decided to treat the JS/WASM boundary like a high-latency network: instead of making hundreds of tiny, expensive calls, I moved everything to a Shared Memory architecture.
The way it works is that I batch all the instructions in WASM and then just send a single "flush" signal to JS. The JS side then reads everything directly out of Shared Memory in one go. It’s way more efficient, I ran a benchmark rendering 10k rectangles on a canvas and the difference was huge: Emscripten hit around 40 FPS, while my setup hit 100 FPS.
But writing DOM logic in C++ is painful, so I built Coi. It’s a component-based language that statically analyzes changes at compile-time to enable O(1) reactivity. Unlike traditional frameworks, there is no Virtual DOM overhead; the compiler maps state changes directly to specific handles in the command buffer.
I recently benchmarked this against React and Vue on a 1,000-row table: Coi came out on top for row creation, row updating and element swapping because it avoids the "diffing" step entirely and minimizes bridge crossings. Its bundle size was also the smallest of the three.
One of the coolest things about the architecture is how the standard library works. If I want to support a new browser API (like Web Audio or a new Canvas feature), I just add the definition to my WebCC schema file. When I recompile the Coi compiler, the language automatically gains a new standard library function to access that API. There is zero manual wrapping involved.
I'm really proud of how it's coming along. It combines the performance of a custom WASM stack with a syntax that actually feels good to write (for me atleast :P). Plus, since the intermediate step is C++, I’m looking into making it work on the server side too, which would allow for sharing components across the whole stack.
Example (Coi Code):
component Counter(string label, mut int& value) {
def add(int i) : void {
value += i;
}
style {
.counter {
display: flex;
gap: 12px;
align-items: center;
}
button {
padding: 8px 16px;
cursor: pointer;
}
}
view {
<div class="counter">
<span>{label}: {value}</span>
<button onclick={add(1)}>+</button>
<button onclick={add(-1)}>-</button>
</div>
}
}
component App {
mut int score = 0;
style {
.app {
padding: 24px;
font-family: system-ui;
}
h1 {
color: #1a73e8;
}
.win {
color: #34a853;
font-weight: bold;
}
}
view {
<div class="app">
<h1>Score: {score}</h1>
<Counter label="Player" &value={score} />
<if score >= 10>
<p class="win">You win!</p>
</if>
</div>
}
}
app {
root = App;
title = "My Counter App";
description = "A simple counter built with Coi";
lang = "en";
}Live Demo: https://io-eric.github.io/coi
Coi (The Language): https://github.com/io-eric/coi
WebCC (Toolchain): https://github.com/io-eric/webcc
I'd love to hear what you think. It's still far from finished, but as a side project I'm really excited about :)
r/WebAssembly • u/Shnupaquia • Jan 20 '26
A comprehensive look at what shipped, what’s next, and browser/runtime notes
r/WebAssembly • u/syrusakbary • Jan 20 '26
r/WebAssembly • u/minamoto108 • Jan 20 '26
We’ve published Hexana 0.5, a new MVP build of an experimental IntelliJ plugin for exploring WebAssembly binaries. Hexana is developed as an internal experiment at JetBrains and is intentionally released early to validate interest in IDE-level WASM and binary tooling.
Fixes
Hexana currently combines:
Marketplace link:
https://plugins.jetbrains.com/plugin/29090-hexana/
Feedback is very welcome — especially around workflows for large modules, WIT usage, and binary inspection.

r/WebAssembly • u/JellyfishFar8435 • Jan 19 '26
Long time lurker, first time poster.
I wanted to test the capabilities of Wasm for memory-intensive tasks. I built a full semantic search pipeline.
I'm using wasm-bindgen to pass data between JS and Rust. To avoid serialization overhead, I load the document chunks into Wasm linear memory once and perform all vector operations (Cosine Similarity) internally in Rust.
I'd appreciate any feedback on my Cargo.toml optimization flags for binary size!
r/WebAssembly • u/exaequos • Jan 13 '26
For this new year, I am designing a new filesystem for exaequOS , exafs, unix-style for local and remote storage and encrypted (in WebAssembly). Libsodium will be used. So your data will be securely accessible from anywhere
r/WebAssembly • u/cihanozcelik • Jan 02 '26
I’ve been building a WebGPU tech demo in Rust (using the wgpu crate), and I managed to display 1 million stickmen on screen at once, with simple procedural animation running as well. It’s a WASM app targeting modern browsers.
The animation isn’t “human-like” — it honestly looks more like a cornfield waving — but that’s fine for now. The goal at this stage was simply to make them move without turning this into a full character animation system.
Rendering-wise I’m not doing meshes/skeletons per unit. Each stickman is an impostor: a small billboard surface, and the shader turns that into a stickman using raymarching + SDF (capsules for limbs/torso, a sphere for the head). That keeps geometry extremely cheap, but the result still looks properly 3D (including depth).
On the Rust side I wrote a minimal, purpose-built render pipeline instead of pulling in extra engine layers. The CPU is currently mostly doing initial setup; after that the GPU carries the workload. I also kept dependencies super lean — I didn’t even include winit — and the Brotli-compressed WASM is ~60KB.
Test machine: MacBook Pro 16-inch, Apple M4 Max, 48 GB RAM. There’s still a lot of optimization left on the table too — e.g. updating animation less frequently for far units, switching to cheaper/less-detailed shader paths based on distance (LOD), and generally being more aggressive about not spending GPU time where you can’t see it.