News for hackers. Stuff that matters.
Re:Go 1.11 Beta 2 is Released by Lio on Friday July 20, 2018 @09:37AM (#17574843)
Would it be possible to make use of the built in JavaScript garbage collector (I'm assuming not) and/or separate to the Go runtime into some kind of shared linked lib so that at least you only pay the download cost once?

(Of course that would open up all the sorts of issues that static compiles get rid of.)

Re:Go 1.11 Beta 2 is Released by skybrian on Friday July 20, 2018 @01:01PM (#17576790)
The JS garbage collector would be unlikely to work for Go since Go allows pointers into the middle of an object and JS doesn't.
Re:Go 1.11 Beta 2 is Released by steveklabnik on Friday July 20, 2018 @10:41AM (#17575358)
“Make use of the JS GC” is a feature planned for, but not yet accepted or implemented in webassembly.
Re:Go 1.11 Beta 2 is Released by gameswithgo on Friday July 20, 2018 @09:49AM (#17574944)
yes but Go doesn't plan to do that, they feel their GC is better.

You can also use C or Rust and avoid GC altogether. Rust produces very small WASMs

Re:Go 1.11 Beta 2 is Released by Lio on Friday July 20, 2018 @02:00PM (#17577326)
Yeah it does seem an unlikely fit for go.

I imagine that go to wasm would likely be used for situations where size won't matter too much and will be an acceptable trade off for familiarity or code reuse.