26 Commits

Author SHA1 Message Date
Chris Krycho
3111eda07a Ch. 17: create a diagram showing blocked parallelism 2024-10-07 13:34:57 -06:00
Chris Krycho
8f63245b5c Ch. 17: fix task names in Figure 17-2 2024-10-07 12:47:53 -06:00
Chris Krycho
06a3a7194a Merge main into async-chapter 2024-10-07 12:47:53 -06:00
Chris Krycho
81c42b5c54 Simplify dot file for Figure 4-5
Get rid of things which are not contributing meaningfully to the
resulting SVG output.
2024-10-01 09:41:37 -06:00
Chris Krycho
dc67ffe78f Add a short discussion of assignment and ownership in ch. 04
Add a short new section showing how assignment to a mutable variable
causes an existing *owned* binding to be freed immediately. Create a new
code sample and a new diagram to illustrate the behavior.

Fixes #4001.
2024-10-01 09:36:32 -06:00
Chris Krycho
beac73a818 Ch. 17: introduce diagrams for Pin and Unpin. 2024-09-25 15:17:16 -06:00
Chris Krycho
42b59635d2 Ch. 17: General cleanup and edits to esp. 17.05
- Introduce diagrams into 17.05 to break up the wall of text and make it
  easier to visualize.
- Extract the state machine code to make it easier to reference.
- Standardize on `await` instead of `.await` for inline code references.
- Move note about `race` and `select` up to 17.01 since the text now
  references it there, and update the text in 17.03 to account for
  already having introduced the function.
- Fix up a number of code samples to avoid showing `extern crate trpl;`.
- Rewrite the transition between 17.04 and 17.05 to account for having
  restructured the chapter.
- Rework the example code in 17.05 to refer to the `page_title` example
  from the rewritten 17.01 instead of the (now-removed) `hello`.
- When discussing the `Future::poll` method, explicitly address the `cx`
  parameter: note what it is used for, and then move on.
2024-09-25 08:49:28 -06:00
Chris Krycho
a42f27bd55 Ch. 17: Fix up diagrams
- Set their view boxes to the original height and width, so they are
  guaranteed to present correctly.
- For Figure 17-02, use the trick of adding a hidden node and hidden
  arrow to it in “Task 2” to align the two boxes.
2024-08-24 08:19:35 -06:00
Chris Krycho
472f152eae Ch. 17: fix diagrams and embed them in the text
- Swap the ordering to match the order in the text (concurrent is first,
  at least for now).
- Make them go left-to-right instead of top-to-bottom for compactness in
  the text.
- Fix rendering issues resulting from the VS Code extension doing things
  that normal `dot` does not, for who knows what reasons.
2024-07-26 13:39:07 -06:00
Chris Krycho
cfaf187bbc Ch. 17: diagrams for concurrent and parallel execution 2024-07-25 15:29:40 -06:00
Carol (Nichols || Goulding)
cdb13945ac Fix #1855 - incorporate new reference cycle diagram 2020-12-09 21:30:50 -05:00
Steve Klabnik
1fedfc4b96 move the book to the top level 2018-11-20 13:45:05 -05:00
Carol (Nichols || Goulding)
af1bb6cc35 Move to new directory structure 2017-03-03 11:59:48 -05:00
steveklabnik
4f2dc56485 move most stuff into second-edition 2017-03-03 11:45:16 -05:00
Carol (Nichols || Goulding)
3bfc407e6e halp can't get arrow pointing the way i want
I cannot for the life of me get the arrow currently pointing from a ->
10 to point from 10 -> a instead, dir=back has no effect, changing the
order makes the whole graph go kablooey, i even tried hand-editing the
svg and i cannot
2017-03-02 20:54:26 -05:00
Carol (Nichols || Goulding)
5f6113d586 wrong way arrow 2017-03-02 20:41:02 -05:00
Carol (Nichols || Goulding)
87609b12b8 graphviz is terrible 2017-03-02 20:09:19 -05:00
Carol (Nichols || Goulding)
07310e5fcd Add more figures 2017-03-02 19:02:42 -05:00
Carol (Nichols || Goulding)
a17e7caf2a Add a diagram for Cons with Box 2017-03-02 17:40:18 -05:00
Carol (Nichols || Goulding)
0e27654078 Infinite type illustration 2017-03-02 17:22:51 -05:00
Carol (Nichols || Goulding)
7d41f6caa3 Swap the labels of s1 and s2 in 4-3 to better match 4-2
Fixes #282.
2016-11-10 17:58:24 -05:00
Carol (Nichols || Goulding)
b8e15c8341 Modify the dot files with the changes to the SVGs 2016-10-03 22:40:19 -04:00
Carol (Nichols || Goulding)
591e8a0aea Add images that only had placeholders 2016-09-06 21:08:54 -04:00
Carol (Nichols || Goulding)
ed557992cb Rename images to be in nostarch's convention
And switch images 3 and 4, they appear in the opposite order
2016-09-06 17:39:56 -04:00
Pyry Kontio
2787481310 Made images high-DPI-compatible. 2016-02-29 03:07:06 +09:00
Steve Klabnik
3c1bc560f6 Add dot images
These aren't the best, but they're a start.
2016-01-13 16:44:47 -05:00