Comment by cat-whisperer
Comment by cat-whisperer 8 hours ago
I don't know much about the GUI space. I would love your take on why did you went with egui instead of guirs
Comment by cat-whisperer 8 hours ago
I don't know much about the GUI space. I would love your take on why did you went with egui instead of guirs
Good question! A few reasons for egui over gtk-rs/iced/others:
- Immediate mode — egui redraws every frame, which makes state management simpler (no callback hell). Great for prototyping.
- Pure Rust, minimal deps — egui is self-contained. gtk-rs requires GTK installed on the system.
- Cross-platform out of the box — Same code runs on Windows/Linux/macOS/Web
- Rapid iteration — Hot reload-friendly, easy to experiment with layouts
Trade-offs: egui's TextEdit isn't designed for code editors (no multi-cursor, can't hide folded text), which is why v0.3.0 will replace it with a custom widget.