Hacker GitHub

← All repos

emilk/egui

View on GitHub ↗ ★ 31,917 Rust

egui: an easy-to-use immediate mode GUI in Rust that runs on both web and native

64 mentions on Hacker News by 53 people: 12 stories, 52 comments · first 2021-08-13 · latest 2026-05-14

Mentions per year 64 mentions · busiest year 2023 (16)
20082026
  1. …arguments. With egui, it's an immediate mode GUI rather than retained mode and that has trade-offs: https://github.com/emilk/egui#why-immediate-mode . It's going to use more CPU (and battery power), there can be jitter and things shifting…
    comment by mdasen · 2026-05-14 · in WinUI 3 Performance: A Leap Forward
  2. …Widget for Button<'_> { fn ui(self, ui: &mut Ui) -> Response { self.atom_ui(ui).response } } (From: https://github.com/emilk/egui/blob/main/crates/egui/src/widg... , bottom of page.) This is OO code. It's just that it's trait-oriented, not…
  3. ▲ 173
    Build Android apps using Rust and Iced
    story by rekireki · 2025-12-22 · 85 comments
  4. ▲ 3
    Egui: An easy-to-use GUI in pure Rust
    story by modinfo · 2025-12-02 · 0 comments
  5. …mode, simplifies state management quite a bit. Runs on Mac, Linux, Windows, Web, and mobile. [0] https://github.com/emilk/egui [1] https://www.egui.rs/
    comment by halfcat · 2025-09-07 · in C++26: Erroneous behaviour
  6. …is decent enough. My understanding is that SwiftUI was Apple's direct response to React/Vue. [0]: https://github.com/emilk/egui [1]: https://github.com/ocornut/imgui
    comment by dlivingston · 2025-07-23 · in A brief history of primary coding languages
  7. ▲ 3
    0.32.0 – Atoms, popups, and better SVG support
    story by weinzierl · 2025-07-13 · 0 comments
  8. …capturing only alternate frames of 60 FPS refresh. Bugs in layout can be very strange in Egui. [1] https://github.com/emilk/egui/issues/2810
  9. …as cool features are bolted on. Currently, 799 open bugs. The technical debt is building up. [1] https://github.com/emilk/egui/issues/7033 [2] https://github.com/emilk/egui/issues/6847
  10. …game land, which is tiny. At some point, someone may need to fork Egui and create Egui-lite. [1] https://github.com/emilk/egui/issues/7059
  11. …to see if you just put a `println!` in your UI logic. This is also mentioned in the gui docs here https://github.com/emilk/egui#why-immediate-mode : > egui only repaints when there is interaction (e.g. mouse movement) or an animation, so…
  12. From https://github.com/emilk/egui?tab=readme-ov-file#non-goals Non-goals * Become the most powerful GUI library * Native looking interface
  13. ▲ 2
    GUI in Pure Rust
    story by vishnumohandas · 2025-06-27 · 0 comments
  14. …know the "real-life CDE" is called either OpenGL (see ImGui https://github.com/ocornut/imgui , egui https://github.com/emilk/egui etc) or... HTML/CSS/JS (see Electron, Tauri etc)
    comment by dragochat · 2025-06-20 · in Open source can't coordinate?
  15. …hope the legal profession feels the same way. It's certainly inspired by VS code. It's using egui ( https://github.com/emilk/egui ) under the hood. Big hats off to Emil Ernerfeldt and the team at rerun ( https://app.rerun.io/ ) for the…
  16. …(no bloated stuff like Electron / GTK / Qt please). A builder for egui[1] would be awesome. [1] https://github.com/emilk/egui
  17. …Rust much but I think there's a lot going on in terms of UI: - https://github.com/iced-rs/iced - https://github.com/emilk/egui - https://github.com/slint-ui/slint - https://github.com/DioxusLabs/dioxus No idea if these are actually good or…
    comment by petabyt · 2025-02-11 · in Ask HN: Modern GUI Research
  18. …they mean by "immediate mode" (this is linked from one of the windows when you open the page). [1] https://github.com/emilk/egui#why-immediate-mode
  19. …that are added to a UI using .add() "You should put this widget in a ui with `ui.add(widget);" https://github.com/emilk/egui/blob/master/crates/egui/src/wi... There appears to be a fluent builder API for these widgets. Is that what makes…
  20. It's being worked on. Merry Christmas! https://github.com/emilk/egui/issues/3378
  21. …especially when scrubbing the timeline. I still hope we can rid you of some of the todos ;). [0]( https://github.com/emilk/egui/pull/5505 )
  22. …an (amazing) Rust version of imgui called egui, and open sourcing all the work for the ecosystem: https://github.com/emilk/egui
  23. ▲ 3
    Egui 0.29.0 – Multipass, `UiBuilder`, & visual improvements
    story by Tycho87 · 2024-09-27 · 0 comments
  24. Thanks for the feedback! It is definitely fixable. Take a look at https://github.com/emilk/egui/issues/996 for some examples of how others have styled egui, or try out https://app.rerun.io/ Styling is done with `ctx.set_style`, but…
  25. The http example at egui.rs uses the `poll_promise` crate to wait for a HTTP request: https://github.com/emilk/egui/blob/master/crates/egui_demo_a...
  26. You can have real separate windows in egui. Either running on the same thread or another. See here: https://github.com/emilk/egui/blob/master/examples/multiple_...
  27. ▲ 200
    Egui 0.27 – easy-to-use immediate mode GUI for Rust
    story by Tycho87 · 2024-03-27 · 85 comments
  28. …one language only including the UI too (been playing with egui),so I don’t have to use JavaScript. https://github.com/emilk/egui
  29. FWIW, I opened an issue: https://github.com/emilk/egui/issues/4046
    comment by abey79 · 2024-02-14 · in We sped up time series by 20-30x
  30. …with other immediate mode libraries. It's good to hear that it's not an intrinsic limitation https://github.com/emilk/egui?tab=readme-ov-file#layout Here the author discusses the issue directly. They note that there are solutions to the…
    comment by SeanAnderson · 2024-01-16 · in Immediate Mode GUI Programming
  31. https://github.com/emilk/egui#cpu-usage Fantastic - “only” 1 to 2 ms (and that’s for simple stuff). Depending on what you’re doing that’s a big chunk. Also time you could be sleeping. Also something you don’t usually have to worry about.
    comment by epcoa · 2024-01-16 · in Immediate Mode GUI Programming
  32. Here's an IMGUI library that's also accessible (via AccessKit): https://github.com/emilk/egui
    comment by goodpaul6 · 2024-01-16 · in Immediate Mode GUI Programming
  33. …immediate mode GUI programming based on the limitations I've experienced working with egui ( https://github.com/emilk/egui ) in Rust. egui does not support putting two widgets in the center of the screen:…
    comment by SeanAnderson · 2024-01-16 · in Immediate Mode GUI Programming
  34. ▲ 2
    Egui: Immediate mode GUI in Rust on web and native
    story by serhack_ · 2023-12-30 · 2 comments
  35. …shifting and redoing everything in rust, embedded, backend and frontend (using something like egui https://github.com/emilk/egui ). When it comes to IoT, I try as much as possible to stay away from python unless you are scripting something…
  36. …demo somewhere? I remember seeing a ton of them earlier. Or maybe I'm thinking of the rust version: https://github.com/emilk/egui
  37. ▲ 5
    Egui and Eframe 0.24 Released
    story by Tycho87 · 2023-11-23 · 0 comments
  38. …native APIs for each platform, works without any problems, but the binary is a big larger). [1] https://github.com/emilk/egui [2] https://www.egui.rs/
  39. …( https://tildegit.org/solene/AppManager ), Dear ImGUI ( https://github.com/ocornut/imgui ), egui ( https://github.com/emilk/egui ), and many others.
    comment by rollcat · 2023-09-07 · in Textual Web: TUIs for the Web
  40. …only [2], also there’s Blades [3], same concept but supposedly faster, never tried it though. [1] https://github.com/emilk/egui [2] https://www.getzola.org [3] https://getblades.org
    comment by tamimio · 2023-07-31 · in My journey away from the JAMstack
  41. …layer. I haven't gone to any particular effort to wire it up yet (besides what you get by default): https://github.com/emilk/egui/issues/167
  42. Not true, even if you add Rust. egui was released earlier: https://github.com/emilk/egui And egui isn't tied to Apple proprietary frameworks.
  43. …[3] https://github.com/twistedfall/opencv-rust [4] https://github.com/Rust-SDL2/rust-sdl2 [5] https://github.com/emilk/egui
  44. …UI so adding an editor (w. syntax highlighting for the custom language) should be very easy[1]. [1] https://github.com/emilk/egui/blob/530e9f667c0969b09edb68f77...
  45. …be safe to say it probably fit the "GPU-Backed UI" definition. If you can easily attach a Shader ( https://github.com/emilk/egui/blob/master/examples/custom_3d... ), it is also a dead giveaway that it is a "GPU-Backed UI". WebGL is…
    comment by starburst · 2023-02-07 · in GPU-Backed User Interfaces
  46. …it doesn't end with low level APIs like OpenGL as the article also mentions e.g. the rust framework https://github.com/emilk/egui Where to draw the line?
    comment by master-lincoln · 2023-02-07 · in GPU-Backed User Interfaces
  47. Here is my favorite Rust GUI library: https://github.com/emilk/egui There are many other nice Rust GUI libraries depending on your needs: https://www.areweguiyet.com/
    comment by thesuperbigfrog · 2023-01-10 · in Ask HN: If Dart can do it, then why can't Rust?
  48. ▲ 1
    egui: An immediate mode GUI in Rust that runs on both web and native
    story by lnyan · 2023-01-10 · 0 comments
  49. ▲ 2
    Egui – Native and Web OpenGL GUI for Rust
    story by decremental · 2023-01-02 · 1 comment
  50. …better - yeah, sounds good. On the topic of Rust GUIs on Mac, this was recently in the news: https://github.com/emilk/egui/commit/e1f348e4b24c2fa83d25c6a...
    comment by rollcat · 2022-12-14 · in Rust: State of GUI, December 2022