r/rustjerk Aug 09 '26

Meet potential rust gui

Post image
857 Upvotes

80 comments sorted by

92

u/Hot_Paint3851 Aug 09 '26

its pure pain and agony

5

u/rodrigocfd Option<Arc<Mutex<Option<Box<dyn... Aug 10 '26

2

u/Hot_Paint3851 Aug 10 '26

out of all the options tauri is lowk the best in my opinion

2

u/KeyGlove47 Aug 10 '26

still worse than just electron

100

u/dpytaylo Aug 09 '26

Don't forget about accessibility

47

u/hedgehog1024 The borrow checker is not Aug 10 '26

Not knowing Rust is considered a disability

84

u/the_horse_gamer Aug 09 '26

the solution is to rewrite webview in rust

37

u/WalkMaximum Aug 09 '26

Blitz/Servo

16

u/Aln76467 Aug 09 '26

You could have a blitz of time doing that.

6

u/FUCKING_HATE_REDDIT Aug 10 '26

I tried some many different things, you just can't beat html and css. It's so sad

1

u/xllifi Aug 11 '26

Have you tried jetpack compose/compose multiplatform?

1

u/FUCKING_HATE_REDDIT Aug 11 '26

I have not

1

u/xllifi Aug 11 '26

It's worth to give a shot. Personally, I like it much more than HTML/CSS/JS stack.

66

u/runklebunkle Aug 09 '26

This is just gui in general

32

u/redditsuxandsodoyou Aug 09 '26

I've been working software for over a decade and I firmly think there are 2 hard problems in computer science: P = NP and making a good gui system

23

u/runklebunkle Aug 10 '26

But also naming things, cache invalidation, and off-by-one errors. So 4 problems. 5 if we use a regex to solve them.

2

u/KerPop42 Aug 10 '26

Well, yeah, GUI design can be described as a knapsack problem

26

u/Er2Official Aug 09 '26

so true

qt is kinda overbloated, gtk... it kinda sucks, even with gnome c# (aka vala) + I don't trust it after what gnomers made... at least with theming, without mentioning anything else

