zion-sati/NetWasm: Compile C# and .NET CIL to small standalone Wasm with WASI (AOT with built-in Runtime and Precise GC) by Zion Sati zion-sati/NetWasm #aspnetcore t.co
11 likes · 720 views
zion-sati/NetWasm: Compile C# and .NET CIL to small standalone Wasm with WASI (AOT with built-in Runtime and Precise GC) by Zion Sati zion-sati/NetWasm #aspnetcore
C# 编出的 wasm 比 Rust 还小
同样打印 42,NetWasm 产物 43109 字节,Rust 1.95 为 53635 字节,前者还把运行时和精确 GC 算在里面。
zion-sati/NetWasm
25 views
NetWasmは.NET CoreをWasmに載せず、Roslynが出力したCILから到達可能なコードだけをWasmへ直接コンパイルする。CLRやMonoを含まないWASI Preview 2 Componentを出力し、Console.WriteLine(42)はGC込み84,513バイト。実行にはWASIホストだけでよい / zion-sati/NetWasm
zion-sati/NetWasm
52 views
C# now beats Rust on WASM size
zion-sati/NetWasm
news.ycombinator.com
C# now beats Rust on WASM size (github.com)
Discussion | Main Link
TFA did [0] the most important stuff for minimizing Rust binaries: release mode, LTO, strip, and abort on panic. But there is a lot more you can do if you really care about Rust binary size [1]: remove location details, purge the debug formatters, rebuild the standard library for size, abort with no error message at all, and nuttier stuff.
[0]: github.com/zion-sati/NetWasm/blob/main/docs/size-…
[1]: johnthagen/min-sized-rust
C# now beats Rust on WASM size
#gamedev #gamedevelopment #indiedev #csharp #rustlang #wasm
4 likes · 2 reposts
C# now beats Rust on WASM size
2 points · 1 comment
C# now beats Rust on WASM size
1 point
Mentions
zion-sati/NetWasm: Compile C# and .NET CIL to small standalone Wasm with WASI (AOT with built-in Runtime and Precise GC) by Zion Sati zion-sati/NetWasm #aspnetcore t.co
zion-sati/NetWasm: Compile C# and .NET CIL to small standalone Wasm with WASI (AOT with built-in Runtime and Precise GC) by Zion Sati zion-sati/NetWasm #aspnetcore
C# 编出的 wasm 比 Rust 还小 同样打印 42,NetWasm 产物 43109 字节,Rust 1.95 为 53635 字节,前者还把运行时和精确 GC 算在里面。 zion-sati/NetWasm
NetWasmは.NET CoreをWasmに載せず、Roslynが出力したCILから到達可能なコードだけをWasmへ直接コンパイルする。CLRやMonoを含まないWASI Preview 2 Componentを出力し、Console.WriteLine(42)はGC込み84,513バイト。実行にはWASIホストだけでよい / zion-sati/NetWasm zion-sati/NetWasm
C# now beats Rust on WASM size zion-sati/NetWasm news.ycombinator.com
C# now beats Rust on WASM size (github.com) Discussion | Main Link
TFA did [0] the most important stuff for minimizing Rust binaries: release mode, LTO, strip, and abort on panic. But there is a lot more you can do if you really care about Rust binary size [1]: remove location details, purge the debug formatters, rebuild the standard library for size, abort with no error message at all, and nuttier stuff. [0]: github.com/zion-sati/NetWasm/blob/main/docs/size-… [1]: johnthagen/min-sized-rust
C# now beats Rust on WASM size #gamedev #gamedevelopment #indiedev #csharp #rustlang #wasm
C# now beats Rust on WASM size
C# now beats Rust on WASM size