Earlier quoted context omitted.
So, my laptop is dumb for turning off the discrete GPU when I unplug it?
They didn't say discrete GPU, they said GPUs, which includes integrated GPUs.
Ask HN: How to make a native GUI with a modern language?
131–140 of 145 posts
Re: Ask HN: How to make a native GUI with a modern language?
#132Earlier quoted context omitted.
Part of me wonders why someone hasn't tackled creating an Electron runtime service, so that each installed app doesn't load what could be a shared library into memory. There's a host of complicated problems there, but if the major issue is fat runtimes it can be pared down like Chrome workers.
So... the system WebView library?
Re: Ask HN: How to make a native GUI with a modern language?
#133Earlier quoted context omitted.
They didn't say discrete GPU, they said GPUs, which includes integrated GPUs.
A game engine will tell the OS to start up the discrete GPU if it is available. This is why I asked the original question. Is there some way to turn that off?
Re: Ask HN: How to make a native GUI with a modern language?
#134Earlier quoted context omitted.
I haven't used it myself (yet), but https://tauri.app/ looks very promising as Electron alternative. It uses the OS's browser so it doesn't have the bundle size issue you describe.
Isn’t the downside to this then that although you’re using the native browser you’re losing the whole point of Electron which is to have a consistent environment regardless of where it’s run?
Re: Ask HN: How to make a native GUI with a modern language?
#135Earlier quoted context omitted.
I haven't used it myself (yet), but https://tauri.app/ looks very promising as Electron alternative. It uses the OS's browser so it doesn't have the bundle size issue you describe.
I've tried it. It's a very strong effort but if you want to support Windows then welcome to hell. You'll need to ship Microsoft's new Edge runtime thing, which is a separate package. You'll either have to include that giant package in your package or download it on demand, and the latter is very brittle and will fail if MS changes their URLs or you're installing inside a very heavily firewalled (whitelisted) environm…
Re: Ask HN: How to make a native GUI with a modern language?
#136Earlier quoted context omitted.
JavaFX is not native, nor can it be made to look native like Swing can be made.
Why couldn’t it be native (whatever that even means)? At the end of the day, it does have a canvas you are free to draw anything on, so there is nothing you can’t imitate.
Re: Ask HN: How to make a native GUI with a modern language?
#137Earlier quoted context omitted.
FL Studio is written in Delphi and the UI is very snappy and modern with a lot of animations.
Delphi always had a very good and fast UI library, the only complaint in the older days was that it made for big binaries because VCL would get statically linked
Re: Ask HN: How to make a native GUI with a modern language?
#138Re: Ask HN: How to make a native GUI with a modern language?
#139Earlier quoted context omitted.
I've tried it. It's a very strong effort but if you want to support Windows then welcome to hell. You'll need to ship Microsoft's new Edge runtime thing, which is a separate package. You'll either have to include that giant package in your package or download it on demand, and the latter is very brittle and will fail if MS changes their URLs or you're installing inside a very heavily firewalled (whitelisted) environm…
As another Windows application developer targeting enterprise users, thanks for the warning. Electron it is, I guess. Either that, or using the IE engine for web views, or no web views at all. Edit: I'm already using Electron, though I've been wishing I could move away from it.
Not sure what time period the original commenter is referring to, this story has developed quite a bit over the past year, even into last month - https://blogs.windows.com/msedgedev/2022/06/27/delivering-th...
Edit: and if your alternative is Electron, WV2’s fixed runtime is the same concept as Electron in a static Chromium version - https://docs.microsoft.com/en-us/microsoft-edge/webview2/con...