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
20082026
-
…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 -
…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…
comment by antonvs · 2026-02-20 · in Closing this as we are no longer pursuing Swift adoption -
…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 -
…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 -
…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
comment by Animats · 2025-06-27 · in I Switched from Flutter and Rust to Rust and Egui -
…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
comment by Animats · 2025-06-27 · in I Switched from Flutter and Rust to Rust and Egui -
…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
comment by Animats · 2025-06-27 · in I Switched from Flutter and Rust to Rust and Egui -
…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…
comment by Boxxed · 2025-06-27 · in I Switched from Flutter and Rust to Rust and Egui -
From https://github.com/emilk/egui?tab=readme-ov-file#non-goals Non-goals * Become the most powerful GUI library * Native looking interface
comment by mgerdts · 2025-06-27 · in I Switched from Flutter and Rust to Rust and Egui -
…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? -
…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…
comment by piker · 2025-06-12 · in Show HN: Tritium – The Legal IDE in Rust -
…(no bloated stuff like Electron / GTK / Qt please). A builder for egui[1] would be awesome. [1] https://github.com/emilk/egui
comment by d3Xt3r · 2025-02-18 · in Ask HN: For which language do you want a GUI builder ala Delphi / VB? -
…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 -
…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
comment by fastball · 2024-12-26 · in Egui – An immediate mode GUI written in Rust -
…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…
comment by mpweiher · 2024-12-26 · in Egui – An immediate mode GUI written in Rust -
It's being worked on. Merry Christmas! https://github.com/emilk/egui/issues/3378
comment by avx56 · 2024-12-26 · in Egui – An immediate mode GUI written in Rust -
…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 )
comment by jgoertler · 2024-12-20 · in Show HN: Interactive graphs in Rerun with a Rust port of D3-force -
…an (amazing) Rust version of imgui called egui, and open sourcing all the work for the ecosystem: https://github.com/emilk/egui
comment by burningion · 2024-12-20 · in Show HN: Interactive graphs in Rerun with a Rust port of D3-force -
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…
comment by emilk · 2024-03-27 · in Egui 0.27 – easy-to-use immediate mode GUI for Rust -
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...
comment by emilk · 2024-03-27 · in Egui 0.27 – easy-to-use immediate mode GUI for Rust -
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_...
comment by phi-go · 2024-03-27 · in Egui 0.27 – easy-to-use immediate mode GUI for Rust -
…one language only including the UI too (been playing with egui),so I don’t have to use JavaScript. https://github.com/emilk/egui
comment by tamimio · 2024-03-04 · in Rust for Embedded Systems: Current state, challenges and open problems -
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 -
…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 -
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 -
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 -
…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 -
…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…
comment by tamimio · 2023-12-25 · in Ask HN: What software do you use for IoT devices and server -
…demo somewhere? I remember seeing a ton of them earlier. Or maybe I'm thinking of the rust version: https://github.com/emilk/egui
comment by lxe · 2023-12-20 · in Dear ImGui: Graphical User Interface library for C++ -
…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/
comment by lukax · 2023-10-05 · in Rerun 0.9 – a framework for visualizing streams of multimodal data -
…( 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 -
…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 -
…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
comment by eslaught · 2023-04-27 · in Emerging Rust GUI libraries in a WASM world -
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.
comment by DeathArrow · 2023-03-09 · in Leveraging Rust and the GPU to render user interfaces at 120 FPS -
…[3] https://github.com/twistedfall/opencv-rust [4] https://github.com/Rust-SDL2/rust-sdl2 [5] https://github.com/emilk/egui
comment by pzo · 2023-03-05 · in Nannou – An open-source creative-coding framework for Rust -
…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...
comment by virtualritz · 2023-02-10 · in Show HN: DSLCad – a programming language and interpreter for building 3D models -
…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 -
…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 -
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? -
…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 -
…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 -
…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 -
…doesn't matter at all if everything is animating simultaneously. More about immediate vs. retained: https://github.com/emilk/egui#why-immediate-mode
comment by juancampa · 2022-12-05 · in Egui commit: Implement accessibility APIs via AccessKit -
…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...
comment by freeCandy · 2022-12-05 · in Egui commit: Implement accessibility APIs via AccessKit -
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 -
…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 -
…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 -
Why not use egui ( https://github.com/emilk/egui ) instead of making your own?
comment by tormeh · 2021-12-15 · in Zed: lightning-fast, collaborative code editor written in Rust (Atom team) -
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