News for hackers. Stuff that matters.
Re:Ask HN: How to make a native GUI with a modern language? by socialdemocrat on Tuesday August 09, 2022 @11:06AM (#32399028)
One unusual alternative you may not have thought about is using Godot Game Engine. Before dismissing it, consider this: Godot engine is shockingly small for what it does. The download is about 30-40 MB. The GUI designer tool is second to none, and you can make highly interactive advanced GUIs using a language that looks very much like Python called GDScript. It is very quick to learn.

It does make GUI which are native to the platform but you get a small native binary which renders OpenGL.

Is Making Advanced GUI Applications with Godot the Future? https://medium.com/swlh/what-makes-godot-engine-great-for-ad...

Re:Ask HN: How to make a native GUI with a modern language? by d--b on Tuesday August 09, 2022 @06:22PM (#32405278)
I really wanted to try this out, but the learning curve for godot was a little steep, cause there is all the game related stuff I don’t really care about. Any tutorial to create a simple app with a few controls?
Re:Ask HN: How to make a native GUI with a modern language? by withinboredom on Wednesday August 10, 2022 @03:56AM (#32408985)
Wouldn’t that seriously hurt laptop battery life to use a discrete gpu to render the UI? Or is there someway to tell the OS that a non-discrete gpu is fine?
Re:Ask HN: How to make a native GUI with a modern language? by capableweb on Wednesday August 10, 2022 @06:40AM (#32409936)
No, GPUs are more power efficient than CPUs to render graphics, so it'll save battery.
Re:Ask HN: How to make a native GUI with a modern language? by withinboredom on Wednesday August 10, 2022 @07:07AM (#32410101)
So, my laptop is dumb for turning off the discrete GPU when I unplug it?
Re:Ask HN: How to make a native GUI with a modern language? by Chai-T-Rex on Wednesday August 10, 2022 @11:21AM (#32413454)
They didn't say discrete GPU, they said GPUs, which includes integrated GPUs.
Re:Ask HN: How to make a native GUI with a modern language? by withinboredom on Wednesday August 10, 2022 @12:28PM (#32414624)
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? by OvermindDL1 on Wednesday August 10, 2022 @12:37PM (#32414796)
When initializing a GPU context you can specify whether you want the most efficient device, the fastest device, etc, for a GUI app then you would want to pick the most efficient, which is a single flag to pass in, or supply options and let the user pick which one they want.
Re:Ask HN: How to make a native GUI with a modern language? by ghishadow on Wednesday August 10, 2022 @11:43AM (#32413901)
How is accessibility? best thing about Electron is we get accessibility of Browser