Christof Petig

Results 103 comments of Christof Petig

Thank you, I hope #1036 wasn't too much of an effort, I am still working on finishing this.

Contained in and extended by https://github.com/bytecodealliance/wit-bindgen/pull/1163

Of course the lowering of flat [POD](https://en.wikipedia.org/wiki/Passive_data_structure) types would be identical to normal POD types, I consider (resource) handles as POD here. So the modifier only applies (recursively) to string...

I started with a WIT marker because I assumed that the same interface might mix flat and normal ABI calls, but I am no longer sure about this, especially since...

:thinking: I feel that a proof of concept implementation might be a good idea to see how shared memory and flat types could work together to achieve zero copy. I...

@lum1n0us Do you know a good way to model access to a non-zero memory from a clang compiled language, e.g. C or Rust? Load and store intrinsics could be a...

I just created a working proof of concept crate for the flat data parsing and creation at https://github.com/cpetig/flat-types-rust , the API already looks usable but will need a lot of...

I started a first prototype of shared memory zero copy at https://github.com/cpetig/wasm-shm-test/blob/main/wit/shm.wit#L12 but didn't complete it, yet.

Progress update: I have a working example of zero copy (single) publisher (multiple) subscriber with the AUTOSAR adaptive API. Asynchronous WASI 0.3 streams, compiled to native. Combining Rust and C++...

🥳 Update: Starting from my AUTOSAR experiments I now have a webassembly prototype for zero copy publisher subscriber. It uses WASI 0.3 streams to broadcast host side shared memory buffers...