@PolyWolf I might be developing exactly the same thing, as a query system architecture for a very-very-WIP Rust compiler :3
https://codeberg.org/bal-e/krabby/pulls/19
(the PR has been on hold while I was debugging data races, which spun into developing a concurrent memory reclaimer, https://codeberg.org/bal-e/housekeeping, which also had data races, but I've figured them out now)

This PR introduces `krabby_query`, a subcrate adding a rustc-like query system. A query system brings several advantages over the previous push-based task architecture: 1. If a task has a dependency, it can force that dependency to be computed immediately. This adds a demand-driven factor to t...
@bal4e This is really cool!! Lots of sync primitives being built ground-up, I've been planning to just re-use wherever possible lol. Sometimes the speed demands it tho!
Also I like all ur documentation, I haven't put nearly as much (or at all) effort into mine...