pybind11 stuff that is missing in nanobind #77
-
I experimentally tried to port Halide's python bindings to use nanobind instead of pybind11, and it seems there are a few things still missing; this isn't meant to be a criticism of what I presume is still a work in progress, but rather, feedback for future work (or maybe a request for correction if things are present in a way I haven't found):
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
Do you mean a |
Beta Was this translation helpful? Give feedback.
-
There was never a guarantee of API compatibility. I am trying to stay mostly close when the existing API was a good choice, but in other cases I am making drastic changes. The tensors are one such example. They are quite extensively documented through a Markdown page (https://github.com/wjakob/nanobind/blob/master/docs/tensor.md) and a testcase (https://github.com/wjakob/nanobind/blob/master/tests/test_tensor.py, https://github.com/wjakob/nanobind/blob/master/tests/test_tensor.cpp). Is that not enough?
This feature was just added to
nanobind supports implicit conversions (see
See the comment above. |
Beta Was this translation helpful? Give feedback.
There was never a guarantee of API compatibility. I am trying to stay mostly close when the existing API was a good choice, but in other cases I am making drastic changes. The tensors are one such example.
They are quite extensively documented through a Markdown page (https://github.com/wjakob/nanobind/blob/master/docs/tensor.md) and a testcase (https://github.com/wjakob/nanobind/blob/master/tests/test_tensor.py, https://github…