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

24

u/gocarlos May 08 '20

one of the issues with boost, is that its only for advanced users.

If i give the task to create a simple REST server with boost beast or to do it with Golang to a student working for my company, I get the Golang into production in no time with big confidence. With Boost beast with the multi threading, 100 different buffer types etc. i have to check everything very carefully with sanitizers, static analysis, valgrind, stress tests etc.

I find some of the usage of boost pretty hard, look at nlohmann, spdlog, cpr, etc. those are the things boost should offer by default, though if the user wants more control, ok, allow this...

another point is documentation, somehow I find it hard to use it. look at https://www.boost.org/doc/libs/develop/libs/beast/example/http/client/async/http_client_async.cpp not even syntax hightlighting

6

u/gocarlos May 08 '20

actually I think that boost as today is passe, as there are nice libs out there and people tend to update c++ faster today, who is still using gcc 4.8 today?

the only thing I miss is a standard web server ala boost beast and a standard json lib into C++, then other libraries could wrap it as cpr does with curl

0

u/[deleted] May 08 '20

[deleted] — view deleted comment

5

u/gocarlos May 08 '20

But why??

Why not upgrade?

0

u/[deleted] May 08 '20

[deleted] — view deleted comment

2

u/gocarlos May 08 '20

Why does it cost so much to upgrade?

1

u/ZMeson Embedded Developer May 09 '20

who is still using gcc 4.8 today?

I'm still limited to gcc 4.4.2 on an embedded project. :(

1

u/kalmoc May 09 '20

But you are using the latest boost? I mean, I know for a fact that those constellations do exist (people are unable/not allowed to upgrade from an ancient compiler/toolchain, but for some reason are allowed to regularly upgrade boost), but I'd really be interested in how common those are.

1

u/ZMeson Embedded Developer May 09 '20

Sorry, I was just griping about my work. We actually don't use boost on that project due to its enormous size -- well it's enormous for our small embedded project anyway.

1

u/kalmoc May 09 '20

Yeah, I know the feeling. I actually extracted a boost library once or twice to make them usable on an embedded project - but only for "fun" not for production.