[Haskell-cafe] Announcing binary-parsers

韩冬(基础平台部) handongwinter at didichuxing.com
Fri Sep 23 02:47:41 UTC 2016

Hi all,

I am happy to announce binary-parsers. A ByteString parsing library built on binary. I borrowed lots of design/tests/document from attoparsec so that i can build its shape very quickly, thank you bos! And thanks to binary's excellent design, the codebase is very small(<500 loc).

From my benchmark, it’s insanely fast, it outperforms attoparsec by 10%~30% in aeson benchmark. it’s also slightly faster than scanner(a non-backtracking parser designed for speed) in http request benchmark. I’d like to ask you to give it a shot if you need super fast ByteString parsing.

These parsers are just binary's Get monads, so you can seamlessly combine them with combinators from binary package. You can now write more complex Binary instances using comprehensive combinators, with serialisation packages like blaze-texual. all these goodies come for free!
Happy hacking!

Github: https://github.com/winterland1989/binary-parsers

Hackage: http://hackage.haskell.org/package/binary-parsers

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20160923/0bdce50b/attachment.html>

More information about the Haskell-Cafe mailing list