Joel Dice
Joel Dice
I made an informal proposal at today's WASI meeting today: https://docs.google.com/presentation/d/1C55ph_fSTRhb4A4Nlpwvp9JGy8HBL6A1MvgY2jrapyQ/edit?usp=sharing In a nutshell: I'd propose we translate the API of Rust's [native-tls](https://docs.rs/native-tls/0.2.11/native_tls/) library to WIT as a starting point....
The other important thing to notice about .NET's `SSLStream` is that it can wrap an arbitrary `Stream` implementation, e.g. a `MemoryStream`, a `FileStream`, a `SocketStream`, etc. So we need to...
Right, I was assuming we'd only support e.g. `ReadAsync` and `WriteAsync`.
For reference, here are the thin wrappers I built around `wasi:io/streams/input-stream` and `wasi:io/streams/output-stream`, respectively: https://github.com/dicej/spin-dotnet-sdk/blob/main/src/InputStream.cs https://github.com/dicej/spin-dotnet-sdk/blob/main/src/OutputStream.cs
> > We can't be blocked by Pollable and so synchronous APIs of Stream can't be implemented. > > Interesting, why's that? Can't you use `blocking_read` etc? Perhaps he meant...
I've taken a subset of @badeend's draft WIT file and created .NET guest implementation providing a corresponding subset of the `System.Net.Security.SslStream` API, along with a Wasmtime-based host implementation [here](https://github.com/dicej/dotnet-wasi-tls). It...
Quick update on the above: @jsturtevant and I were able to get a modified `Microsoft.Data.SqlClient` to connect to a SQL server and query it using [TDS 8.0](https://learn.microsoft.com/en-us/sql/relational-databases/security/networking/tds-8) (i.e. the latest...
Yeah, I guess we should avoid creating yet another style for new code and instead try to match one of the existing ones, e.g. the musl one.
https://wiki.musl-libc.org/coding-style says: > The best short description of the coding style used in musl is “very similar to the Linux kernel style”. ... so maybe we should start with https://github.com/torvalds/linux/blob/master/.clang-format
I've just opened a new issue with a proposal that addresses this topic: https://github.com/WebAssembly/wasi-libc/issues/447