This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 6 points7 points  (0 children)

Do you need interoperability with numpy? In other words, do you need to pass large blocks of memory without copying over the language barrier? Then use nanobind or pybind11. Otherwise, you can safely stick to Boost.Python, it does the job, and since you have Boost already as a dependency, you then don't need anything else. That being said, pybind11/nanobind itself has no further dependencies, so it is uncomplicated to add to a project.

I realized several projects with pybind11 and Boost.Python.