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. …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
  4. …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
  5. …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
  6. …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
  7. …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
  8. …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…
  9. From https://github.com/emilk/egui?tab=readme-ov-file#non-goals Non-goals * Become the most powerful GUI library * Native looking interface
  10. …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?
  11. …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…
  12. …(no bloated stuff like Electron / GTK / Qt please). A builder for egui[1] would be awesome. [1] https://github.com/emilk/egui
  13. …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
  14. …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
  15. …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…
  16. It's being worked on. Merry Christmas! https://github.com/emilk/egui/issues/3378
  17. …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 )
  18. …an (amazing) Rust version of imgui called egui, and open sourcing all the work for the ecosystem: https://github.com/emilk/egui
  19. 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…
  20. 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...
  21. 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_...
  22. …one language only including the UI too (been playing with egui),so I don’t have to use JavaScript. https://github.com/emilk/egui
  23. 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
  24. …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
  25. 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
  26. 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
  27. …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
  28. …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…
  29. …demo somewhere? I remember seeing a ton of them earlier. Or maybe I'm thinking of the rust version: https://github.com/emilk/egui
  30. …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/
  31. …( 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
  32. …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
  33. …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
  34. 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.
  35. …[3] https://github.com/twistedfall/opencv-rust [4] https://github.com/Rust-SDL2/rust-sdl2 [5] https://github.com/emilk/egui
  36. …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...
  37. …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
  38. …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
  39. 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?
  40. …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
  41. …need to solve before we can blame developers of UI libs to not make them look 'native enough'. [1] https://github.com/emilk/egui/issues/88
    comment by virtualritz · 2022-12-14 · in Rust: State of GUI, December 2022
  42. …better looking text in light mode (still not great, but better). See more in the changelog: https://github.com/emilk/egui/blob/master/CHANGELOG.md Try it out at www.egui.rs
    comment by emilern · 2022-12-08 · in Egui 0.20 Released
  43. …doesn't matter at all if everything is animating simultaneously. More about immediate vs. retained: https://github.com/emilk/egui#why-immediate-mode
  44. …same thing? And egui also talks about challenges with rendering on browsers using WebGL and WASM: https://github.com/emilk/egui/tree/master/crates/eframe#prob...
  45. So far so good! Putting the UI in a canvas elements have some distinct drawbacks ( https://github.com/emilk/egui/tree/master/crates/eframe#prob... ) but for us it is definitely worth it. Having one unified codebase for our web app and…
    comment by emilern · 2022-10-18 · in Why Rust?
  46. We already have egui which is pretty awesome. Not great for accessibility though (yet) https://github.com/emilk/egui
    comment by jokethrowaway · 2022-06-22 · in Rich Text Editor for React
  47. …hiring new folks from the community onto their team. [0]: https://www.foresightmining.com/ [1]: https://github.com/emilk/egui
    comment by alice-i-cecile · 2022-04-15 · in Bevy 0.7: data oriented game engine built in Rust
  48. …detail that shouldn't distract from the fact that the API presented is still "immediate mode." [1] https://github.com/emilk/egui#ids [2] https://github.com/ocornut/imgui/blob/master/docs/FAQ.md#q-a... [3]…
    comment by mockery · 2022-01-28 · in Prime Video Uses WebAssembly
  49. Why not use egui ( https://github.com/emilk/egui ) instead of making your own?
  50. A section in the GitHub README tries to answer this question: https://github.com/emilk/egui#why-immediate-mode . I also read an old 2005 blog post & video by Casey Muratori[1] that explains the differences in more detail. [1]…
    comment by otoburb · 2021-08-13 · in Egui: An easy-to-use immediate mode GUI