Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Dependencies] Boost libraries #71

Closed
agodemar opened this issue Jun 20, 2018 · 4 comments
Closed

[Dependencies] Boost libraries #71

agodemar opened this issue Jun 20, 2018 · 4 comments

Comments

@agodemar
Copy link
Contributor

agodemar commented Jun 20, 2018

Considering the relevance of the Boost libraries in the C++ community, and considering the amount of functionalities it provides, are there good reasons why we should not depend on them?

@seanmcleod
Copy link
Member

A fair number of (more than 10) of the Boost libraries were included in the C++11 standard and continue to be added to later C++ standards. So with some lag the most generic libraries that the C++ committee thinks will be useful in the C++ standard are added.

Boost Features Overlap with C++11

Sometimes the leading/bleeding edge boost libraries aren't compatible with as many current compilers compared to say an older C++ standard like C++11 etc.

I wouldn't say that we should automatically depend on Boost, in general the fewer dependencies the better, unless there is a compelling reason/example where something would be a LOT better/easier if we used Boost as opposed to standard C++11, 14 etc.

So I'd suggest rather waiting for some new feature or large refactoring where someone motivates a good case for why it would be much better to use Boost for the new feature/refactoring etc.

@agodemar
Copy link
Contributor Author

agodemar commented Jun 20, 2018

I think the Asio library for network and low-level I/O programming would be good to have in the standard. They are working on it.

@djlinse
Copy link
Contributor

djlinse commented Jun 20, 2018

I would agree with @seanmcleod that there would need to be a serious case made before requiring Boost libraries. Isn't one of the "claims to fame" of JSBSim that it doesn't rely on external libraries?

I love python, but one of the issues I always had with distributing anything was requiring the recipient to have python plus X plus Y plus Z plus ... Sure there are distributions that give most things, but there always seems like there is one more thing.

@bcoconni
Copy link
Member

Same as @seanmcleod and @djlinse JSBSim has never relied on any external libraries and that is one of its strength: you just need a C++ compiler to build it.

In addition I think PR #73 is making sense and that means that, in some cases, we might need to build JSBSim locally with Cython and Python distutils. In that case not having any dependency will make our lives easier.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants