4 ms·
> immediate mode You keep using that word. I do not think it means what you think it means. React most definitely falls under what would be called a "retained
by wild_egg 2mo ago
> immediate mode
You keep using that word. I do not think it means what you think it means.
React most definitely falls under what would be called a "retained mode" of some sort. And the UI library described here is also.
- pedro_movai 2mo agoI think the author is referring to immediate mode because of UI=f(state)
- wild_egg 2mo agoI do understand that's what they have in mind. But that's not what immediate mode means. Function application is not the only criteria. We are talking about rendering into a browser by twiddling DOM APIs. That's definitely retained mode rendering and repeatedly claiming it's immediate mode doesn't make it true
- account42 2mo agoWith that argument, every UI is retained mode because everything gets saved in the GPU's scan out buffer.
- magicalhippo 2mo agoIf you compare the code using the presented framework to code using say immediate mode library like ImGui[1][2] for example, the presented framework does indeed seem to be exposing a retained mode API. [1]: https://pthom.github.io/imgui_explorer/ https://pthom.github.io/imgui_explorer/ [2]: https://github.com/ocornut/imgui https://github.com/ocornut/imgui
- sroerick 2mo agoIsn't React specifically an attempt to build an immediate mode UI on top of the DOM?