In today's thrilling installment of "Yet Another Hot Take on #WASM," we dive into a riveting 16-minute manifesto on how to sort of, kind of like #wasmbindgen if you squint hard enough. 🤓 The author generously shares their personal tips and tricks for making the best of a bad situation, like a chef boasting about the time they successfully cooked a boot. 👢🍽️
https://notes.brooklynzelenka.com/Blog/Notes-on-Writing-Wasm #techtrends #hottakes #programming #HackerNews #ngated
Notes on Writing Wasm

I’ve been writing an increasing amount of Rust‑based Wasm over the past few years.

🎒 Monad Nomad

Been working on making #WebAssembly work with #async #JavaScript import functions. I was stuck for a while before I realized that I need to do it entirely through callbacks. Now I can run async #Rust code using JavaScript's event loop. It's wonky, but it gets the job done alright.

I know I could have leaned on #WasmBindgen, but I need a really defined interface that can be supported from multiple languages, including C and C++, so I did it by hand.