Hacker News new | ask | show | jobs
by sanxiyn 4012 days ago
How else you will get C# in the browser? C# is high-level, WebAssembly is low-level, something needs to do lowering.

Edit: I don't see how future addition of GC to WebAssembly changes anything I wrote above.

2 comments

You write a compiler from C# to WebAssembly. I don't see how C# is different from any other language in that regard.
Hopefully it's IL -> WebAssembly, not C# -> WebAssembly.
I think we are in agreement? Unity3d provides C# to JavaScript compiler.

I replied to "Hopefully we will not need compiler to have high-performance C# engines in browser", because that does not make sense.

Unity3d provides C# to JavaScript compiler

Unity3d does too many things (except new versions of C# :P) and ties to itself. There should be a direct C# -> WebAssembly compiler in future.

Unity is much, much more than a compiler. You'd have to drag a lot of stuff with you and deal with a license.