Better HN
topnewbestaskshowjobs
Log inSign up

eliasnaur

124 karma · joined Apr 1, 2019 (7y ago) · 8 submissions

Started Gio, https://gioui.org, for portable immediate mode GUI programs in Go. Maintainer of mobile platform support for Go.
Submissions

comment 4y ago · link · parent

FWIW, Gio (gioui.org) recently added support for RTL languages and complex scripts. So there's no fundamental reason immediate mode UIs can't have the nice features you're used to from retained mode UIs.

comment 4y ago · link · parent

With intelligent frame pacing you can sacrifice, say, a frame of input latency to sustain high frame rates. See https://raphlinus.github.io/ui/graphics/gpu/2021/10/22/swapc....

> Are immediate-mode GUIs up to the task? What is driving their authors to pursue this design? Why aren't they choosing a declarative design

Immediate mode UIs make managing state much easier, and avoids callbacks for event processing. That alone is worth it in my opinion.

comment 4y ago · link · parent

The immediate mode Gio (gioui.org) toolkit has support for accessibility (on Android for now), IME and, recently, RTL text layout.

Disclaimer: I'm the author.

comment 6y ago · link · parent

Sadly even imgui cannot get around the fact that many operating systems (macOS/iOS/Android) force you to give up your main thread. Linux and, perhaps surprisingly, Windows are good guys in this regard.

comment 6y ago · link · parent

It happened by accident. Originally I wanted to run on bare-metal, and thought UEFI would be a good starting point. THen I never got around to adding multiboot and similar support.

6.

Show HN: A Go unikernel capable of running GUI programs(groups.google.com ↗)

184 points · by eliasnaur · 6y ago · 18 comments

comment 7y ago · link · parent

Gomobile bridges Java and ObjectiveC/Swift to Go, and probably entails the same overhead the author is trying to avoid.

Shameless plug: If you like Go and immediate mode UIs in particular, Gio[0] runs the same Go code across desktop and mobile alike. No bridging or native code required.

If you like a more mature framework and don't mind Dart, I think Flutter is an attractive toolkit. I started Gio wanting to write a Flutter clone in Go before going for the immediate mode design.

[0] https://gioui.org

8.

Show HN: Immediate Mode GUI in 100% Go for iOS, Android, macOS, Linux, Windows(groups.google.com ↗)

8 points · by eliasnaur · 7y ago · 1 comment