Steve Sanderson
Steve Sanderson
No, https://github.com/SteveSandersonMS/dotnet-wasi-sdk/blob/main/src/Wasi.AspNetCore.Server.CustomHost/native/server_interop.c is about as simple as it gets. That's why we should make a simpler mechanism with C# only.
No, you don't need Mono. No other build tools are needed. Just reference your `.c` file with `WasiNativeFileReference` like the `Wasi.AspNetCore.Server.CustomHost` project does, and it will be included in the...
> I need to include that into the .csproj directly Good, that's the right thing to do if you're just testing! Having `.props`/`.targets` files that get bundled into a NuGet...
Thanks for reporting this. The latest version, [0.1.2-preview.10061](https://www.nuget.org/packages/Wasi.Sdk/0.1.2-preview.10061), works with the latest SDKs. So it should no longer be necessary to downgrade your SDK.
> Could it be that collecting garbage is not working yet? Yes, that is definitely the case (as a known limitation currently). This is a priority for us to resolve....
> However, C#, demands 524.28MB just to start That's simply because of the [--initial-memory=524288000 declaration in the build you're using](https://github.com/SteveSandersonMS/dotnet-wasi-sdk/commit/4679c868c6d18842675b5a47f103dd51361ca6b9#diff-79beeca10d09e858e86e326183693918655294460f28f3a8bca71e4559cf9586L215), i.e., it allocates 500MB up front. This is entirely unnecessary,...
I agree! That's definitely something we should add support for. In my estimation, most production deployments should use AOT since the additional file size isn't really much of a drawback,...
Thanks for looking into this, @haraldh! Just to clarify, how is application code meant to know which file descriptor numbers to pass to `sock_accept`? Is this a gap in the...
Thanks for the info! That's really useful. > preopened directories must be after the preopened sockets, not before Does the "band-aid" fix (https://github.com/bytecodealliance/wasmtime/pull/3995) satisfy this condition? I did try out...