High performance, concurrent functional programming abstractions
Go to file
2023-03-09 18:02:56 +05:30
.circleci Keep only two sdist builds 2022-10-12 22:33:58 +05:30
.github/workflows Update the stack file 2023-03-09 18:02:56 +05:30
benchmark Add a note describing StreamDK benchmark 2023-03-09 17:56:02 +05:30
bin Fix streamly versions in the doc 2023-03-09 18:02:56 +05:30
core Add a license and a tested-with field in streamly-core 2023-03-09 18:02:56 +05:30
docs Fix streamly versions in the doc 2023-03-09 18:02:56 +05:30
examples Fix markdown 2021-04-05 07:56:54 +05:30
src Expose toFold from Fold.Tee 2023-03-09 18:02:56 +05:30
targets Add some benchmark suites to infinite_grp 2023-03-09 17:56:02 +05:30
test Disable Windows hanging test cases (#2314) 2023-03-08 00:55:13 +05:30
.ghci Add .ghci to use -fobject-code option 2021-01-18 12:48:35 +05:30
.gitignore Update .gitignore 2022-02-04 08:02:40 +05:30
.hlint.ignore Fix test cases for StreamD/StreamK split up 2023-02-06 22:09:46 +05:30
.hlint.yaml Categorize o-1/o-n benchmarks correctly 2023-03-09 17:56:02 +05:30
.packcheck.ignore Keep only two sdist builds 2022-10-12 22:33:58 +05:30
appveyor.yml Update the stack resolver and keep versions DRY 2022-03-02 23:49:51 +05:30
cabal.project Rename parseKChunks to chunkParse 2023-02-16 10:31:19 +05:30
cabal.project.coverage Extract streamly-core out of streamly 2022-03-10 01:25:49 +05:30
cabal.project.doctest Use StreamD by default, expose StreamK as separate module 2023-02-06 22:09:26 +05:30
cabal.project.ghc-head Upgrade lockfree-queue to version 0.2.4 2022-08-28 01:37:46 +05:30
cabal.project.hpc-coveralls Update hpc-coveralls git revision 2021-06-15 17:53:20 +05:30
cabal.project.O0 Add a repl script in "bin" 2022-08-21 00:07:05 +05:30
cabal.project.packdiff Update the project file for the packdiff CI 2023-03-04 23:58:06 +05:30
cabal.project.report Update packdiff and streamly-process version in cabal.project.* (#2239) 2023-01-19 18:28:09 +05:30
cabal.project.streamly Remove streamly-core from extra-source files 2022-10-12 22:33:58 +05:30
cabal.project.Werror Extract streamly-core out of streamly 2022-03-10 01:25:49 +05:30
cabal.project.Werror-nocode Fix Werror-nocode build 2022-08-21 00:05:14 +05:30
CHANGELOG.md Fix symlinks pointing into docs/ 2022-04-11 01:16:09 +05:30
configure Bump the version to the next major release target & run autoreconf 2022-05-25 15:10:16 +05:30
configure.ac Bump the version to the next major release target & run autoreconf 2022-05-25 15:10:16 +05:30
CONTRIBUTING.md Symlink a few moved dev files 2022-04-11 01:16:09 +05:30
default.nix Update nix to 22.05 2022-09-05 20:09:47 +05:30
hie.yaml Fix Targets.hs and hie.yaml (#2318) 2023-03-08 00:48:29 +05:30
LICENSE Fold the copyright notices into the LICENSE file 2021-08-09 18:33:30 +05:30
README.md Move README to ProjectRelated docs 2023-01-19 13:55:44 +05:30
Setup.hs Remove doctests 2021-06-21 14:53:18 +05:30
stack.yaml Update the stack file 2023-03-09 18:02:56 +05:30
streamly.cabal Add an API changelog 2023-03-09 18:02:56 +05:30

Streamly: Idiomatic Haskell with C-Like Performance

Gitter chat Hackage

Streamly is a powerful Haskell library that provides developers with the essential building blocks to create safe, scalable, modular, and high-performance software. With Streamly, developers can enjoy the benefits of Haskell's type safety while leveraging C-like program performance. Streamly offers a comprehensive range of features, comprising:

  • Haskell's strong type safety.
  • C-program-like performance capabilities.
  • Flexible, modular building blocks.
  • Idiomatic functional programming.
  • Fearless, declarative concurrency for seamless parallel execution.
  • A collection of ecosystem libraries for fast and efficient development.

Check out the Streamly Setup and Usage Guide and Quick Overview for an introduction to the library. For more detailed documentation, visit the Haskell Streamly website.

Blazing Fast

Streamly delivers C-like speed in Haskell by fusing stream pipelines using the stream-fusion technique, resulting in compiled code that is equivalent to handwritten C code, eliminating intermediate allocations and function calls.

For a comprehensive comparison of Streamly to other Haskell streaming libraries, check out our streaming benchmarks page. In fact, Streamly's fused loops can be up to 100 times faster than those of libraries without stream fusion.

Declarative Concurrency

Streamly introduces declarative concurrency to standard functional streaming abstractions. Declarative concurrency abstracts away the low-level details of concurrency management, such as locks and threads, and allows for easier and safer parallelization of code. For example, with Streamly you can do things like repeat actions concurrently to generate a stream of results, map functions concurrently on a stream, and combine multiple streams concurrently to create a single output stream.

Unified API

Streamly provides a comprehensive and unified API for basic programming needs, covering a wide range of areas including streaming, concurrency, logic programming, reactive programming, pinned and unpinned arrays, serialization, builders, parsers, unicode processing, file-io, file system events, and network-io. By unifying functionality from disparate Haskell libraries, Streamly simplifies development while delivering equivalent or improved performance. Additionally, the complexity of handling combinations of lazy, strict, bytestring, and text is eliminated by using streams for lazy evaluation, and by generalizing bytestring and text to arrays.

Check out Streamly's documentation for more information about Streamly's features.

Batteries Included

In addition to the fundamental programming constructs, Streamly also provides higher-level functionality through supporting packages such as streamly-process, streamly-shell, and streamly-coreutils that are essential for general programming tasks. Check out the streamly-examples repository for some program snippets.

Highly Modular

Traditionally, you must choose between modularity and performance when writing code. However, with Haskell Streamly, you can have the best of both worlds. By taking advantage of GHC's stream fusion optimizations (such as case-of-case and spec-constr), Streamly achieves performance comparable to an equivalent C program while still allowing for highly modular code.

Credits

The following authors/libraries have influenced or inspired this library in a significant way:

Please see the credits directory for a full list of contributors, credits and licenses.

Licensing

Streamly is an open source project available under a liberal BSD-3-Clause license

Contributing to Streamly

As an open project we welcome contributions:

Getting Support

Professional support is available for Streamly: please contact support@composewell.com.

You can also join our community chat channel on Gitter.