loops: Fast imperative-style loops
loops
is a library for fast, imperative-style loops with a clean syntax.
Features
Fast, imperative-style loops with a clean syntax. Bind (
>>=
) nests loops, so indo
-notation, each subsequent line is nested inside loops that appear above it.Iteration over common data structures, like lists and vectors.
Robust performance because there is no reliance on fusion.
NEW! Loop-unrolling to arbitrary depth. Unrollable loop combinators are provided in
Control.Monad.Loop.Unroll
. (The simple, "rolled" interface is still provided inControl.Monad.Loop
.) The unrolling depth set at the call site at compile time. My benchmarks show that folding over unrolled loops is up to 25% faster than folding over unboxed vectors!
For best performance, please compile your code with -O2
. You should also
use GHC's LLVM backend if possible; it generally produces faster executables.
[Skip to Readme]
Modules
[Index]
Downloads
- loops-0.2.0.2.tar.gz [browse] (Cabal source package)
- Package description (revised from the package)
Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
Versions [RSS] | 0.1.0.0, 0.1.0.1, 0.2.0.0, 0.2.0.1, 0.2.0.2 |
---|---|
Dependencies | base (>=4.7 && <5), primitive (>=0.5 && <1), transformers (>=0.3 && <1), vector (>=0.10 && <1) [details] |
License | BSD-3-Clause |
Copyright | (c) Thomas Tuegel 2014 |
Author | Thomas Tuegel |
Maintainer | ttuegel@gmail.com |
Revised | Revision 1 made by HerbertValerioRiedel at 2015-09-02T06:26:44Z |
Category | Control |
Bug tracker | https://github.com/ttuegel/loops/issues |
Source repo | head: git clone https://github.com/ttuegel/loops.git |
Uploaded | by ThomasTuegel at 2014-06-13T23:03:55Z |
Distributions | |
Reverse Dependencies | 1 direct, 0 indirect [details] |
Downloads | 5149 total (13 in the last 30 days) |
Rating | (no votes yet) [estimated by Bayesian average] |
Your Rating | |
Status | Docs uploaded by user [build log] All reported builds failed [all 1 reports] |