pybind / pybind/pybind11

Interop with Numba / JAX?

Open
#1,268 3 comments 13 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
18k
Forks
2.3k
Avg merge
5d 17h
Merged PRs (30d)
10

Description

This is very far left field, but it'd be interesting if there were a way for pybind11 and numba to interoperate.

One scenario might be if a pybind signature overload could be detected during @numba.jit, and if numba could detect pybind types, get the underlying C[++] data, and strip out marshaling normally done by pybind, and reduce the overhead when calling C++ code from Python in loops (related: #1227).

Contributor guide

Open the contributing guide

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.

Research direction

Start by reviewing related issue #1227 and the proposed interaction between pybind11, Numba, and JAX. No implementation files or tests are identified; the work would first need a feasibility investigation and a defined interoperability design before completion can be measured.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, python
Domain
devtools
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.