creationix / rando

9 stars 0 forks source link

Implement random-access parser #3

Open creationix opened 1 month ago

creationix commented 1 month ago

The current Rando.parse is a simple AOT parser, we need an implementation for random-access parsers for languages we care about.

There are two levels of random-access parsers we can build.

One is non-streaming fetching, but lazy parsing (fetch the entire data as a single buffer/string and parse on-demand).

The other is lazy from end-to-end that enables even downloading the document on-demand. This needs a few layers: