logoalt Hacker News

gf000last Friday at 9:24 AM2 repliesview on HN

Because people don't want to load 300MB for a simple website (and this is blocking the first render, not just loading in the background).

Not every language is a good source for targeting WASM, in the sense that you don't want to bring a whole standard library, custom runtime etc with you.

High-level languages may fare better if their GC is compatible with Wasm's GC model, though, as in that case the resulting binaries could be quite small. I believe Java-to-wasm binaries can be quite lean for that reason.

In c#'s case, it's probably mostly blazor's implementation, but it's not a good fit in this form for every kind of website (but very nice for e.g. an internal admin site and the like)


Replies

sfn42last Friday at 10:07 AM

A modern blazor wasm app is nowhere near 300mb. There are techniques to reduce this size like tree shaking. There's no need to include lots of unused libraries.

Modern Blazor can do server side rendering for SEO/crawlers and fast first load similar to next.js, and seamlessly transition to client side rendering or interactive server side rendering afterwards.

Your info/opinion may be based on earlier iterations of Blazor.

michalsustrlast Friday at 11:52 AM

300MB is nonsense, we are at 2MB compressed with https://minfx.ai

show 1 reply