from Hacker News

Parsing with Haskell and Attoparsec

by bhoflack on 8/30/12, 10:25 AM with 8 comments

  • by lmm on 8/30/12, 12:25 PM

    So the Haskell's not actually fully parsing the data, it's returning a lazy value that will do some of the work later? It's a perfectly good approach, but it means the performance comparison isn't really fair - the Haskell approach would slow down the rest of your program if you were actually using the value you parsed.

    Comparing the line count between a program that uses a library and one that parses by hand is also somewhat unfair.

  • by batgaijin on 8/30/12, 12:17 PM

    If you have non length variable ASCII would you still want to use Attoparsec or Data.Binary?