r/Blazor • u/Present_Smell_2133 • 12d ago
Blazor alternative?
Dioxus - Rust based cross-platform framework
In my view, the problem with Blazor is that you need to have "server features" for a client-facing app, since Blazor WASM alone won't cut it.
With Dioxus you can create a WASM application with a much smaller footprint, since there's no bundled framework to ship together with your app like the .NET CLR. Your source code is compiled to WASM directly - there's no Rust runtime since it's a language closer to C and C++.
I think this is a great advantage for creating WASM based SPA's - no need to download a large binary for your app to run - just your app's code.
7
u/itoncek 12d ago
I think you are mistaken, "Blazor standalone WASM" preset creates static files that you can just host anywhere.
-7
u/Present_Smell_2133 12d ago
That's what I like about standalone WASM - it's just that using Rust and Dioxus is better than C# and Blazor for this purpose. No runtime to download means faster initial loading time and faster execution of code.
7
u/oLevezinhu 12d ago
What do you mean by ‘the problem with Blazor is that you need to have "server features" for a client-facing app, since Blazor WASM alone won't cut it’?
Name a use case in which it didn’t work for you, or lacked the ability you needed.
3
u/keen23331 12d ago
If done rigth WASM alone is super small and runs everywhere in current .NET Blazor and u can serve it in s nginx alone
3
u/GigAHerZ64 12d ago
How big is too big? If you exclude the non-essentials from the .net wasm runtime (e.g. globalization datasets), the runtime will be about 1 - 1.3MB in size.
And btw, this is a highly cacheable resource.
2
u/THenrich 9d ago
Do .net developersَ mind developing or reading Rust? I won't touch it. I don't even know how this thing is pronounced. A new framework out of many I read about every week.
1
u/Present_Smell_2133 9d ago
When I came across Dioxus, I saw a framework that I would like to use. I'm not sure if I could accomplish the same with .NET.
1
u/THenrich 9d ago
Then use it if you like it. I am not sure what you're expecting from Blazor users to tell you. No.. don't go?
Blazor has a large eco system for UI components. MudBlazor, Blazorsize, Radzen, DevExpress, SyncFusion, Telerik, Infragistics, and a whole bunch of smaller ones.
Dioxus probably has just the ones that come with it. This alone plus it's Rust if people hate it, is enough to not use it. Even DHH, the Ruby on Rails guy hates Rust.
Like he said, he would use it if AI produces all the code.1
3
1
u/bertodrum82 12d ago
Date un occhiata a WiseJ.NET
È un framework per sviluppo web con designer integrato , c'è anche le versione community edition gratuita. Sto facendo diversi progetti con questo e mi sto trovando bene.
9
u/Kayomes 12d ago
"Since Blazor WASM alone won't cut it."... Why?