Post

Every demo of WASM I’ve seen is the same ol’ `add(1, 2)` example. I’ve yet to see a single demo that shows you how tedious it is pass strings or bytes back and forth. It is low level at the end of the day but you get to “experience” that when dealing with strings.

0 reposts2 likes

It is not low level anymore, you can pass JS objects into Wasm directly nowadays and even constructs high level objects in Wasm and return them to JS. With String Builtins a language targeting wasm can even directly interact with JS strings that are passed in and have JS string literals in the wasm.

Nice! Do you have some nice reference material like a blog post? I have seen this in certain places with Rust <> WASM. The issue is that a lot of guides and such that I’ve come across stop short of showing this.