News for hackers. Stuff that matters.
Re:Gooey: A GPU-accelerated UI framework for Zig by ecshafer on Wednesday June 03, 2026 @04:18PM (#48389403)
This looks good. But the thing that always lets me down on UI frameworks is how much freaking work it is to get something on the screen. My first language was Borland Turbo C++. It was so comparatively simple to do stuff. If I want to write a circle on the screen its just this:

#include <graphics.h> #include <conio.h>

int main() { int gd = DETECT, gm;

    initgraph(&gd, &gm, "C:\\TURBOC3\\BGI");

    circle(320, 240, 100);

    getch();
    closegraph();

    return 0;
}

Making some shapes and forms wasn't that much work either.

If I think back to VB and Windows (whatever it was then) making a basic window, form and some buttons was so simple and easy, they even made GUI builders because they were so good.

Somewhere along the lines GUIs became overly complex to implement.

Re:Gooey: A GPU-accelerated UI framework for Zig by lll-o-lll on Wednesday June 03, 2026 @05:15PM (#48390182)
So VB6 or earlier is what you are probably remembering, and VB has a fascinating history as it started life as a wysiwyg design tool before it was attached to any language.

However, you need to remember that these simpler tools were a product of a much simpler set of requirements. Fixed themes, fixed screen size, fixed aspect ratios. I imagine a wysiwyg editor that gives you all the power of, say, CSS, and yet remains simple for simple things, sounds like a much more difficult task. I haven’t worked on UI in 20 years, so maybe such tools do exist.

Re:Gooey: A GPU-accelerated UI framework for Zig by chii on Thursday June 04, 2026 @03:24AM (#48395299)
> a wysiwyg editor that gives you all the power of, say, CSS, and yet remains simple for simple things, sounds like a much more difficult task.

so the problem is CSS isnt it?

The constraints and flexibility of CSS makes it difficult to make a simple outcome easy to specify in similarly easy CSS.

Re:Gooey: A GPU-accelerated UI framework for Zig by SkiFire13 on Thursday June 04, 2026 @07:17AM (#48397027)
I remember Android Studio's WYSIWYG ConstraintLayout UI builder being pretty good for responsive layouts.
Re:Gooey: A GPU-accelerated UI framework for Zig by WD-42 on Wednesday June 03, 2026 @04:59PM (#48389962)
OK, but what about actually using a GUI toolkit to make an actual application?

You can optimize a library to make it comparatively simple to draw a circle on a screen. But that tells me nothing about binding state, signals, styling, widget hierarchy, etc. Maybe these frameworks look complicated to you because doing something more than drawing a circle is actually more complicated.

Re:Gooey: A GPU-accelerated UI framework for Zig by cwillu on Wednesday June 03, 2026 @05:50PM (#48390642)
VB was used to create a great many data-munging applications in its time, and while they were never pretty, they were lightning fast, largely consistent, and generally far more reliable than what we currently have.
Re:Gooey: A GPU-accelerated UI framework for Zig by monster_truck on Wednesday June 03, 2026 @08:45PM (#48392240)
A relative's business has been and is still completely driven by a VB app. It's goddamn ugly but most businesses of their size in that industry have been paid subscribers for 30? years at this point. Most notably its the only piece of software they've never had to ask me for help with at all.

The only updates it gets anymore are little data packs when laws/regulations change and it seems like they automated that because it's always ready before it's needed. The last "big" update was a guide to running it in parallels on new macs.

Re:Gooey: A GPU-accelerated UI framework for Zig by chii on Thursday June 04, 2026 @03:23AM (#48395278)
And that is the perfect piece of software - it does exactly what is asked, and no more. It has simple enough "architecture" to let anyone maintain it (by adding new stuff that regulations demand, easily), and continues to function without modification otherwise.
Re:Gooey: A GPU-accelerated UI framework for Zig by hombre_fatal on Wednesday June 03, 2026 @05:49PM (#48390630)
Agreed. I want a coherent, deliberate architecture for building an application and managing state.

That's the hard part. I'll take on incidental boilerplate (e.g. Elm) if the architecture helps me build and understand applications. Whatever gets me to that latter part.

Re:Gooey: A GPU-accelerated UI framework for Zig by bschoepke on Wednesday June 03, 2026 @05:38PM (#48390485)
Latest way to do native Windows GUI in Rust is pretty cool:

https://www.reddit.com/r/rust/comments/1tql7uf/microsofts_wi...

Re:Gooey: A GPU-accelerated UI framework for Zig by coffeeaddict1 on Wednesday June 03, 2026 @04:37PM (#48389655)
This is what you can with Qt:

    #include <QApplication>
    #include <QWidget>
    #include <QPainter>

    class widget : public QWidget {
    void paintEvent(QPaintEvent*) override {
        QPainter(this).drawEllipse(QPoint(320, 240), 100, 100);
    }
    };

    int main(int argc, char *argv[]) {
        QApplication app(argc, argv);
        widget w;
        w.resize(640, 480);
        w.show();
        return app.exec();
    }

It doesn't seem too complicated to me.
Re:Gooey: A GPU-accelerated UI framework for Zig by ecshafer on Wednesday June 03, 2026 @04:45PM (#48389770)
That doesn't seem too bad, I agree. Maybe that's why QT is used. I haven't really used QT, but the more modern Windows apis, vulkan, etc all are pretty complicated.
Re:Gooey: A GPU-accelerated UI framework for Zig by cwillu on Wednesday June 03, 2026 @05:52PM (#48390663)
FWIW, vulkan is not a GUI library; if you're reaching for it without a clear understanding of why you're doing so, yeah, it'll seem like a very complicated way of doing things.
Re:Gooey: A GPU-accelerated UI framework for Zig by TheRoque on Wednesday June 03, 2026 @07:38PM (#48391626)
Vulkan is a graphics API, not a UI library or framework. It's way lower level and if your goal is to make a user interface, you're not really supposed to do it with Vulkan (but you could i guess)
Re:Gooey: A GPU-accelerated UI framework for Zig by nandomrumber on Wednesday June 03, 2026 @07:11PM (#48391354)
It’s Qt and pronounced ‘cute’.

https://en.wikipedia.org/wiki/Qt_(software)

Re:Gooey: A GPU-accelerated UI framework for Zig by jetbalsa on Wednesday June 03, 2026 @05:22PM (#48390265)
Thats why I've always like pytk

    from tkinter import \*

    root = Tk()
    a = Label(root, text ="Hello World")
    a.pack()

    root.mainloop()
Re:Gooey: A GPU-accelerated UI framework for Zig by nnevatie on Thursday June 04, 2026 @01:09AM (#48394199)
Yeah, it doesn't look too bad on the surface. However, Qt is bad and I'd advice moving away from it if you can. This is based on ~20 years of experience using it in various projects.

The licensing is trying to paint a picture of LGPL being somehow uncertain/evil, the way Qt advocates non-idiomatic C++ practices - I could go on for days, but shall digress.

Re:Gooey: A GPU-accelerated UI framework for Zig by monster_truck on Wednesday June 03, 2026 @08:34PM (#48392143)
100% Agreed. My first language was LibertyBASIC. It had everything a kid could want to make a paint program that had (at the time) more features than MSPaint, or whatever little game. Menu bars, undo/redo, dialogue windows, panes, sprites, sound, etc.

Compared to the effort:quality of something like tkinter, LibertyBASIC put it to shame! Not to throw shade, tkinter is perfectly fine but I don't think I would have cared for it at that age.

It also taught me how to pirate software, when I found out the borland compiler required to make .exe's I could give my friends was $200 :)

Re:Gooey: A GPU-accelerated UI framework for Zig by danielvaughn on Wednesday June 03, 2026 @10:18PM (#48392845)
I know I must be underthinking this, but I really don't know why native toolkits can't just implement some codegen thing that takes XML and produces the above.

Like, all of that should be expressable with just

  <graph>
    <circle />
  </graph>
Re:Gooey: A GPU-accelerated UI framework for Zig by molybd3num on Thursday June 04, 2026 @04:19AM (#48395729)
You might like raylib :) https://www.raylib.com/
Re:Gooey: A GPU-accelerated UI framework for Zig by zionsati on Saturday June 06, 2026 @09:36AM (#48424982)
Ahhh a fellow Borland Turbo C++ Dev (we weren't called Devs back then!)

I agree. GUI these days are largely driven by how HTML works and we now have a whole generation of UI Devs (frontend devs) who've never known any other way.

I missed the good old ways of GUI.