libflow
By tcbrindle
fms_iterable
iterators with explicit operator bool() const (by keithalewis)
libflow | fms_iterable | |
---|---|---|
5 | 3 | |
63 | 3 | |
- | - | |
4.1 | 6.0 | |
over 2 years ago | 3 months ago | |
C++ | C++ | |
Boost Software License 1.0 | - |
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.
libflow
Posts with mentions or reviews of libflow.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-01-03.
-
CXXIter: A chainable c++20 LINQ-like iterator library
Have you seen libflow? It's also built on the same model (Rust-style iterators), curious how they compare.
-
Modern C++ in Advent of Code
Just to get on the bandwagon: here are my C++20 Advent of Code solutions, mostly using my work-in-progress Flow library
-
T* makes for a poor optional<T&>
Perhaps relevant since Barry mentioned my Flow library as an example: the following (written a couple of years ago for another Reddit thread) is what would appear in Flow's documentation as a justification for using optional references -- if Flow actually had any documentation, that is...
-
Is it well defined if you pipe a stateful transform into views::drop?
If you want to use the Rust iterator model in C++, then you can do so.
-
What are coroutines even for?
I have a work-in-progress-for-a-long-time-now functional-style programming library called libflow, which uses Swift/Rust style iterators. It has optional support for coroutines ("flowroutines", heh) which can make writing "one-shot" iterators very simple indeed.
fms_iterable
Posts with mentions or reviews of fms_iterable.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-01-03.
-
CXXIter: A chainable c++20 LINQ-like iterator library
Good stuff! I am a fan of LINQ and see you took pains to make your library performant (a common complaint against LINQ). My take on a more C++-y way of doing this is https://github.com/keithalewis/fms_iterable. An iterable is a C++ iterator with explicit operator bool() const to detect the end. The downside is I have to figure out how to translate this into the standard set of LINQ operators. Nowhere near as complete as your work but my main use case is implementing numerical algorithms. Maybe you'll find a pony in there. :-)
-
Single header functional iterator library
See https://github.com/keithalewis/fms_iterable for some ideas in this direction.
-
12 Different Ways to Filter Containers in Modern C++
It can be done: https://github.com/keithalewis/fms_iterable
What are some alternatives?
When comparing libflow and fms_iterable you can also consider the following projects:
zab - C++20 liburing backed coroutine executor and event loop framework.
rangeless - c++ LINQ -like library of higher-order functions for data manipulation
scnlib - scanf for modern C++
AdventOfCode2021 - Solutions to all 25 AoC 2021 problems in Rust :crab: Less than 100 lines per day and under 1 second total execution time! :christmas_tree:
CPython - The Python programming language
range-v3 - Range library for C++14/17/20, basis for C++20's std::ranges
advent-of-code-2021 - 🦀 Rust solutions to AoC 2021