{
  "id": "bbg-p0337-concurrency-runtime-and-scheduling-concurrency",
  "title": "CPython Runtime Execution Path",
  "chapter": "concurrency-runtime-and-scheduling",
  "batch": "29",
  "rank": 288,
  "sourcePage": 337,
  "sourcePointer": "p. 337",
  "status": "accepted",
  "reviewerStatus": "reviewed",
  "fidelityScore": 0.9,
  "canvas": {
    "width": 960,
    "height": 640
  },
  "fireworksTechGraph": {
    "style": "style-1-flat-icon",
    "diagramType": "flowchart",
    "topologyNotes": [
      "source page render inspected",
      "extracted page text inspected",
      "source page render inspected",
      "preserve Python runtime sequence: source file, in-memory compile, bytecode and pyc cache, import system, module initialization, virtual machine, interpreted bytecode run",
      "omit source branding and code-editor artwork"
    ],
    "publicBoundary": [
      "original vector output",
      "no source pixels",
      "no source mark or long wording"
    ]
  },
  "callouts": [],
  "sourceReview": {
    "conceptAnchors": [
      "concept: source file",
      "concept: compiler",
      "concept: bytecode",
      "concept: pyc cache",
      "concept: import system",
      "concept: bytecode interpreter"
    ],
    "labelSource": "curated",
    "semanticStatus": "reviewed"
  },
  "groups": [
    {
      "id": "source",
      "label": "Source and artifacts",
      "x": 64,
      "y": 126,
      "w": 244,
      "h": 350
    },
    {
      "id": "runtime",
      "label": "CPython runtime",
      "x": 374,
      "y": 126,
      "w": 322,
      "h": 350
    },
    {
      "id": "result",
      "label": "Run",
      "x": 760,
      "y": 126,
      "w": 138,
      "h": 350
    }
  ],
  "shapes": [
    {
      "id": "py",
      "kind": "rect",
      "label": "Source file",
      "detail": ".py",
      "x": 112,
      "y": 158,
      "w": 122,
      "h": 52,
      "tone": "blue"
    },
    {
      "id": "pyc",
      "kind": "rect",
      "label": "PYC cache",
      "detail": "cached bytecode",
      "x": 112,
      "y": 286,
      "w": 122,
      "h": 52,
      "tone": "purple"
    },
    {
      "id": "deps",
      "kind": "rect",
      "label": "Modules",
      "detail": "stdlib packages",
      "x": 112,
      "y": 398,
      "w": 122,
      "h": 52,
      "tone": "orange"
    },
    {
      "id": "compile",
      "kind": "rect",
      "label": "Compiler",
      "detail": "in memory",
      "x": 450,
      "y": 158,
      "w": 122,
      "h": 52,
      "tone": "green"
    },
    {
      "id": "bytecode",
      "kind": "rect",
      "label": "Bytecode",
      "detail": "instructions",
      "x": 450,
      "y": 252,
      "w": 122,
      "h": 52,
      "tone": "teal"
    },
    {
      "id": "imports",
      "kind": "gateway",
      "label": "Import system",
      "detail": "load deps",
      "x": 448,
      "y": 342,
      "w": 126,
      "h": 74,
      "tone": "purple"
    },
    {
      "id": "vm",
      "kind": "rect",
      "label": "Virtual machine",
      "detail": "interpreter",
      "x": 776,
      "y": 286,
      "w": 106,
      "h": 58,
      "tone": "gray"
    },
    {
      "id": "output",
      "kind": "rect",
      "label": "Program run",
      "detail": "effects",
      "x": 776,
      "y": 398,
      "w": 106,
      "h": 58,
      "tone": "green"
    }
  ],
  "connectors": [
    {
      "from": "py",
      "to": "compile",
      "label": "compile",
      "flow": "main"
    },
    {
      "from": "compile",
      "to": "bytecode",
      "label": "emit",
      "flow": "data"
    },
    {
      "from": "bytecode",
      "to": "pyc",
      "label": "cache",
      "flow": "data",
      "dashed": true
    },
    {
      "from": "deps",
      "to": "imports",
      "label": "import",
      "flow": "control"
    },
    {
      "from": "imports",
      "to": "bytecode",
      "label": "load",
      "flow": "data"
    },
    {
      "from": "bytecode",
      "to": "vm",
      "label": "execute",
      "flow": "main"
    },
    {
      "from": "vm",
      "to": "output",
      "label": "run",
      "flow": "main"
    }
  ]
}
