-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
Looking at the first example about iterators. I agree that Rust's Iterator API is awesome. But is there any fundamental reason you couldn't write a similar one in C++? (Example: https://github.com/cwzx/lazy-iterators) We know the STL made different choices, and it's also just much older, when "declarative" expressions weren't quite as in vogue. The example with find_if is pretty damn close to as declarative as the Rust version. The only "loss" is that the STL algorithms are eager, so you have to combine the nth feature as part of the predicate. You could even combine the if and returns with a ternary to make it more expressiony. And as /u/MysteryManEusine wrote, C++20's ranges makes it just as declarative. Also, using the matches! macro feels little like cheating- without it, the lambda is exactly the same as the C++ version. Both are pretty declarative anyway.
As for the serialization stuff, something kind of similar does exist in C++: https://github.com/nlohmann/json#simplify-your-life-with-macros. Remember that serde is not part of Rust. It's a third party library. As is structopt.
Related posts
-
Show HN: Jsonpak: JSON that is not bloated for Nim
-
JSON for Modern C++ 3.11.3 (first release since 473 days)
-
It is either a clever technique or a sad failure
-
How to compile project to separate files to prevent having single large executable as a result?
-
C++ that allows tracking peer to peer multimedia streaming connections using a Flat File - NOT MySql