7 comments

[ 3.3 ms ] story [ 25.2 ms ] thread
Interesting I feel like I'd rather go the other way, write something in a language with nice syntax and features, then transpile to go
(comment deleted)
hey ! i like the idea but I don't get why not using WASM instead of transpiling ? (I get the "transpiled typescript might be more readable" argument, but it seems less bullet proof / prone to unexpected behavior)
There are many environments that don't support WASM yet. Plus, JavaScript is a lot lighter weight for some things - particularly if you just need to register a bunch of callbacks that process data when events come in. I'm using WASM too quite a bit, though! Try out tinygo, gopherjs, or Go's built in wasm/wasi support for that.