ilikepi63 commented on issue #13815: URL: https://github.com/apache/datafusion/issues/13815#issuecomment-2909418764
Hello 👋 Not sure if this is the correct place, but I've been working on a very rough implementation of using Arrow in Wasmtime here: https://github.com/ilikepi63/arrow_wasmtime. My approach boils down to having the wasm module expose a _malloc function which is then used to reserve space for the Arrow pointers' data. I've adjusted some of the code from the arrow::ffi module to allow the copying of Arrays + Schema over the FFI boundary. It's not the greatest considering there are multiple calls to _malloc (that might be able to be done once in a similar fashion to arena allocation?), multiple copies to the wasm modules' data and that alignment is different (wasm usually is 32 whilst my machine is 64). For a simple example of doing this, please see here: https://github.com/ilikepi63/arrow_wasmtime/blob/main/tests/simple_addition.rs (you'll need to cargo build the example_wasm function) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org For additional commands, e-mail: github-h...@datafusion.apache.org