Tool for automatically converting a pybind11 based project to nanobind #1205
Replies: 2 comments
-
|
Keep an eye on |
Beta Was this translation helpful? Give feedback.
-
|
Just FWIW: In my experience, LLM tools like Claude Code are super good at this kind of mechanical translation especially when combined with an existing test harness. (It's the kind of tedious/repetitive job that thing nobody enjoys doing by hand in any case.) You can ask it to do a pass over the whole codebase and create a list of tricky corners first and propose a strategy, and then just launch a subagent per file that does the conversion. Then have it investigate test failures and fix the bindings while keeping the tests static. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Would it be feasible for the open source community to develop a tool that can automatically convert a code base that uses pybind11 to nanobind?
Motivation:
We have spent many months (> 6 months) trying to migrate a large code base from pybind11 to nanobind. Even after getting it to compile, we are seeing runtime issues. My colleague is attempting to write a custom clang-tidy check with FIXITs to do some conversion, because the python interface continues to change on main, and rebasing manually is a nightmare.
Beta Was this translation helpful? Give feedback.
All reactions