eternal
constexpr-8cc
eternal | constexpr-8cc | |
---|---|---|
1 | 2 | |
189 | 787 | |
0.0% | - | |
10.0 | 3.9 | |
over 1 year ago | almost 3 years ago | |
C++ | C++ | |
ISC License | MIT License |
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.
eternal
-
Long switch statements. Is there a better way?
Unfortunately std::map is not constexpr. There are open source alternatives though (not affiliated with the author in any way).
constexpr-8cc
-
Constexpr Advent of Code
Is C enough? https://github.com/keiichiw/constexpr-8cc
-
`Constexpr` Is a Platform (2020)
https://github.com/keiichiw/constexpr-8cc
This tool embeds a C compiler as a constexpr, so in theory you can do all the work at compile time and just output a static string at run time. But currently I am having trouble getting it to work, so it's perhaps not so glorious other than the amount of time it takes to compile.
What are some alternatives?
hof - Higher-order functions for c++
RE2 - RE2 is a fast, safe, thread-friendly alternative to backtracking regular expression engines like those used in PCRE, Perl, and Python. It is a C++ library.
StaticTypeInfo - 🏀 Up your type-game. A small C++ library for compile-time type names and type indices.
Better Enums - C++ compile-time enum to string, iteration, in a single header file
bitset2 - std::bitset with constexpr implementations plus additional features.
stb - stb single-file public domain libraries for C/C++
pthash - Fast and compact minimal perfect hash functions in C++.
C++ Format - A modern formatting library
uninttp - A universal type for non-type template parameters for C++20 or later.
Cppcheck - static analysis of C/C++ code
sshash - A compressed, associative, exact, and weighted dictionary for k-mers.
semver.c - Semantic version in ANSI C