3 ms·
Is this sth like linq in c#? Declarative programming over arbitrary structures? From skimming the examples i don't really see the advertised incremental aspect,
by polskibus 6y ago
Is this sth like linq in c#? Declarative programming over arbitrary structures? From skimming the examples i don't really see the advertised incremental aspect, could someone explain it a bit more?
- namibj 6y agoIt's partially inspired by Linq, so the similarity you see is expected. It's not really arbitrary structures so much, though you're mostly free in what record type you use in a relation (structs and tagged enums are typical, though). The incremental part is that you can feed it changes to the input (additions/retractions of facts) and get changes to the outputs back with low latency (you can alternatively just use it to keep an index up-to-date, where you can quickly look up based on a key (like a materialized view in SQL)). This [0] section in the readme of the underlying incremental dataflow framework may help get the concept across, but feel free to follow up if you're still not seeing the incrementality. [0]: https://github.com/TimelyDataflow/differential-dataflow#an-example-counting-degrees-in-a-graph https://github.com/TimelyDataflow/differential-dataflow#an-e...