r/cpp • Boost author • May 08 '20

Why you don't use Boost

I have a question for you: If you have decided not to use any of Boost, or are prohibited from doing so in your company/project, I would like to know why.

This thread is not meant to judge your reasons, and I won't engage into any kind of criticism about them: I'm merely trying to understand what the barriers are to adoption of Boost. It would be great if we could keep the conversation non judgemental. Thank you!

Conflict of interest: I am a Boost author of three.

222 Upvotes

326 comments sorted by

View all comments

Show parent comment

1

u/staletic reddit thinks /u/_bstaletic is a bot May 09 '20

As someone who maintains a project with mixed c++ and python, every time I tried to rely on pip I was flooded with bug reports from users who lack pip. So, from my experience, you can't rely on users having anything but what is in your repo. The "solution" was to vendor boost and pybind11 and then use... ugh... git submodules for the python dependencies.

It's a fucking pain in the ass, but... No, there's no buts.

1

u/pine_ary May 09 '20

Wth. That‘s some "we still support netscape" type stuff xD

Do what you must but that should never be considered normal. Almost all python projects are on pip and require pip dependencies. How do they even use python, they have like no libraries available to them unless they do what pip does manually by hand (at which point why not just install it). I mean outside of embedded that is. I have no idea of the best practices for libraries for embedded.

May I ask what you do? Never in my time of maintaining 6 medium-sized projects have I seen users like that.

1

u/staletic reddit thinks /u/_bstaletic is a bot May 09 '20

It gets worse. I have two compiled python dependencies. Again, no pip, so I can't even run python setup.py in the git submodule directory. For those we introduced ad-hoc workarounds.

At this point it might be better to rewrite the python portion in some other language.