Live data from Hacker News

Gooey: A GPU-accelerated UI framework for Zig

github.com

1–10 of 93 posts

Re: Gooey: A GPU-accelerated UI framework for Zig

#2
Interesting project, but needs documentation. In particular, what's the model it uses? I.e. how are events, state, etc. handled? Normally I'd just work it out from the code examples, but the example in the README is over 200 lines which is too long for me.

(Don't tell me here. Make your docs better, so everyone benefits!)

Re: Gooey: A GPU-accelerated UI framework for Zig

#3
> Inspiration

> GPUI - Zed's GPU UI framework

Cool, but a comparison would also be very helpful.

If I decide to make a GUI app with Zig, how do I choose between Gooey and GPUI?

So far, all I know that GPUI is more mature and has at least one successful project built with it, so...

Also:

> Gooey: Turn (almost) any Python 3 Console Program into a GUI application with one line

> https://github.com/chriskiehl/Gooey

Re: Gooey: A GPU-accelerated UI framework for Zig

#4
post #3

> Inspiration > GPUI - Zed's GPU UI framework Cool, but a comparison would also be very helpful. If I decide to make a GUI app with Zig, how do I choose between Gooey and GPUI? So far, all I know that GPUI is more mature and has at least one successful project built with it, so... Also: > Gooey: Turn (almost) any Python 3 Console Program into a GUI application with one line > https://github.com/chriskiehl/Gooey

> how do I choose between Gooey and GPUI?

GPUI is for rust, not zig

Re: Gooey: A GPU-accelerated UI framework for Zig

#5
post #3

> Inspiration > GPUI - Zed's GPU UI framework Cool, but a comparison would also be very helpful. If I decide to make a GUI app with Zig, how do I choose between Gooey and GPUI? So far, all I know that GPUI is more mature and has at least one successful project built with it, so... Also: > Gooey: Turn (almost) any Python 3 Console Program into a GUI application with one line > https://github.com/chriskiehl/Gooey

I mean GPUI is rust and Gooey is Zig so if you wanna do a project in Zig you probably wouldn’t choose GPUI.

Re: Gooey: A GPU-accelerated UI framework for Zig

#6
post #3

> Inspiration > GPUI - Zed's GPU UI framework Cool, but a comparison would also be very helpful. If I decide to make a GUI app with Zig, how do I choose between Gooey and GPUI? So far, all I know that GPUI is more mature and has at least one successful project built with it, so... Also: > Gooey: Turn (almost) any Python 3 Console Program into a GUI application with one line > https://github.com/chriskiehl/Gooey

GPUI is written in Rust, so in this specific case the decision is already somewhat made for you.

Re: Gooey: A GPU-accelerated UI framework for Zig

#7
post #5
post #3

> Inspiration > GPUI - Zed's GPU UI framework Cool, but a comparison would also be very helpful. If I decide to make a GUI app with Zig, how do I choose between Gooey and GPUI? So far, all I know that GPUI is more mature and has at least one successful project built with it, so... Also: > Gooey: Turn (almost) any Python 3 Console Program into a GUI application with one line > https://github.com/chriskiehl/Gooey

I mean GPUI is rust and Gooey is Zig so if you wanna do a project in Zig you probably wouldn’t choose GPUI.

Call it Ziggy

Re: Gooey: A GPU-accelerated UI framework for Zig

#9
post #3

> Inspiration > GPUI - Zed's GPU UI framework Cool, but a comparison would also be very helpful. If I decide to make a GUI app with Zig, how do I choose between Gooey and GPUI? So far, all I know that GPUI is more mature and has at least one successful project built with it, so... Also: > Gooey: Turn (almost) any Python 3 Console Program into a GUI application with one line > https://github.com/chriskiehl/Gooey

If I remember correctly, Zed's framework didn't set the goal of being able to draw arbitrary graphics/UI and by constraining that, it basically managed to represent everything with quads and distance fields in shaders, which reduced draw calls and GPU state management to a minimum.
Post reply on HN