News for hackers. Stuff that matters.
Re:Dear ImGui: Bloat-free Graphical User interface with mini... by dazzawazza on Wednesday December 20, 2023 @03:02PM (#38712939)
I've written video game editors in Win32, MFC, wxWidgets, Fox Toolkit, Qt, Cocoa and Dear ImGUI.

I will never use anything other than Dear ImGUI from now on. The explicitness, lack of state, speed of development and maintainability of the code means it wins hands down.

Well worth investing your time in and if you are a leader in the games industry well worth supporting financially.

Re:Dear ImGui: Bloat-free Graphical User interface with mini... by cristeigabriel on Wednesday December 20, 2023 @03:06PM (#38712974)
I believe you mean the (general) transparency of state? But yes, that's quite great when you're getting stuff together quickly. It's even used for more serious stuff, where immediate mode is a necessity.
Re:Dear ImGui: Bloat-free Graphical User interface with mini... by mort96 on Wednesday December 20, 2023 @03:59PM (#38713568)
The "lack of state" refers to being immediate mode rather than retained mode.
Re:Dear ImGui: Bloat-free Graphical User interface with mini... by cristeigabriel on Wednesday December 20, 2023 @04:15PM (#38713742)
It does require some state in the back for everything to work as it does.
Re:Dear ImGui: Bloat-free Graphical User interface with mini... by mort96 on Wednesday December 20, 2023 @04:47PM (#38714062)
Of course. The API is stateless but the implementation isn't. That's usually how good immediate mode APIs work.
Re:Dear ImGui: Bloat-free Graphical User interface with mini... by prewett on Wednesday December 20, 2023 @07:27PM (#38715605)
Dear ImGUI is just retained mode under the hood, with the name of the widget acting as the index. The API presents immediate mode, but it isn't really. If a "good" immediate mode API just hides all the state under the hood, then I think one should call it something other than immediate mode.

The thing is, immediate mode UIs are not really usable, because a widget needs internal state, so a pure immediate mode UI would require the caller to carry around all that state. Obviously that is burdensome, which is why Dear ImGUI hides it for you. But in my opinion, it's a bit of a fraud to call that an immediate mode UI, when it retains a copy of state behind its back.

Re:Dear ImGui: Bloat-free Graphical User interface with mini... by cristeigabriel on Thursday December 21, 2023 @03:22AM (#38718182)
Since words have to mean stuff, I would definitely call it immediate mode, it's not trivial at all to hack a generic retained mode UI library into being as flexible to what's on screen as ImGui. A generic retained mode design would more rather require pointers to some dependency state to check per update, with ImGui the schema gets rebuilt constantly, instead of being reactive. And there is definitely use cases for this design, constantly changing stuff would probably fit with Dear ImGui or others better than with a generic retained mode UI toolkit.
Re:Dear ImGui: Bloat-free Graphical User interface with mini... by ocornut on Thursday December 21, 2023 @07:10AM (#38719449)
The person who coined the IMGUI term (Casey Muratori) literally defined "immediate mode gui" as a concept relating to the API/facade, regardless of what the UI system internally owns or store or manage.

So basically you are dismissing an existing definition to turn it into your own to say that existing libs are not fulfilling that definition.

Re:Dear ImGui: Bloat-free Graphical User interface with mini... by synergy20 on Wednesday December 20, 2023 @05:21PM (#38714426)
why not use game engine(godot,etc) directly and write your editor on top of that instead?

ImGUI is cool for gaming yes, but not good for daily normal GUI desktop apps, per the design.

Re:Dear ImGui: Bloat-free Graphical User interface with mini... by genocidicbunny on Wednesday December 20, 2023 @06:46PM (#38715184)
Not everyone uses an off-the-shelf game engine. Plenty of games are written with a bespoke engine.
Re:Dear ImGui: Bloat-free Graphical User interface with mini... by elpocko on Wednesday December 20, 2023 @05:32PM (#38714535)
It is nice for a developer, but I don't like it as a user. It doesn't look or feel good or right, nothing works like you're used to, keyboard support is clunky. I like it as cool a dev tool but I don't want to do real work using that UI.
Re:Dear ImGui: Bloat-free Graphical User interface with mini... by vardump on Thursday December 21, 2023 @05:23AM (#38718828)
Can you suggest some improvements? Perhaps there are some low hanging fruits.