r/WebAssembly

YCETL: a compile time STL like template library to generate data structures that can be used at runtimes
▲ 46 r/WebAssembly+5 crossposts

YCETL: a compile time STL like template library to generate data structures that can be used at runtimes

I posted this days ago but the 'automated admins took it down saying was generated by AI' as the formulation was maybe too academic. Trying now with other words.
Short storry: I wanted to generated python glue code for webgpu based on webgpu header. After exploring libclang and generating correct results, I wanted something more generic, more 'built in into C++'. At the beginning I thought will be easy with constexpr compile time tricks, but turned out the compile time 'runtime' is very restrictive. And I solved the challenges with ycetl. https://github.com/zokrezyl/ycetl

This is not a toy project, it is work of couple of months, fight with windmills of compile time runtime. If you see issues that can make it production ready, please share.

u/Ok_Path_4731 — 2 days ago
▲ 13 r/WebAssembly+1 crossposts

I built a RISC-V Linux VM that runs Node.js v25 in a browser tab. No server. Please tell me if I'm insane.

Hey crew!

So I've been building userland.run, a RUST/WASM RISC-V 64-bit VM that runs entirely in your browser. It ships JS bridges for the terminal, an early app catalog (BusyBox apps, plus the full Node.js v25 pipeline), and all of it runs client-side. Zero server. If you know WebContainers, it's a cousin, except I went and emulated an actual RISC-V userland underneath because apparently I hate sleeping.

Where this is headed: a catalog of pure WASM apps you drive from a terminal OR hand off to an agent, with the inference engine also running in-tab. So the LLM lives in your browser too.

The dream: agentic dev and terminal work on YOUR machine. No cloud. No servers. No usage bill quietly ticking up while you sleep. Full privacy, your code never leaves the tab.

Now the honest part. I've been staring at this so long I genuinely can't tell anymore if it's a real thing people want or just a beautiful cathedral I built inside my own skull. So, WASM crew, I'm asking you directly: does this make sense, or have I been nerd-sniped by my own project?

Roast me. I can take it.

Cheers, Dietz

u/Witty_Combination712 — 2 days ago
▲ 2 r/WebAssembly+1 crossposts

I benchmarked my Rust/WASM engine vs my hand-optimized TypeScript in a Figma plugin (it was a tie)

Hi everyone. I just published an article about a Figma plugin I built with a Rust engine compiled to WebAssembly, and I wanted to share it here.

Two years ago I wrote that Rust could be "10x faster" than JavaScript. This time I had a real product to test that on, so I benchmarked the Rust/WASM engine against my own hand-optimized TypeScript. The speed came out as a tie, which honestly surprised me. The more interesting part was finding where Rust was still worth it (memory, steady frame times, the image crate for codecs) and where it was not.

I tried to be honest with the numbers, and the whole benchmark is public so anyone can run it.

Article:

https://medium.com/@bserefaniuk/wasm-didnt-make-my-figma-plugin-faster-it-made-it-possible-bb5b391e489a

Benchmark repo:

https://github.com/bserefaniuk/wasm-vs-ts-warp-bench

Happy to answer questions, especially about the Figma sandbox side: no threads, and loading the WASM from inlined bytes because the iframe cannot fetch. I would also like to hear how others approach the "Rust or not" decision on a hot path.

reddit.com
u/bserefaniuk — 13 days ago