Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-17608

[JS] Implement C Data Interface

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • JavaScript
    • None

    Description

      I've recently been working on an implementation of the C Data Interface for Arrow JS, the idea being that Arrow JS can read memory from WebAssembly this way without a copy (blog post, repo). Dominik suggested starting a discussion about potentially adding this into Arrow JS.

      My implementation is still WIP but figure it's not too early to start a discussion. A couple notes:

      • I'm focused only on reading FFI memory, so I only have parsing code. I figure writing doesn't really make sense in JS since Wasm can't access arbitrary JS memory
      • In order to generate FFI memory in the tests, I'm using a small Rust module to convert from an IPC table. If we didn't want to add a rust build step in the tests, that module could be published to NPM

      Thoughts?

      Attachments

        Activity

          People

            Unassigned Unassigned
            kylebarron2 Kyle Barron
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated: