Unpopular opinion?

Blazor WASM is just a mistake: too heavy, too slow.

I would have preferred Microsoft to do with C# what Google did with Dart: compile the code directly into JavaScript.

#CSharp #Blazor #WebAssembly #JavaScript #WebDev

@cedx I don't really disagree with you on the performance side, but I'm not sure I want to live in a world where JavaScript is the only answer to web development 😅
@bitflipped I agree. There are a ton of languages that compile to JS (Dart, Haxe, Kotlin, etc.), which is why I think Microsoft could have done better.

@cedx When AOT compilation becomes more mature, with fewer limitations, it will presumably allow more Blazor applications to be compiled to WebAssembly directly, rather than using interpreted bytecode.

It will be interesting to see what effect that has on performance.

@bitflipped There is hope. One avenue currently being explored: the possibility of WASM exploiting the JS garbage collector. This would allow the .NET garbage collector to no longer be shipped.