News for hackers. Stuff that matters.
Re:Wails: Build cross-platform applications using Go by solardev on Saturday July 16, 2022 @04:38PM (#32121743)
An embedded webview gives you more control over the browser chrome (as in UI), extensions, cookies, etc. It also gives you a shim into some filesystem/OS APIs that a regular sandboxed browser page wouldn't have. It gives you a predictable HTML/JS renderer that you control, instead of blindly hoping that your user will happen to have a compatible browser.

Still, webview UIs are a lazy alternative to actual native apps. I don't like them either, but not every org can afford to hire native devs and write 3x-4x the UI code.

Re:Wails: Build cross-platform applications using Go by giantrobot on Saturday July 16, 2022 @06:06PM (#32122386)
> It also gives you a shim into some filesystem/OS APIs that a regular sandboxed browser page wouldn't have.

If you're just talking to a localhost server, it's got all the local access it needs. The web UI doesn't have to do anything besides control the native service running. I'd much rather be able to ship a tiny binary and use the local browser than pack around a whole browser just to access otherwise restricted/sandboxed APIs. You can just drop a URL shortcut on the desktop (or wherever) during installation.

Re:Wails: Build cross-platform applications using Go by mmgutz on Saturday July 16, 2022 @07:11PM (#32122796)
Wails DOES NOT ship with a browser. It's not electron.
Re:Wails: Build cross-platform applications using Go by psydvl on Saturday July 16, 2022 @07:17PM (#32122828)
It required webkit, almost same shit