te
Experimental Boost.DI
Our great sponsors
te | Experimental Boost.DI | |
---|---|---|
4 | 8 | |
402 | 1,103 | |
2.7% | 2.3% | |
2.7 | 3.5 | |
3 months ago | 15 days ago | |
C++ | C++ | |
- | - |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
te
-
rust-like traits on plain C++ with short macro (type erasure actually)
Or dyno or Poly or Not-Actually-Boost.TE or ...
-
C++ Polymorphism Without Inheritance Using Glaze
https://github.com/boost-ext/te Boost TE ("unnoficial boost project")
-
[C++20] New way of meta-programming?
https://github.com/boost-ext/te (for SBO performance and type.erasure call syntax)
-
Type Erasure in C++ Explained
And if it were in the standard there wouldn't be at least five well known libraries implementing it (including from Adobe and from Facebook): https://github.com/boost-ext/te#similar-libraries
As far as I know (I don't really follow the committee work) the latest attempt to introduce run-time duck-typing in the standard was https://github.com/andyprowl/virtual-concepts, which seems dead.
Experimental Boost.DI
-
What are some cool modern libraries you enjoy using?
I love: https://github.com/boost-ext/di for dependency injection
-
[C++20] New way of meta-programming?
https://github.com/boost-ext/di (To detect constructor parameters and inject dependencies without runtime dispatch)
-
Dependency injection
I was looking to try boost.di for some time, looks nice. https://boost-ext.github.io/di/
- Dependency injection with c++
-
Architecture of a Qt application
Things like Dependency Injection/Inversion are a little more cumbersome in C++ but certainly can be done, and I believe there's libraries for that as well (found a couple searching around, like fruit and boost-ext di ).
-
Jodd – The Unbearable Lightness of Java
Dependency injection does not have to be dynamic, it can totally be done at compile time. Boost DI is an example: https://boost-ext.github.io/di/
- DI in c++ hurt by lack of good libraries?
-
Top five C/C++ things/tips/tricks you wish you had known earlier and are now used very often
Funny you mention dependency injection, proposed Boost.DI shall be up for Boost peer review probably in March. https://boost-ext.github.io/di/
What are some alternatives?
dyno - Runtime polymorphism done right
kangaru - 🦘 A dependency injection container for C++11, C++14 and later
entt - Gaming meets modern C++ - a fast and reliable entity component system (ECS) and much more
American Fuzzy Lop - american fuzzy lop - a security-oriented fuzzer
actix-net - A collection of lower-level libraries for composable network services.
c-smart-pointers - Smart pointers for the (GNU) C programming language
glaze - Extremely fast, in memory, JSON and interface library for modern C++
gcc-poison - gcc-poison
azula - A fast, statically typed compiled language
outcome - Provides very lightweight outcome<T> and result<T> (non-Boost edition)
hsm - Finite state machine library based on the boost hana meta programming library. It follows the principles of the boost msm and boost sml libraries, but tries to reduce own complex meta programming code to a minimum.
stb - stb single-file public domain libraries for C/C++