From 32999cb6f60ec89099f1f5295038cfeca2fb106a Mon Sep 17 00:00:00 2001 From: Adam Joseph Date: Sat, 11 Mar 2023 02:19:55 -0800 Subject: docs(tvix/eval): suggested layout adjustment to VM loop diagram Change-Id: I5467cd66801ad8fe6c4ec0ae337763f1762cea1c Reviewed-on: https://cl.tvl.fyi/c/depot/+/8252 Reviewed-by: tazjin Tested-by: BuildkiteCI Autosubmit: Adam Joseph --- tvix/eval/docs/vm-loop.md | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/tvix/eval/docs/vm-loop.md b/tvix/eval/docs/vm-loop.md index bbe02a0866e5..6266d34709cb 100644 --- a/tvix/eval/docs/vm-loop.md +++ b/tvix/eval/docs/vm-loop.md @@ -200,21 +200,21 @@ suspension (as a result of which control is returned to the outer loop), or until the generator is done and yields a value. ``` - ┏━━━━━━━━━━━━━┓ [Done] + ┏━━━━━━━━━━━━━┓ ◄──┨ return true ┃ ◄───────────────────╮ ┗━━━━━━━━━━━━━┛ │ │ - │ + [Done] │ ╭──────────────────┴─────────╮ - ╭───────┤ inspect generator response │ - │ ╰──────────────────┬─────────╯ - ┏━━━━━━━━┷━━━━━━━━┓ │ -──►┃ gen.resume(msg) ┃ │[Yielded] - ┗━━━━━━━━━━━━━━━━━┛ │ - ▲ ╭──────┴─────╮ - │ [yes] │ same-frame │ - ╰───────────────────┤ request? │ - ╰──────┬─────╯ + │ inspect generator response │◄────────────╮ + ╰──────────────────┬─────────╯ │ + [yielded] │ ┏━━━━━━━━┷━━━━━━━━┓ + │ ┃ gen.resume(msg) ┃◄── + ▼ ┗━━━━━━━━━━━━━━━━━┛ + ╭────────────╮ ▲ + │ same-frame │ │ + │ request? ├────────────────╯ + ╰─────┬──────╯ [yes] ┏━━━━━━━━━━━━━━┓ │ ◄──┨ return false ┃ ◄──────────────────╯ ┗━━━━━━━━━━━━━━┛ [no] -- cgit 1.4.1