From 869ec47883e89de89d92efcfc99744c488153d67 Mon Sep 17 00:00:00 2001 From: Frank McSherry Date: Wed, 8 May 2024 13:35:12 -0400 Subject: [PATCH] Correct defects in getting started (#484) --- mdbook/src/chapter_0/chapter_0_0.md | 4 ++-- mdbook/src/chapter_0/chapter_0_1.md | 4 ++-- mdbook/src/chapter_0/chapter_0_3.md | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/mdbook/src/chapter_0/chapter_0_0.md b/mdbook/src/chapter_0/chapter_0_0.md index f72ef11d3..406bb5089 100644 --- a/mdbook/src/chapter_0/chapter_0_0.md +++ b/mdbook/src/chapter_0/chapter_0_0.md @@ -25,8 +25,8 @@ version = "0.1.0" authors = ["Your Name "] [dependencies] -timely = "0.11.1" -differential-dataflow = "0.11.0" +timely = "0.12.0" +differential-dataflow = "0.12.0" ``` You should only need to add those last two lines there, which bring in dependencies on both [timely dataflow](https://github.com/TimelyDataflow/timely-dataflow) and [differential dataflow](https://github.com/TimelyDataflow/differential-dataflow). We will be using both of those. diff --git a/mdbook/src/chapter_0/chapter_0_1.md b/mdbook/src/chapter_0/chapter_0_1.md index 5e69289a5..e031fb7aa 100644 --- a/mdbook/src/chapter_0/chapter_0_1.md +++ b/mdbook/src/chapter_0/chapter_0_1.md @@ -34,8 +34,8 @@ fn main() { .inspect(|x| println!("{:?}", x)); }); - // Set an arbitrary size for our organization. - let size = 100; + // Set a size for our organization from the input. + let size = std::env::args().nth(1).and_then(|s| s.parse::().ok()).unwrap_or(10); // Load input (a binary tree). input.advance_to(0); diff --git a/mdbook/src/chapter_0/chapter_0_3.md b/mdbook/src/chapter_0/chapter_0_3.md index d47d6f395..0f16ab4f1 100644 --- a/mdbook/src/chapter_0/chapter_0_3.md +++ b/mdbook/src/chapter_0/chapter_0_3.md @@ -107,7 +107,7 @@ We can then use this probe to limit the introduction of new data, by waiting for This starts to print out a mess of data, indicating not only how long it takes to start up the computation, but also how long each individual round of updates takes. ``` ignore - Echidnatron% cargo run --release --example hello 10000000 + Echidnatron% cargo run --release -- 10000000 Finished release [optimized + debuginfo] target(s) in 0.06s Running `target/release/examples/hello 10000000` 4.092895186s data loaded