Live data from Hacker News

Egui – An immediate mode GUI written in Rust

egui.rs

101–110 of 143 posts

Re: Egui – An immediate mode GUI written in Rust

#101

Am I the only one that has a problem with all non dom/html renderers that I can't copy the text on mobile? The same with flutter etc, it's such a regression in my eyes but nobody prioritizes it.

That depends. To me, if you are developing an actual app, you should not be able to select text by default - its too easy to do by accident. If you're doing editing or there's an error message, those are exceptions and of course you should be able to copy those.

If what you're doing is an interactive website with texts like an article or a story, I think you should be able to copy by default, but UI elements like buttons should not have it enabled.

Re: Egui – An immediate mode GUI written in Rust

#102
post #36

I have just used it yesterday to better understand a math problem and found that the edit-compile-run cycle of rust with this framework was prohibitively long. I only had a single file calling into this lib - maybe I could have improved on it with splitting the project up to some modules? Could anyone comment on their experience? Because usually I have found rust compile times okay, but this really made it hard to it…

What linker are you using? I've gotten really significant speedup over the default linker by using lld or mold.

Re: Egui – An immediate mode GUI written in Rust

#103
post #98

Earlier quoted context omitted.

I currently have the same issue while building a canvas web app. Safari shows a small magnifier glass on double tap/long press and none of the css properties will suppress it.

I think you can work around it by listening on the touchstart event on your element and calling e.preventDefault(). Don't have an iPhone handy to test it right now, but I believe that's how I fixed that issue in my web game.

Thank you for the suggestion. This is also what is discussed in some stackoverflow threads on that topic. I simply do not get why javascript is required to stop the browser from interfering with user actions. Calling preventDefault also messes with element focus and other events.

Re: Egui – An immediate mode GUI written in Rust

#105

Demo pages like this are fun, and technically impressive when compiled to a browser environment. But I suffer from a lack of imagination so these widget demos don't really help me envision what an egui-powered app can do or might look like. Does anyone have any examples of fun things that use egui?

Here's my plasmid editor, using EGUI: https://github.com/David-OConnor/plascad

I also use it for the GUI for 3D rendering computational chemistry and gravity sims.

I also use it for configuring embedded devices on PC, and/or viewing their telemetry. (e.g. for drones, drone parts etc)

Re: Egui – An immediate mode GUI written in Rust

#106
post #71

Earlier quoted context omitted.

> It redraws everything on every frame, so it's most useful for 2D overlays on 3D game-type programs. So it's not a GUI. In my book a GUI only redraws when something changes, to save the user's power.

Well I guess your book needs a new edition. The type of gui you're referencing is typically referred to as a retained mode gui.

The point is, I don't want people to see "GUI library" and think it's okay to use this for your random phase-of-the moon application that has no good reason to redraw at 2400 fps or whatever the enthusiasts want these days.

Re: Egui – An immediate mode GUI written in Rust

#107
post #29

Looks impressive, especially considering how fast is loads. One nitpick of my is the blurry font rendering. I suppose getting sharp and clear fonts is quite complicated task.

The font rendering looks about right on Safari. Is it blurry, or is it just doing Mac-style antialiasing?

It probably looks ok on HiDPI, unfortunately a lot of these hipster tools not supporting legacy but well trodden text rendering implementations are LoDPI unfriendly. https://github.com/zed-industries/zed/issues/7992

Re: Egui – An immediate mode GUI written in Rust

#108

Am I the only one that has a problem with all non dom/html renderers that I can't copy the text on mobile? The same with flutter etc, it's such a regression in my eyes but nobody prioritizes it.

No, you're not the only one. I really would like to understand the people that implement that, look at it and find that good. I have the impression that the vast majority of developers are idiots.

Re: Egui – An immediate mode GUI written in Rust

#109
post #89

Earlier quoted context omitted.

I’m a software developer, and it seems like a positive to me? Why wouldn’t you want the ability to post-facto manipulate with script the interfaces you are presented with?

As long as someone else is paying the bills.

which ads are all about, someone else paying devs to manipulate their users into buying stuff from someone else
Post reply on HN