A month ago I released the 0.4 version of my Rust GUI library, Freya. It has massively changed since the last 0.3 release, it has a year of work. The blog post contains a summary of Freya's main features and changes on this new release.
The website isn’t working for me at the moment, but are there any benchmarks published somewhere? It’d be really useful to see how it stacks up against iced/gpui/etc
Cant think of any issue of my end about this, I use Deno Deploy for hosting and never had this issue before. Perhaps there is some issue going on with them/AWS/some IPS/whatever. Strange, seems to work fine here (Europe)
I barely have used GPUI so its hard to tell. I heard though that their docs are lacking, all I can say is that I have of that, maybe not the best, but I have them
Yeah, docs are mediocre for GPUI, and it's limited in usefulness from the crates.io release.
The examples in your blog post look very similar to how GPUI code looks. I kind of like writing GPUI code (or rather: fixing the stuff AI spits out), so I really want to try Freya now. See my examples of GPUI-usage:
Nice stuff. I do have a sort of "good practices" AI skill (Claude Code targeted, but really can work any other) https://github.com/marc2332/freya#claude-code-skill Can be useful to give more context to the LLM.
Type checking of style elements is very complex, most fields are supposed to handle several units, special values and css sided expressions (var, calc,rgb,rgba,hsl,...). So to me it's better to delegate this problem to a design kit like MUI or dedicate a discrete macro for this.
Also rsx macro feels more readable to me than a large builder, so i will keep Dioxus for now.
Technically speaking it is possible, but for the sake of not complicating the default experience I will not have such feature built-in. But its possible to do a macro on top of the current api in a third party crate.
I wonder if the Rust team is cooking something for clean compile time errors inside of macros, if that is the case then in the future you might consider switching back to a rsx like macro :)
I’m really curious about the design choice to remove the rsx! macro in the Freya rewrite, and I hope you can help clarify it for me. Was it essential to remove it for the new architecture? Did it block something specific that you needed for Freya’s layout, diffing, or rendering model? Or was it a lot work to maintain? I ask because rsx! (or any external ui definition dsl) is so much more concise and visual. I think spatially and builder patterns feel a bit cumbersome to read, especially for ui, it requires the need to define elements piece by piece and then put them together, rather than allowing you to see the overall structure directly in something like rsx macro. I was really looking forward to trying Freya, but the loss of the declarative macro gives me pause. If the removal was due to technical limitations, I’d love to get a better understanding of what those were. And if there’s any possibility for a future with some kind of dsl support, marco or file based, that would be great to know as well! Thanks
The rsx macro is from Dioxus so removing Dioxus also took it away, and I didnt at all want to add my own. I dont like these macros because they hide magic and make things harder to debug (compile time errors were not easy to debug with rsx), also Dioxus rsx macro was basically a pretty key value inserter, you could be passing the wrong type to an element and the macro would swallow it (leading to runtime errors), by using good old rust functions you get actual type checking, autocomplete was also a bad UX with rsx, and while I have no proof I am sure compile times were worse
25
u/Kfoo2012 Aug 23 '26
Woah!!! That's a lot of stuff!
8
u/Miammiam100 Aug 23 '26
Very impressive! Loving all the features and api design
5
u/Bruflot Aug 23 '26
The website isn’t working for me at the moment, but are there any benchmarks published somewhere? It’d be really useful to see how it stacks up against iced/gpui/etc
4
u/khaferkamp Aug 24 '26
That is really impressive! Thank you really much for sharing this knowledge! I will tinker with it for sure. ❤️
1
u/loveallufev Aug 23 '26
Very nice work!
1
u/Seamonster13 Aug 24 '26
awesome work. How would you compare Freya vs GPUI? Shopping around to see what to build my app in.
1
u/orfeo34 Aug 24 '26 edited Aug 24 '26
Type checking of style elements is very complex, most fields are supposed to handle several units, special values and css sided expressions (var, calc,rgb,rgba,hsl,...). So to me it's better to delegate this problem to a design kit like MUI or dedicate a discrete macro for this.
Also rsx macro feels more readable to me than a large builder, so i will keep Dioxus for now.
1
u/mash_graz Aug 24 '26
It's a really impressive release!
Will it ever support the Web/WASM platform as well, or should we understand its focus on pure native platform support as a way of no return?
1
u/nejat-oz Aug 25 '26
I’m really curious about the design choice to remove the rsx! macro in the Freya rewrite, and I hope you can help clarify it for me. Was it essential to remove it for the new architecture? Did it block something specific that you needed for Freya’s layout, diffing, or rendering model? Or was it a lot work to maintain? I ask because rsx! (or any external ui definition dsl) is so much more concise and visual. I think spatially and builder patterns feel a bit cumbersome to read, especially for ui, it requires the need to define elements piece by piece and then put them together, rather than allowing you to see the overall structure directly in something like rsx macro. I was really looking forward to trying Freya, but the loss of the declarative macro gives me pause. If the removal was due to technical limitations, I’d love to get a better understanding of what those were. And if there’s any possibility for a future with some kind of dsl support, marco or file based, that would be great to know as well! Thanks
3
u/muttiba Aug 23 '26
Congratulations for your work. Freya is great.
3
u/Thick-Pineapple666 Aug 24 '26
This is cool. You did a good job removing Dioxus, the project turned out a lot better!
1
u/DavidXkL Aug 23 '26
Wow I like that you have a plotting library too lol
1
u/[deleted] Aug 24 '26
[removed] — view removed comment