This repository has been archived by the owner on Oct 27, 2024. It is now read-only.
forked from salsa-rs/salsa
-
Notifications
You must be signed in to change notification settings - Fork 0
Slot no more #4
Open
Veykril
wants to merge
34
commits into
rust-analyzer:rust-analyzer-salsa
Choose a base branch
from
Veykril:slot-no-more
base: rust-analyzer-salsa
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Slot no more #4
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Instead of grabbing the arc, just pass back an `&mut Runtime`. The eventual goal is to get rid of the lock on the `set` pathway altogether, but one step at a time.
Because dash-map isn't indexable, we need to store a copy of the key and have two separate maps. I expect to iterate on the best data structures here.
In cycle.md, change `[salsa::Cycle]` to `salsa::Cycle` so mdbook doesn't get confused and think there is a broken Markdown link. The warning was as follows: ``` warning: Potential incomplete link ┌─ cycles.md:3:131 │ 3 │ By default, when Salsa detects a cycle in the computation graph, Salsa will panic with a [`salsa::Cycle`] as the panic value. The [`salsa::Cycle`] structure that describes the cycle, which can be useful for diagnosing what went wrong. │ ^^^^^^^^^^^^^^^^ Did you forget to define a URL for ``salsa::Cycle``? │ = hint: declare the link's URL. For example: `[`salsa::Cycle`]: http://example.com/` ``` After fixing this problem, there are no more mdbook warnings.
295: Make storage fields of #nameGroupStorage private r=nikomatsakis a=mheiber This change resolves a fixme that referenced salsa-rs#120. This change breaks no tests, and, if I understand correctly, does not affect user-facing API. Here is the difference for the `HelloWorldGroupStorage__` struct generated from macros in the `hello_world` example: **Before:** ```rs struct HelloWorldGroupStorage__ { pub input_string:std::sync::Arc<<InputStringQuery as salsa::Query> ::Storage> ,pub length:std::sync::Arc<<LengthQuery as salsa::Query> ::Storage> , } ``` **After:** ```rs struct HelloWorldGroupStorage__ { input_string:std::sync::Arc<<InputStringQuery as salsa::Query> ::Storage> ,length:std::sync::Arc<<LengthQuery as salsa::Query> ::Storage> , } ``` Co-authored-by: Maxwell Elliot Heiber <[email protected]>
294: Fix mdbook warning re "Potential incomplete link" r=nikomatsakis a=mheiber In cycle.md, change `[salsa::Cycle]` to `salsa::Cycle` so mdbook doesn't get confused and think there is a broken Markdown link ("warning: Potential incomplete link"). After fixing this problem, there are no more mdbook warnings when running `mdbook build` in the "book" directory. Co-authored-by: Maxwell Elliot Heiber <[email protected]>
296: Slot no more: overhauled internal algorithm r=nikomatsakis a=nikomatsakis This is the overhauled implementation that avoids slots, is more parallel friendly, and paves the way to fixed point and more expressive cycle handling. We just spent 90 minutes going over it. [Some rough notes are available here,](https://hackmd.io/6x9f6mavTRS2imfG96tP5A) and a video will be posted soon. You may find the [flowgraph useful](https://raw.githubusercontent.com/nikomatsakis/salsa/slot-no-more/book/src/derived-query-read.drawio.svg). Co-authored-by: Niko Matsakis <[email protected]>
297: Fix netlify deployment r=nikomatsakis a=nikomatsakis I think I just configured this in a pretty bogus way Co-authored-by: Niko Matsakis <[email protected]>
292: Document how to tune Salsa r=nikomatsakis a=mheiber Document how to tune Salsa > Re the CI failure: I couldn't repro locally with the same command. On CI, mdbook complains it can't find `./rfcs/RFC0007-Opinionated-cancelation.md` Co-authored-by: Maxwell Elliot Heiber <[email protected]>
and add a test that we do so!
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.