3 ms·
> Rust, Go and others have been building WASM 0.2 support for many years, they currently have a “just works” support... Can confirm. I was pretty stubborn and
by cookiengineer 2y ago
> Rust, Go and others have been building WASM 0.2 support for many years, they currently have a “just works” support...
Can confirm. I was pretty stubborn and wanted to use Go to build a UI in a webview/webview using local app, but oh my, js.Value in Go is so much pain to deal with. A lot of things in the JS world don't integrate nicely with Go as a language (e.g. the difference of Go channels and JS Promises, or magical enum values _and_ URL patterns on the same properties like in the Fetch API)
Long story short, I am now around 3 months into building a WebASM bindings and components framework, and it's still a lot of work until I am on the functionality level of TSX files. [1] All those Web/DOM/Browser APIs are kinda hard to integrate into the Go world, especially if you're as stubborn as me and want to have a real typed bindings API that uses Go's native data types.
[1] https://github.com/cookiengineer/gooey https://github.com/cookiengineer/gooey