News for hackers. Stuff that matters.
Re:Immediate Mode GUI Programming by kragen on Tuesday January 16, 2024 @02:09AM (#39010330)
react is pretty common in web dev and it's immediate-mode

ecs is just watered-down in-ram relational databases, and relational databases are also pretty popular for web apps

Re:Immediate Mode GUI Programming by whstl on Tuesday January 16, 2024 @05:29AM (#39011690)
That's an interesting take I agree with. It's kinda interesting how lots of technologies are converging from totally different directions.

IMO there is also a few parallels between centralised event stores like Flux/Redux and ECS. Sure the data is organised completely differently (perhaps Flux can learn from ECS here) and updated differently (perhaps ECS can learn from Flux here) but the concept of centralising state is similar IMO.

Re:Immediate Mode GUI Programming by kragen on Tuesday January 16, 2024 @06:50AM (#39012248)
hmm, that's interesting!
Re:Immediate Mode GUI Programming by rtpg on Tuesday January 16, 2024 @08:02AM (#39012811)
I think react is not as immediate-mode as what you see in many immediate UI libs. In particular the canonical "let buttonPressed = drawButton("OK")", where your button state/press is actually reported back. In React events on your components have to flow back through some strategy.

This is either a nit or a completely fundamental difference that entirely changes the ask.

Immediate mode isn't _just_ about repeating the UI every frame

Re:Immediate Mode GUI Programming by kragen on Tuesday January 16, 2024 @08:13AM (#39012890)
this is a good point