Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Kyle McKean
@mckeankylej
Hey if I wanted to use chomp on an iterator for the input stream is that possible?
I saw you have a pr for it. I would love to beta test that pr.
Kyle McKean
@mckeankylej
@m4rw3r Am I the only person to have ever posted in here?
Martin Wernstål
@m4rw3r
@mckeankylej Oh wow, sorry, seems like the notification email ended up in the spam folder. The PR for reading from an iterator requires some kind of backing storage, optimal would be some kind of rope-like structure which can read chunks from the iterator and then only hold on to the parts which the parser actually ends up using. For the moment the best way is to use a buffer and fill that from the iterator and incrementally parse, it will probably be faster in many cases unless the parser discards large portions of the input.