-
Notifications
You must be signed in to change notification settings - Fork 157
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
Remove the old Salsa, rename salsa-2022
crate to salsa
#501
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
db75ae0
Remove old salsa
mbrobbel c785111
Rename `salsa-2022` to `salsa`
mbrobbel 5ba40cf
Fix CI and examples
mbrobbel b3838b1
Update book
mbrobbel 0f2d5a5
More book updates and a compile fail test fix
mbrobbel a0d7b0e
Fix book deployment
mbrobbel d0e9b79
Remove references to old selection example
mbrobbel d65914b
Merge branch 'master' into remove-old-salsa
mbrobbel File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,36 @@ | ||
[package] | ||
name = "salsa" | ||
version = "0.17.0-pre.2" # CHECK salsa-macros version | ||
version = "0.18.0" | ||
authors = ["Salsa developers"] | ||
edition = "2018" | ||
edition = "2021" | ||
license = "Apache-2.0 OR MIT" | ||
repository = "https://github.com/salsa-rs/salsa" | ||
description = "A generic framework for on-demand, incrementalized computation (experimental)" | ||
|
||
[dependencies] | ||
arc-swap = "1.4.0" | ||
arc-swap = "1.6.0" | ||
crossbeam = "0.8.1" | ||
crossbeam-utils = { version = "0.8", default-features = false } | ||
dashmap = "5.3.4" | ||
hashlink = "0.8.0" | ||
indexmap = "2" | ||
lock_api = "0.4.7" | ||
log = "0.4.5" | ||
parking_lot = "0.12.1" | ||
rustc-hash = "1.0" | ||
rustc-hash = "1.1.0" | ||
salsa-macros = { path = "components/salsa-macros" } | ||
smallvec = "1.0.0" | ||
oorandom = "11" | ||
salsa-macros = { version = "0.17.0-pre.2", path = "components/salsa-macros" } | ||
|
||
[dev-dependencies] | ||
diff = "0.1.0" | ||
env_logger = "0.9" | ||
linked-hash-map = "0.5.2" | ||
rand = "0.8" | ||
rand_distr = "0.4.3" | ||
derive-new = "0.5.9" | ||
env_logger = "*" | ||
expect-test = "1.4.0" | ||
eyre = "0.6.8" | ||
notify-debouncer-mini = "0.2.1" | ||
ordered-float = "3.0" | ||
parking_lot = "0.12.1" | ||
rustversion = "1.0" | ||
test-log = "0.2.11" | ||
insta = "1.8.0" | ||
trybuild = "1.0" | ||
|
||
[workspace] | ||
members = [ | ||
"components/salsa-macros", | ||
"components/salsa-2022", | ||
"components/salsa-2022-macros", | ||
"examples-2022/calc", | ||
"examples-2022/lazy-input", | ||
"salsa-2022-tests", | ||
] | ||
members = ["components/salsa-macros"] |
This file was deleted.
Oops, something went wrong.
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
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
This file was deleted.
Oops, something went wrong.
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
This file was deleted.
Oops, something went wrong.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,17 @@ | ||
# Plumbing | ||
|
||
{{#include caveat.md}} | ||
|
||
This chapter documents the code that salsa generates and its "inner workings". | ||
We refer to this as the "plumbing". | ||
|
||
## Overview | ||
|
||
The plumbing section is broken up into chapters: | ||
|
||
* The [jars and ingredients](./plumbing/jars_and_ingredients.md) covers how each salsa item (like a tracked function) specifies what data it needs and runtime, and how links between items work. | ||
* The [database and runtime](./plumbing/database_and_runtime.md) covers the data structures that are used at runtime to coordinate workers, trigger cancellation, track which functions are active and what dependencies they have accrued, and so forth. | ||
* The [query operations](./plumbing/query_ops.md) chapter describes how the major operations on function ingredients work. This text was written for an older version of salsa but the logic is the same: | ||
* The [maybe changed after](./plumbing/maybe_changed_after.md) operation determines when a memoized value for a tracked function is out of date. | ||
* The [fetch](./plumbing/fetch.md) operation computes the most recent value. | ||
* The [derived queries flowchart](./plumbing/derived_flowchart.md) depicts the logic in flowchart form. | ||
* The [cycle handling](./plumbing/cycles.md) handling chapter describes what happens when cycles occur. | ||
* The [terminology](./plumbing/terminology.md) section describes various words that appear throughout. | ||
- The [jars and ingredients](./plumbing/jars_and_ingredients.md) covers how each salsa item (like a tracked function) specifies what data it needs and runtime, and how links between items work. | ||
- The [database and runtime](./plumbing/database_and_runtime.md) covers the data structures that are used at runtime to coordinate workers, trigger cancellation, track which functions are active and what dependencies they have accrued, and so forth. | ||
- The [query operations](./plumbing/query_ops.md) chapter describes how the major operations on function ingredients work. This text was written for an older version of salsa but the logic is the same: | ||
- The [maybe changed after](./plumbing/maybe_changed_after.md) operation determines when a memoized value for a tracked function is out of date. | ||
- The [fetch](./plumbing/fetch.md) operation computes the most recent value. | ||
- The [derived queries flowchart](./plumbing/derived_flowchart.md) depicts the logic in flowchart form. | ||
- The [cycle handling](./plumbing/cycles.md) handling chapter describes what happens when cycles occur. | ||
- The [terminology](./plumbing/terminology.md) section describes various words that appear throughout. |
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only caveat here: I feel like maybe we should keep the older book for now. But I am happy to not have the complexity, maybe we can just "clone" the old book into the new book as a subdirectory for the time being or something.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(Doesn't have to be done in this PR)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Filed #503