Your browser sucks, JavaScript disabled! Gunnar's console needs JavaScript and WebAssembly. Git over SSH on port 2222 does not.

nordisk/kleene

docs/overview.svg

<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1180 270" width="1180" height="270" font-family="'DejaVu Sans', 'Segoe UI', sans-serif">
  <defs>
    <linearGradient id="board" x1="0" y1="0" x2="0" y2="1">
      <stop offset="0" stop-color="#0b1c2e"/>
      <stop offset="1" stop-color="#06111d"/>
    </linearGradient>
    <linearGradient id="chip" x1="0" y1="0" x2="0" y2="1">
      <stop offset="0" stop-color="#14384f"/>
      <stop offset="1" stop-color="#0e2a3e"/>
    </linearGradient>
    <linearGradient id="slot" x1="0" y1="0" x2="0" y2="1">
      <stop offset="0" stop-color="#123448"/>
      <stop offset="1" stop-color="#0a2032"/>
    </linearGradient>
    <marker id="tip" viewBox="0 0 10 10" refX="8" refY="5" markerWidth="4" markerHeight="4" orient="auto">
      <path d="M0 0 L10 5 L0 10 z" fill="#6fd3f5"/>
    </marker>
    <marker id="tipd" viewBox="0 0 10 10" refX="8" refY="5" markerWidth="4.5" markerHeight="4.5" orient="auto">
      <path d="M0 0 L10 5 L0 10 z" fill="#7fb0cc"/>
    </marker>
  </defs>

  <!-- board -->
  <rect x="0" y="0" width="1180" height="270" fill="url(#board)"/>
  <g fill="#16415c">
    <circle cx="14" cy="14" r="2"/><circle cx="1166" cy="14" r="2"/>
    <circle cx="14" cy="256" r="2"/><circle cx="1166" cy="256" r="2"/>
  </g>

  <!-- captions -->
  <g fill="#9fc9e0" font-size="13" text-anchor="middle">
    <text x="137" y="44">data at a version</text>
    <text x="388" y="44">load, once</text>
    <text x="647" y="44">workers (Ballista)</text>
    <text x="905" y="44">query</text>
  </g>

  <!-- chips -->
  <g fill="url(#chip)" stroke="#5aa6cf" stroke-width="1.2">
    <rect x="30" y="58" width="215" height="104" rx="10"/>
    <rect x="281" y="58" width="215" height="104" rx="10"/>
    <rect x="532" y="58" width="230" height="104" rx="10"/>
    <rect x="798" y="58" width="215" height="104" rx="10"/>
  </g>
  <rect x="1049" y="58" width="101" height="104" rx="10" fill="url(#chip)" stroke="#ffcf7a" stroke-width="1.4"/>

  <!-- chip 1: the data -->
  <g text-anchor="middle">
    <text x="137" y="103" fill="#eaf6ff" font-size="16" font-weight="700">Iceberg snapshot</text>
    <text x="137" y="128" fill="#bfe6ff" font-size="13.5">or an X.gar set</text>
  </g>

  <!-- chip 2: the load -->
  <g text-anchor="middle">
    <text x="388" y="103" fill="#eaf6ff" font-size="16" font-weight="700">each worker</text>
    <text x="388" y="128" fill="#bfe6ff" font-size="13.5">reads only its own part</text>
  </g>

  <!-- chip 3: the workers and their parts -->
  <g fill="url(#slot)" stroke="#7fc8ea" stroke-width="1">
    <rect x="546" y="72" width="62" height="28" rx="5"/>
    <rect x="616" y="72" width="62" height="28" rx="5"/>
    <rect x="686" y="72" width="62" height="28" rx="5"/>
  </g>
  <g fill="#eaf6ff" font-size="12.5" text-anchor="middle" font-family="'DejaVu Sans Mono', monospace">
    <text x="577" y="91">part 0</text>
    <text x="647" y="91">part 1</text>
    <text x="717" y="91">part 2</text>
  </g>
  <g text-anchor="middle" fill="#bfe6ff" font-size="13.5">
    <text x="647" y="124">sparse matrix and indexes,</text>
    <text x="647" y="144">built once and kept</text>
  </g>

  <!-- chip 4: the query -->
  <g text-anchor="middle">
    <text x="905" y="96" fill="#eaf6ff" font-size="16" font-weight="700">Datalog · GQL</text>
    <text x="905" y="121" fill="#bfe6ff" font-size="13.5">rounds between the parts,</text>
    <text x="905" y="141" fill="#bfe6ff" font-size="13.5">nothing is read again</text>
  </g>

  <!-- the answer -->
  <g text-anchor="middle">
    <text x="1099" y="105" fill="#ffcf7a" font-size="16" font-weight="700">answer</text>
    <text x="1099" y="129" fill="#eaf6ff" font-size="13.5">and its proof</text>
  </g>

  <!-- traces -->
  <g stroke="#6fd3f5" stroke-width="2.5" fill="none" marker-end="url(#tip)">
    <line x1="249" y1="110" x2="275" y2="110"/>
    <line x1="500" y1="110" x2="526" y2="110"/>
    <line x1="766" y1="110" x2="792" y2="110"/>
    <line x1="1017" y1="110" x2="1043" y2="110"/>
  </g>

  <!-- the next version: planned over machines -->
  <path d="M137 166 L137 212 L647 212 L647 170" stroke="#7fb0cc" stroke-width="1.8" stroke-dasharray="6 5" fill="none" marker-end="url(#tipd)"/>
  <text x="392" y="236" fill="#86b3cc" font-size="13" text-anchor="middle">next version: only the changed rows are read</text>
</svg>