News for hackers. Stuff that matters.
Re:Golang Desktop App with Webview/Lorca, WASM and Bazel by zachrip on Tuesday August 11, 2020 @04:07AM (#24118228)
But I don’t want to write JavaScript(!) and deal with all the complexities that comes with it like npm, webpack, typescript… Fortunately, I can just compile GoLang to WebAssembly (WASM)

Okay...

Large WASM binaries (especially from GoLang): these take a long time to send over the network increasing loading times. In a desktop app the binary isn’t transferred over the network, so less overhead.

I forgot that you don't have to download desktop apps, they just appear!

Browser incompatibility: Some WebAssembly methods are unavailable in browsers and older browsers are not supported at all. In a desktop app the “browser” is controlled (Chrome for Lorca and Safari for webview), so no compatibility issues.

Electron???

This just seems like you built a less easy to use bundling/development platform than js/webpack/etc and claimed it was better when I'd argue it's way less mainstream and thus less accessible. Not to mention you could've just used native ui like others are talking about. Seems like the worst of both worlds to me.

Re:Golang Desktop App with Webview/Lorca, WASM and Bazel by rkwz on Tuesday August 11, 2020 @05:21AM (#24118609)
I wrote a simple webapp using Rust (Wasm, Yew) and the payload is 130KB gzipped - https://rustmart-yew.netlify.app/

Repo: https://github.com/sheshbabu/rustmart-yew-example

Re:Golang Desktop App with Webview/Lorca, WASM and Bazel by abhink on Tuesday August 11, 2020 @06:07AM (#24118806)
> I forgot that you don't have to download desktop apps, they just appear!

This seems disingenuous, given how clear the difference of bandwidth utilization between a web app and a desktop app is during setup.