Hot take: retained-mode was a premature optimization. We built Membrane using rust and egui and never looked back. When our IDE was react-based we had to worry about reflows and re-renders. With immediate-mode every frame is a re-render! But it only takes 900us
Replying to @juancampa
immediate mode as an api over dom can work -- i use a thin wrapper around incremental-dom here re: perf: can cache data (like the markdown ast); cull ui calls outside the viewport or if the calls won't change (`IncrementalDOM.skip` helps) have also tried 'canvas-like' uis

Jan 21, 2025 · 1:15 AM UTC

1
2
Replying to @snikhilesh
Interesting library, we've used morphdom for something similar but first time I'm hearing about IncrementalDOM. Will check it out further
1