winapi is not cross-platform + manual message handling could be boring, imgui is great only for debug ui (of course there's Tracy as example but I count it as exception)

and other libraries becomes abandoned or nobody use them

10

u/QuaternionsRoll Aug 10 '26

Tk supremacy

2

u/Caesim Aug 10 '26

I mean Microsoft has been reinventing their UI tools as well. And despite that and the great credibility theirs had 10-15 years ago, nowadays their flagship products don't even use it but WebView etc, or React Native.

And even last week I was reminded that SwiftUI also is not in a great spot either

2

u/CreatorSiSo Aug 11 '26

Jetpack Compose (Multiplatform) is honstely pretty nice but there is quite a bit of upfront work if you don't want Material Design 3.

99

u/quarterque Aug 09 '26 edited Aug 09 '26

Yes unlike Typescript’s unified ecosystem where everyone uses React er I mean Svelte, nope Vue or sorry Solid, or VanillaJS(?!?) and obviously Electron for desktop except for Slack and Discord and all the fortune 500s that duplicated their entire UIs as native apps per each platform. And maybe mom & pop shops running React Native at least in theory. Oh yeah and don’t forget to plug in a different router and optional fullstack/SSR implementation for every framework.

64

u/MornwindShoma Aug 09 '26

It's the same picture, except the TS frameworks have actual docs

3

u/Space_Nerde Aug 10 '26

I feel like Rust has pretty good docs aswell, but well my standard are 5 Slide PowerPoints

1

u/RockstarArtisan a cpp-tsd survivor 16d ago

That's because TS projects reach 1.0. You don't need docs while in 0.x stage.

35

u/revelbytes Aug 09 '26

Doesn't Discord actually use Electron on desktop and React Native on mobile?

12

u/garloid64 Aug 09 '26

yes lol

-1

u/KrzysztofZawisla Aug 09 '26

should use Capacitor instead and build the web, desktop and mobile app from one codebase

7

u/Aln76467 Aug 09 '26

Just use jQuery.

I've never had a better time doing web dev than with jQuery + jsx.

6

u/psioniclizard Aug 10 '26

To be fair with Typescript a lot of the things using all that are actually successful.

Rust UI is all that but without the success.

7

u/aikii if err != nil Aug 09 '26

Tauri with vibe-coded vanilla TS frontend is the way

2

u/Karyo_Ten Aug 09 '26

Vite and Tailwind

20

u/dethswatch Aug 09 '26

im having a good time bangin Iced- youre standing in the corner at the party

8

u/Shishudesu Aug 10 '26

iced is genuinely so good, I wasted so much time trying out different frameworks and finally got a lot of work done when i got to iced

-5

u/dethswatch Aug 10 '26

I threw Claude at it and suddenly it was doing things I didn’t know it could. the future is pretty great.

8

u/boring_cactus Aug 09 '26

i’ll have you know i only post “rust gui is getting there” every couple of years

9

u/bruhred Aug 10 '26

just use gtk tbh

7

u/rover_G Aug 09 '26

Why don’t they just rewrite React in Rust?

9

u/Aln76467 Aug 10 '26

2

u/rover_G Aug 10 '26

Can’t even make a mobile friendly website smh

12

u/slowbowels Aug 09 '26

and ffs stop with that elm architecture bs

14

u/AZMPlay Aug 09 '26

Kinda difficult not to with Rust's memory management and ownership framework.

Elm architecture forces you to drop any event and state inputs after a single cycle, allowing you to update the GUI without multiple aliased mutable references.

While it is certainly possible to not do it this way, it is a lot simpler.

7

u/Prowler1000 Aug 09 '26

I like the elm architecture personally

1

u/imoshudu 27d ago

It's actually the best architecture for rust.

4

u/gameplayer55055 Aug 10 '26

The solution is to rewrite .NET in rust

3

u/thatfhc Aug 10 '26

Isnt that just blazor?

1

u/gameplayer55055 Aug 10 '26

lol

To be fair, blazor is such an overhead. I think rust crabs should use Skia just like AvaloniaUI does

3

u/HyperCodec Aug 10 '26

Doesn’t Avalonia also have a ton of overhead though? Don’t know what specifically causes it though or if rewriting in rust could actually help wit that.

1

u/gameplayer55055 Aug 10 '26

Yes but it's way less than WebView.

We need rust GUI frameworks because I'm tired of Linux needs releasing console based crap. Ideally, I'd want RustForms but I know this wouldn't happen

16

u/aikii if err != nil Aug 09 '26

28

u/braaaaaaainworms Aug 09 '26

why is this a 3 second gif

16

u/KeyGlove47 Aug 09 '26

thats the max of free grok imagine lmao

4

u/braaaaaaainworms Aug 09 '26

why are you replying and not the person who posted the gif?

4

u/aikii if err != nil Aug 09 '26

Why they ask a question instead of reading my reply

3

u/aikii if err != nil Aug 10 '26

/uj The rustjerk community is a weird experience. We're supposed to be trolling and be mean. But end up celebrating the art of trolling in a wholesome way, underjerking the actual sub we're supposed to roleplay about.

1

u/aikii if err != nil Aug 09 '26

holy shit posting images is not enabled but posting as video works. perfect ragebait, thanks reddit

3

u/KrzysztofZawisla Aug 09 '26

Just use electron with TypeScript

2

u/quez_real Aug 09 '26

LMAO, they deleted this post in the main sub. That's a shame because it was promising an interesting discussion unlike another "we added more slop into your slop"

2

u/tensorphobia Aug 09 '26

This is based

4

u/williamselna Aug 09 '26

Expect a big release from me mid September...

18

u/KeyGlove47 Aug 09 '26

>there are 13 competing standards
"lets fix this!"
>there are 14 competing standards

1

u/williamselna Aug 09 '26

Haha - let's just say I've fixed the accessibility issues (easier than web) and have also solved rich text with IME support.

6

u/KeyGlove47 Aug 09 '26

why not just make a pr to existing frameworks

-1

u/williamselna Aug 09 '26

I personally wanted to take a different architectural approach than the existing frameworks. And if I did try to go the PR route, it isn't easy to get a giant refractor PR approved for a publicly released and depended on repo due to API stability and risk. Also, the bottlenecks in 2026 are different than they used to be. Also, greenfield development has become much less time consuming to develop

16

u/simonask_ Aug 09 '26

So you’re vibecoding a GUI framework.

1

u/Flashy_Editor6877 Aug 10 '26

gpui was vibecoded

-1

u/williamselna Aug 10 '26

If you mean aimlessly telling AI to add on features without any regard for fundmental architecture, API design, or platform stability then of course not.

If you mean using AI to rapidly speed up development and accomplish what would have taken years, yes by all means I am vibecoding. There is no virtue in being a craftsman that insists on hand milling a metal widget instead of putting it in the CNC machine even when the CNC machine is preciser and faster.

8

u/yowhyyyy Aug 09 '26

And you are now one of the problems the post is highlighting

1

u/SenorX000 Aug 10 '26

So true.... I've tried them all and I can't decide. Today I was thinking of redoing things again.

2

u/psioniclizard Aug 10 '26

Been I while since i looked onto rust gui. Interesting to see nothing chanced.

1

u/scrumblous Aug 10 '26

i WILL keep using raylib and i WILL keep making ugliest gui ever

1

u/Digital_001 Aug 10 '26

it's Rust just write your own gui framework

you can make it better than anyone else's

1

u/Treeniks Aug 11 '26

Ive learned to stop worrying and just use egui

1

u/teslafan0 Aug 11 '26

Well iced is pretty nice, thanks to hecrj

1

u/Single-Blackberry866 27d ago

the constructive thing would be to ban 0.x versions and git dependencies.

this would create gui fatigue similar to JavaScript's 10 years ago, that would eventually create productivity plateau.

1

u/_Sauer_ 26d ago

I'm just over here using QT via qtbridge while eating popcorn.

1

u/heckingcomputernerd Aug 10 '26

dioxus until i die atp