Skip to content

Rework invariant post #11

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

Open
wants to merge 1 commit into
base: feature/invariant-post
Choose a base branch
from

Conversation

moea
Copy link

@moea moea commented Jul 19, 2020

I made some far-reaching changes, as I was finding it difficult to include a lot of background while keeping the post size manageable. I settled on having the post talk almost entirely about how we're using / planning to use invariants, and targeting it at people w/ a degree of Datalog familiarity. It doesn't cover too many broader Datopia details that are covered in other posts.

We could have follow-up posts which talk about using invariant as an independent library when we've got a more solid API or other working examples - the idea with this one is to provoke interest in people w/ the relevant background knowledge.

Minor stuff:

  • I shortened the balance invariant, and fixed an issue w/ bigdec/long comparison - scratch gist here
  • datacoin -> lambdacoin, as there's apparently a cryptocurrency called datacoin

Let me know if you think this doesn't flow, or there's stuff you think ought to be covered.

@moea moea requested a review from whilo July 19, 2020 14:01
Copy link

@whilo whilo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Except for the typo below this is very well written and focused to target audience. Thanks for taking the time to rewrite it!

deterministic[^1] --- and upper bounds on a query's resource
consumption are obtainable in principle via query planning.

[^1]: While pure Datalog is non-deterministic, Datahike and Datomic
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Datalog is deterministic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants