[Haskell-cafe] performance question

Brandon Allbery allbery.b at gmail.com
Wed Feb 13 19:17:08 CET 2013


On Wed, Feb 13, 2013 at 12:46 PM, David Thomas <davidleothomas at gmail.com>wrote:

> The fact that parsec and attoparsec exist and can be pressed into service
> with reasonable performance (I think?) on tasks for which regexps are
> suitable is probably another big part of the reason no one's done it yet.
>  I expect much of the plumbing would wind up looking a lot like those,
> actually.
>

When I started out with Haskell, one of my early thoughts was about
designing a DSL for Icon-style pattern matching; I dropped it when I
realized I was reinventing (almost identically, at least for its lower
level combinators) Parsec.  Nothing really to be gained except from a
tutelary standpoint.  And the mapping from Icon patterns to regex patterns
is pretty much mechanical if you phrase it so you aren't executing code in
the middle.

-- 
brandon s allbery kf8nh                               sine nomine associates
allbery.b at gmail.com                                  ballbery at sinenomine.net
unix, openafs, kerberos, infrastructure, xmonad        http://sinenomine.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20130213/0e0f2749/attachment.htm>


More information about the Haskell-Cafe mailing list