Skip to content

Commit

Permalink
Prepare for 0.5.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
s-arash committed Aug 5, 2023
1 parent 996ab4c commit 106c4c2
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 8 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.MD
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## 0.5.0

- Parallel evaluation: with introduction of `ascent_par!` and `ascent_run_par!` macros, Ascent programs can utilize multiple CPU cores to speed up evaluation.

- Made imporvements to handling of rules that start with `if`, `let`, or `for` (they can be simple joins).

## 0.4.0
- Reduced the size of generated code for a rule with N dynamic relations from O(N * 2^N) to O(N^2);
dramatically improving compile times for some programs.
Expand Down
7 changes: 5 additions & 2 deletions README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -167,11 +167,14 @@ You can find more about macros in Ascent macros [here](MACROS.MD).
- The feature **`wasm-bindgen`** allows Ascent programs to run in WASM environments.
- **`struct`** declarations can be added to the top of `ascent!` definitions. This allows changing the
name of the generated type and introduction of type/lifetime parameters and constraints.
name and visibility of the generated type and introduction of type/lifetime parameters and constraints.
```Rust
ascent! {
struct GenericTC<N: Clone + Eq + Hash>;
relation edge(N, N);
// ...
}
```
```
*Hint*: If you get a "private type ... in public interface (error E0446)" warning, you can fix it by
making the generated Ascent type private, as done in the above example.
6 changes: 3 additions & 3 deletions ascent/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ascent"
version = "0.4.0"
version = "0.5.0"
edition = "2021"
rust-version = "1.66" # the CI (../.github/workflows/rust.yml) toolchain version must match this
authors = ["Arash Sahebolamri"]
Expand All @@ -16,8 +16,8 @@ readme = "../README.MD"

[dependencies]

ascent_macro = { version = "=0.4.0", path = "../ascent_macro" }
ascent_base = { version = "=0.4.0", path = "../ascent_base" }
ascent_macro = { version = "=0.5.0", path = "../ascent_macro" }
ascent_base = { version = "=0.5.0", path = "../ascent_base" }
rustc-hash = "1.1"
nohash-hasher = "0.2.0"
hashbrown = {version = "0.14", features = ["raw", "rayon"]}
Expand Down
2 changes: 1 addition & 1 deletion ascent_base/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ascent_base"
version = "0.4.0"
version = "0.5.0"
edition = "2021"
authors = ["Arash Sahebolamri"]
repository = "https://github.com/s-arash/ascent"
Expand Down
4 changes: 2 additions & 2 deletions ascent_macro/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ascent_macro"
version = "0.4.0"
version = "0.5.0"
edition = "2021"
authors = ["Arash Sahebolamri"]
repository = "https://github.com/s-arash/ascent"
Expand All @@ -15,7 +15,7 @@ proc-macro = true
[dependencies]
syn = { version = "1.0", features = ["derive", "full", "extra-traits", "visit-mut"] }
quote = "1.0"
ascent_base = { version = "=0.4.0", path = "../ascent_base" }
ascent_base = { version = "=0.5.0", path = "../ascent_base" }
proc-macro2 = "1.0"
itertools = "0.10"
petgraph = "0.6.0"
Expand Down

0 comments on commit 106c4c2

Please sign in to comment.