Hacker News new | past | comments | ask | show | jobs | submit login

I am building an app [0] with GPUI. I think it’s very ergonomic, but it’s missing so much stuff that you would expect in a GUI library. There isn’t even a text input element. I would be lying if I wasn’t thinking about jumping off.

I gotta say, Iced doesn’t appear to scratch the same itch though. The only one that comes close to what I want is Vizia [1].

[0] https://github.com/MatthiasGrandl/loungy [1] https://github.com/vizia/vizia




Looks like TextInput was just added in the last week: https://github.com/iced-rs/iced/blob/master/widget/src/text_...


I was talking about GPUI. In comparison Iced is way more mature.



Mind going into a bit more depth on "scratch that itch"? I've been debating Iced vs GPUI, would love any deeper thoughts you have on the subject. Performance and UX are probably my largest concerns, fwiw.

Loungy and Helix-gpui were my inspirations to look into GPUI, so i'd love your thoughts :)


My biggest reason for wanting to switch away from GPUI is because there is barely any momentum in making it a general purpose framework. Zed team is mostly just focusing on Zed usecase and the end user is left implementing basic functionality themselves.

On top of that you are stuck with their async runtime of choice (smol), while Iced supports both tokio and smol. This is annoying when you have some tokio dependencies, of which there are a lot.

I played around with Iced a bit now. I like it a lot. The only issues that keep me from porting are:

1. I can’t replicate the GPUI popup window with winit. I am currently trying to patch winit to make it possible, but am a bit lost. 2. I do like the tailwind like syntax for styling components in GPUI a lot. It just fits my mental model a lot better than Iced.

That said I think Iced is the cleaner framework of the two and if you are designing a traditional windowed application, I would recommend it in a heartbeat.


Thanks! Ironically i am trying to make it bordered similarly to Zed (which i assume is what you're referring to), so i may run into issues there, but i imagine that's a far lesser concern for at least a year.

Appreciate the reply, thank you!


What do you mean with bordered? The Zed application window is a fairly default NSWindow (on MacOS). You will have no problems replicating it in Iced/Winit. The popup WindowKind in GPUI is just used in Zed for some notifications as far as I am aware.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: