scala-parser-combinators vs fastparse #24
Description
the following exchange between @odersky and @lihaoyi occurred on scala-debate recently:
@odersky Parser combinators is the same thing. It would be great to have a separate module which
improves on the current state.@lihaoyi If you really are interested, such a thing exists http://lihaoyi.github.io/fastparse/ It's almost drop-in except a lot better to use. Not to mention 4-10x slowdown vs hand-rolled instead of the scala-parser-combinator's 400x
@odersky It would be great to see fastparse as a module in the stdlib! If you want to contribute it that would be much appreciated. The best way to get things rolling is via Slip: https://github.com/scala/slip
some further discussion on Gitter:
@soc I'm not sure I understood his plan. Is it replacing the actual implementation of scala.util.combinators? Is it getting rid of scala.util.combinators "preferred" status in terms of being an official module?
@SethTisue I don’t know either
@tpolecat you may register my vote for no preferred parser combinator library
@odersky I would like to encourage contributions, of whatever form. There's no plan yet. It depends where people want to take it. Anybody who takes initiative has my vote.
@SethTisue I’m definitely interested in discussing it. if Haoyi’s stuff is strictly superior to the old library in every important respect (Haoyi certainly seems to think it is! and if some interested folks could confirm that, what great news that would be), then scala-parser-combinators could be mothballed. although scala-parser-combinators is community-maintained these days, the Scala maintainers still have an interest in its status given that scala-parser-combinators is in the scala package and under the scala org on GitHub. and in the Artima book.
@odersky Who's maintaining scala-parser-combinators? It would be good to get their input as well.
@SethTisue Antoine Gourlay (@gourlaysama)