How to write a really fast parser without going insane
serpentine.com
serpentine.com
I'm glad to see this improvement being made in the LL parsers in Haskell. They're much more natural to write than parsers with a bottom-up parser generator. I believe Happy is the major parser-generator for Haskell and since it uses YACC-like syntax for the grammar it starts to feel like I'm writing C into my Haskell code. Parser-generators always feel a bit ugly, but they usually yield the most efficient and fastest code.
[1] http://hackage.haskell.org/package/criterion
bryan, if you see this, more info on what makes that lib so fast would be greatly appreciated!
It's worth mentioning that Criterion can be used for anything that can be called via the FFI -- I'm using it for benchmarking Python libraries, for example.
[1] http://hackage.haskell.org/package/progression
[2] http://donsbot.wordpress.com/2010/02/23/modern-benchmarking-...
Although I'm not sure if he's pushed the most recent changes yet.