TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Parsing with Haskell and Attoparsec

77 点作者 bhoflack超过 12 年前

2 条评论

lmm超过 12 年前
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.<p>Comparing the line count between a program that uses a library and one that parses by hand is also somewhat unfair.
评论 #4454444 未加载
评论 #4454490 未加载
评论 #4454317 未加载
评论 #4455359 未加载
batgaijin超过 12 年前
If you have non length variable ASCII would you still want to use Attoparsec or Data.Binary?