spirit
Boost.org spirit module (by boostorg)
hana
Your standard library for metaprogramming (by boostorg)
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
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.
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.
spirit
Posts with mentions or reviews of spirit.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2021-12-07.
-
How does an experienced programmer go about learning new languages such as C++.
Oh, one project that I learned a lot of modern C++ from was, https://github.com/boostorg/spirit, I wanted to build a faster org-mode parser. I built at best a working prototype, but ended up learning a lot about how templates. It is also a header only library. If you want to avoid some administrative work, linking, choosing a build system, .... I figured it might be helpful.
-
Boost v1.78.0
Sadly, this still includes the to me [rather critical bug in Boost Spirit](https://github.com/boostorg/spirit/issues/688). I was hoping that a patch would come through before release.
-
Filter Spirit - write filters with enhanced syntax. Compile filter templates. Use variables, poe.ninja data and more!
People behind https://github.com/boostorg/spirit who helped in fixing numerous issues regarding newest library edition and helped track down a GCC bug. Boost Spirit LL(∞) parser is the core of this project.
hana
Posts with mentions or reviews of hana.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-01-16.
-
What are some C++ projects with high quality code that I can read through?
I like boost::hana. Wish I had more chances to use it at work.
-
Simple `struct` static reflection system I use that tracks names, attributes (in my own code I also keep `constexpr` hashes of names) -- example gets fully inlined into `main()`
And then there's also the longstanding issue with default member initializers -- https://github.com/boostorg/hana/issues/409 -- which was a deal-breaker.The PROP system avoids this issue precisely by having the macro be as local as possible: the default member initializer is outside the macro. It does this while still letting you attach additional PropAttribs metadata (I'm not sure what additional metadata attachment looks like in Hana? haven't really tried). Default values and additional attributes are by and large quite more important to me in my use cases for reflection (component types in game ECS) than range syntax (everything I've needed and can think of needing is covered by for-each loop).
-
cppa2z - Document modern C++ using unit tests
oh yes definitely, but I meant more the particular way I've done it so far - which has been to implement something similar to boost::hana::is_valid(), to make it take the least amount of boilerplate code per-use-case as possible: zero additional lines of code.
-
C Implementation Challenge Replacing Stdmove And
Boost.Hana developers measured a very noticeable 15% decrease in compile time switching from a function call (admittedly -- with an additional layer of wrapper) to a raw static_cast. foonathan himself saw a little over a 5% decrease in his actual code. miki151 saw about a 3% improvement from replacing move with MOV only, ignoring forward. In a completely synthetic benchmark where I just generate a ton of move calls in a row, I get a little over 40% decrease in compile time.
What are some alternatives?
When comparing spirit and hana you can also consider the following projects:
PEGTL - Parsing Expression Grammar Template Library
sml - C++14 State Machine library
innoextract - A tool to unpack installers created by Inno Setup
filesystem - An implementation of C++17 std::filesystem for C++11 /C++14/C++17/C++20 on Windows, macOS, Linux and FreeBSD.
asio - Boost.org asio module
cpp-cheatsheet - Modern C++ Cheatsheet