Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I find that using tools like pybind11 to create python bindings rather than trying to write Python C API directly greatly decreases fragility since the pybind11 team have already spent a lot more time than me understanding the python API and dealing with all the weird corner cases and optimisations.


Matter of taste to some extent I suppose. I've worked with the Python C API, it's not pretty but not too bad. I could see adding a tool to get something up and running quickly would be useful in some cases, but it strikes me that this is a really high quality core product, adding a new language has got to have risks, I'd reckon it would be worth doing the binding manually (and it only has to be done the once).




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: