Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

That's something different. Blazor compiles c# to webassembly to run in the browser.

This software (Wasmtime) allows you to run webassembly code from within .net.



> Blazor compiles c# to webassembly to run in the browser.

Last time I looked, blazor compiles c# to MSIL just like normal, but also provides a wasm runtime for MSIL.


.NET 5 will support WebAssembly directly.

At least that is part of what was communicated so far.


So in theory you could run Blazor on Wasmtime?


Yes and that's like going out the front door and coming in the back door to go from the Kitchen to the Den.


I'm not advocating anybody do that, but it's a fun experiment to think about. I've been intrigued about WebAssembly more than ever when I read a comment here on HN that the specs very generic allowing it to be used even outside the web.


I'll take a WebAssembly desktop app over an Electron desktop app any day of the week


You can always run webassembly inside of electron :P

Though I agree it could be a nice way to make software avaiable on all platforms.


The sweet spot would be something like Sciter supporting WebAssembly.


Which makes it a good demonstration of both technologies.

Kind of like using Google translate to go from English -> Something -> English. In theory a perfect translation would give you back your original input exactly.

Of course this should be more feasible with programming languages than with human languages.


You might as well skip the middle man and use server-side blazor.


Actually, Blazor is a compilation of the C# runtime (CLR) to webassembly, and a mechanism for downloading standard C# dll assemblies to the browser to execute there. The C# code is compiled normally; it doesn't know/care that the CLR is running in a browser rather than on a Windows desktop.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: