carla icon indicating copy to clipboard operation
carla copied to clipboard

Will future carla use pybind11 as Python API?

Open zeng-hello-world opened this issue 4 years ago • 4 comments

Hi,

Carla is a great work! Carla uses boost.python as python api, and there is another python-c++ api pybind11. As far as I know, pybind11 is more pure and simple, while boost.python needs whole boost lib to be installed. So I want to know will carla use pybind11 as your python api inthe future?

Best regards!

zeng-hello-world avatar Dec 17 '20 12:12 zeng-hello-world

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jul 21 '21 08:07 stale[bot]

Using pybind11 to refactor python-c++ api also can provide typing information using mypy. This would make carla more self documenting. It is realy an important feature for user that using modern IDEs like VSCode, Pycharm.

AlanHuangT avatar May 10 '23 14:05 AlanHuangT

Hi,

When I have some time I may look into whether pybind would degrade performance. Are you asking because you want to have type info or because compiling boost is too slow? If it's the second the current build system rework should significantly lessen this problem.

Marcel

MarcelPiNacy-CVC avatar May 10 '24 14:05 MarcelPiNacy-CVC

Hi,

When I have some time I may look into whether pybind would degrade performance. Are you asking because you want to have type info or because compiling boost is too slow? If it's the second the current build system rework should significantly lessen this problem.

Marcel

Type info is important. I think the pybind11 is modern, simple, popular, with active community support. Carla will benefit from it.

AlanHuangT avatar May 11 '24 15:05 AlanHuangT

This might resolve Issue #6547 as well.

qhaas avatar Jan 20 '25 16:01 qhaas