Stream: C#/.net-collaboration

Topic: GC


view this post on Zulip Timmy Silesmo (Nov 01 2023 at 09:07):

Chrome has now enabled GC by default so we should definitely start looking into GC for C# as well
https://developer.chrome.com/blog/wasmgc/

There are two types of programming languages: garbage-collected programming languages and programming languages that require manual memory management. This article explains how thanks to WebAssembly Garbage Collection, short WasmGC, garbage-collected languages can be ported to WebAssembly.

view this post on Zulip Scott Waye (Nov 02 2023 at 13:11):

unfortunately the MVP for Wasm GC is not up to the job for dotnet GC, neither mono nor CoreCLR. I'll look for the details.

view this post on Zulip Scott Waye (Nov 02 2023 at 13:15):

https://github.com/WebAssembly/gc/issues/77 (and interior pointers)

I was asked to add some notes based on the needs of Microsoft .NET implementations wrt GC in WebAssembly. Object layout .NET objects in memory usually consist of a header followed by object data. T...

view this post on Zulip Timmy Silesmo (Nov 02 2023 at 13:37):

Hm, that's unfortunate. Yes please have a look for the details :blush:

view this post on Zulip Scott Waye (Nov 02 2023 at 14:32):

that issue pretty much covers the problems, some issues will be tackled post MVP, but others (finalizers) are a bit stuck.


Last updated: Dec 06 2025 at 06:05 UTC