[JS] Implement C Data Interface

Open
#88 7 comments 1 reaction 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Active
Tech stack
rust, typescript, wasm
Domain
data

Research direction

Start by reviewing the linked arrow-js-ffi implementation and the Arrow JS code, then inspect the small Rust module used to generate FFI memory from an IPC table in tests. The issue needs an agreed scope for read-only C Data Interface support and a confirmed test approach before completion can be judged.

Written by the indexing model from the issue text.

Description

Type: enhancement

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?

Reporter: Kyle Barron

Note: This issue was originally created as ARROW-17608. Please see the migration documentation for further details.

Dominant language
TypeScript
Stars
114
Forks
35
Avg merge
13h 35m
Merged PRs (30d)
5

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from apache/arrow-js

All issues in apache/arrow-js

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.