Settings

Theme

Show HN: W++ – Now Compiling Directly to WASM (No Blazor, Minimal HTML)

github.com

2 points by sinisterMage a year ago · 0 comments · 1 min read

Reader

Hey HN,

A while ago I shared W++, a playful .NET-style scripting language that originally used Blazor for running in the browser. That version worked, but it relied heavily on the .NET toolchain and still felt… HTML-ish.

I’ve now reworked it completely: W++ compiles directly to raw WebAssembly using wasm-encoder in Rust. It no longer uses Blazor or any .NET runtime — just a minimal WASM module that runs in the browser and prints "hello from W++" through a JS-hosted print(ptr, len) function.

No DOM, no frameworks, no Blazor. Just:

Rust → WASM

A custom transpiler for W++

A small HTML shell to satisfy browser loading requirements

Yes, you still need a tiny bit of HTML to load the .wasm file (because of how browsers work), but this demo proves that you can build and run a script-powered experience on the web without relying on the DOM at all.

The dream: semantic WASM instead of semantic HTML.

GitHub repo: https://github.com/sinisterMage/WPlusPlusWASM Would love your thoughts or ideas!

No comments yet.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection