|
|
|
|
|
by yodon
2975 days ago
|
|
Blazor is an example of C# -> WebAssembly tech, which is related to but different from ReTyped’s C# -> TypeScript tech. It’s easy to take a quick look and conclude compiling to WebAssembly must be better than compiling to TypeScript, but it’s far from clear that’s always the case at this point. WebAssembly runs faster than vanilla JS when you are inside the WebAssembly stack but there are costs to cross back and forth between WebAssembly and the Dom/vanilla JS and there are also non-trivial memory management issues with WebAssembly. The memory management situation will hopefully be fixed a few browser versions from now. It’s less clear whether there is a good fix for the WebAsm <-> JS marshalling cost coming in the near future. |
|
Benchmark results for Bridge.NET are provided here: https://github.com/stefan-schweiger/dotWasmBenchmark