Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support importing rules into a program #38

Open
QuinnWilton opened this issue May 16, 2023 · 0 comments
Open

Support importing rules into a program #38

QuinnWilton opened this issue May 16, 2023 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@QuinnWilton
Copy link
Contributor

QuinnWilton commented May 16, 2023

This is preliminary work for defining a standard library, and just boils down to supporting a simple syntax for importing rules into a program. Note that Datalog has no built-in support for code reuse or for any sort of abstraction, and so we'll need to come up with such a system ourselves.

I think a decent starting point would be to essentially have higher-order rules that are parameterized over input and output relations. Invoking them would generate rules that search over the specified input relations, inserting into the specified output relations. This isn't as expressive as we'll want eventually, but does cover everything we require for our initial suite of CRDTs.

More discussion on what exactly this looks like is welcome.

ETA: 2023-12-31

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant