hana
filesystem
Our great sponsors
hana | filesystem | |
---|---|---|
4 | 3 | |
1,635 | 1,271 | |
1.7% | - | |
5.1 | 5.1 | |
11 days ago | 12 days ago | |
C++ | C++ | |
Boost Software License 1.0 | 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.
hana
-
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.
filesystem
-
Rust's recursive directory iterator 5x faster than CPP
On C++ side you may also try ghc::filesystem. It may cache more data fro directory entry.
-
Retiring boost from my codebase
boost::filesystem -> https://github.com/gulrak/filesystem.git
- Non C++17, or Boost way to mkdir
What are some alternatives?
mio - Cross-platform C++11 header-only library for memory mapped file IO
onion-monero-blockchain-explorer - Onion Monero Blockchain Explorer
sml - C++14 State Machine library
anno1800-mod-loader - The one and only mod loader for Anno 1800, supports loading of unpacked RDA files, XML merging and Python mods.
dyno - Runtime polymorphism done right
dwarfs - A fast high compression read-only file system for Linux, Windows and macOS
doctest - The fastest feature-rich C++11/14/17/20/23 single-header testing framework
ultimatepp - U++ is a C++ cross-platform rapid application development framework focused on programmer's productivity. It includes a set of libraries (GUI, SQL, Network etc.), and integrated development environment (TheIDE).
robin-hood-hashing - Fast & memory efficient hashtable based on robin hood hashing for C++11/14/17/20
abseil-cpp - Abseil Common Libraries (C++)
cppa2z - Document modern C++ using unit tests
apfs-fuse - FUSE driver for APFS (Apple File System)