Hacker News new | ask | show | jobs
by scotty79 2602 days ago
The problem with ImGUI is that your gui tree is function call tree and you can't do much with that unless you are in lisp.

Function call tree has some advantages. Functions are wonderfully composable and flexible.

React is such a revolution because it translates ImGUI usage into whatever insane retained mode API is at the bottom of the stack, through intermediate representation of virtual dom.

Presto. You have flexibility and composability of ImGUI without disadvantages of keeping your gui tree only in your function calls, and you can use it without ability to directly control how the GUI is drawn in the engine.