3 ms·
As I understand it, blazor really needs WasmGC in order to have good performance and small bundle sizes. Otherwise, blazor is forced to ship a GC inside the was
by josephg 1y ago
As I understand it, blazor really needs WasmGC in order to have good performance and small bundle sizes. Otherwise, blazor is forced to ship a GC inside the wasm bundle - and that adds a lot of weight. And it also makes it more complex to share C# objects with javascript.
WasmGC is supported in all browsers + nodejs now, but its still pretty new. Safari only started shipping it in December last year. I'm not sure if wasmgc is the default build for blazor, or what the status is on it.
Blazor should be able to be good, small and fast. (Maybe even smaller than rust web frameworks.) But I don't know if we're there yet.
- lylejantzi3rd 1y agoDoesn't Blazor include the entire .net core runtime? Or has that changed?
- chris_pie 1y ago.NET doesn't use WasmGC because Microsoft found it too different from how .NET's GC works. Which is quite unfortunate
- josephg 1y agoOh what a pity. Anywhere I can read more about that?
- chris_pie 1y agoI can't find the actual decision, but there was some discussion here: https://github.com/WebAssembly/gc/issues/77 https://github.com/WebAssembly/gc/issues/77 Microsoft later in 2023 said that that discussion "is the current state we are in. We will keep eye on wasm GC in the future." edit: found a more concrete statement https://github.com/dotnet/runtime/issues/94420 https://github.com/dotnet/runtime/issues/94420
- throwawaymaths 1y agoThen explanations 2&3?