this post was submitted on 05 Apr 2024
73 points (73.2% liked)

Programmer Humor

19207 readers
1135 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 1 year ago
MODERATORS
 

Let's reinvent java bytecode but... different

you are viewing a single comment's thread
view the rest of the comments
[โ€“] lambda@programming.dev 1 points 5 months ago (1 children)

What, you can write a website in C# and have It output as a website using wasm? I have never touched wasm. That might be an interesting way to try it though.

[โ€“] Heavybell@lemmy.world 3 points 5 months ago

The problem with blazor as I understand it, is that no, it does not compile your C# into WASM. Instead, it compiles into a standard .net module -- with as much excising of unused code as possible -- and distributes it with a CLR that is compiled to WASM. So effectively you're running the .net VM inside the WASM VM. If you do client-side blazor, which is not even MS's push anymore because they stand to make more money if you write server-side blazor and deploy it to Azure.

Do look it up yourself tho. I could have a totally wrong understanding. I haven't looked into it in some time because I've not been in a position to start a new frontend project from scratch. I would love to do my frontend stuff in C# though, don't get me wrong.