Passing strings between TinyGo and JavaScript
After getting a “Hello, World!” WebAssembly application working I thought it would be fun to try and implement a toy programming language in the browser. However before I could even start thinking about parsers, abstract syntax trees and the like I had to be able to pass strings between my WebAssembly module and the surrounding JavaScript.
Turns out that is much trickier than I expected.