[Haskell-cafe] [ANN] stdio- - A simple and high performance IO toolkit for Haskell

寒东 winterland1989 at gmail.com
Sat Feb 16 12:23:26 UTC 2019

Dear Haskellers!

We're pleased to announce the first public version of stdio, a simple
and high performance IO toolkit for Haskell. This package provides a
simple and high performance IO toolkit for Haskell, including packed
vectors, unicode texts, socket, file system, timers and more!

The Hackage link is http://hackage.haskell.org/package/stdio-
This project started as an experiment of combining libuv with GHC
runtime, the result is recorded in our Haskell 2018 paper A
High-Performance Multicore IO Manager Based on libuv (Experience
Report) <https://github.com/haskell-stdio/stdio/blob/master/docs/A%20High-Performance%20Multicore%20IO%20Manager%20Based%20on%20libuv%20(Experience%20Report).pdf>
, which is pretty good comparing to the old IO manager in base. The IO
manager part is stable and fast now.

The package also provides new vector and new text type based on
ByteArray# primitive, which is not limited to pinned memory. As GHC
8.6 release have added unaligned access primitives to ByteArray#, We
think it's a good to release our work. The new vector and text
(internal using UTF-8 encoding)'s performance is comparative to
bytestring and text ones, and we strive to provide the similiar API.
Some unicode processing such as normalization and casefolding is also
provide, based on a C unicode library utf8rewind

To make our package more useful, we rebuild Builder and Parser type
from groud, add TCP socket and filesystem support, so that user can
start using it to do some simple task, such as parsing a CSV file or
starting a TCP server and communicate in protocols. We also provide
high performance timer and logger module, which is useful in practical
engineering tasks.

For installation guide and examples, please see the project's README.
As we (I and Tao He) both are not native english speakers, the
document quality is not as satisfying as it can be, please help! If
you meet issues with installing, bugs, questions, please fill an issue
on github: https://github.com/haskell-stdio/stdio.

Happy hacking as always!

Dong Han, Tao He

Feb 16. 2019
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20190216/53b267f5/attachment.html>

More information about the Haskell-Cafe mailing list