Skip to content

Investigation on dynamic follow sets #243

@pablogsal

Description

@pablogsal

I am doing some toy implementation of the dynamic follow sets described in the paper (to better understand them) and what I am experiencing is that keeping the tree to query the parse records using the proposed dynfollow and follow_at demands a considerable amount of extra memory. In my naive implementation for a small toy grammar of a calculator (done by hand) it consumes 120% more space when parsing some nested expressions.

I am doing some other experiments to see if I can reduce this by making it smarter (or maybe I did some error in my toy implementation. which is possible) but these results may suggest that, even if Guido's initial implementation does not use them at all already, we may not even want to consider using them in the future (even in a second pass) because with our grammar the memory consumption can go crazy very soon.

This is just some initial notes on this approach on the paper, though. I wanted to open this issue to collect future discussions about this in one place.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions