"Not just trapping rain - trapping complexity within zero-cost abstractions."
Impluvium is a love letter to Modern C++ (C++20/23) disguised as a classic algorithm problem.
It solves Trapping Rain Water with three different mindsets:
- Classical O(1) space - Two pointers, branch prediction hints.
- Parallel Heterogeneous -
std::execution::par_unseq+inclusive_scan. - Compile-time Oracle -
constevalstatic solver for array literals.
But the water is just an excuse. The real project is the meta-architecture:
rain::genius::meta: Customconceptsfor arithmetic & iterator safety.rain::genius::core: Zero-overhead dispatching between sequential and parallel backends.rain::genius::interface: Fluent API design (FluentTrap) with automatic execution policy selection.