{
  "schema": "grayworth.publications-index.v1",
  "canonical": "https://grayworth.com/publications",
  "publisher": "Grayworth Technical Publications",
  "generated_at": "2026-09-08T18:35:47.007Z",
  "artifact_policy": "Current records provide formal reports and summarized evidence. Full reproducibility and source-code artifact bundles are deferred until Gray v1.",
  "records": [
    {
      "id": "GW-2026-0002",
      "slug": "gw-2026-0002",
      "doi": "10.5281/zenodo.21632892",
      "doi_url": "https://doi.org/10.5281/zenodo.21632892",
      "isbn13": "9798191408583",
      "title": "Sustained Corrected-Latency Qualification of an Integrated Server Language Runtime",
      "subtitle": "A 56-point same-host comparison and one-hour plaintext, JSON, and PostgreSQL operating record for Gray",
      "abstract": "This paper evaluates Gray as an integrated language and server runtime under corrected-latency HTTP load. A digest-pinned, one-CPU comparison exercised equivalent plaintext and native-JSON handlers in Gray Static, Go, Node.js, and PHP across seven requested rates and retained all 56 runtime-route-rate points. Under a declared controlled-delivery criterion of at least 95 percent rate delivery with corrected p99 below 100 ms, Gray's highest point was 60,000 requested requests per second for both routes; Go's was 30,000 for both, Node.js reached 12,000 for plaintext and 20,000 for JSON, and the nginx plus PHP-FPM fixture reached 8,000 for both. Gray delivered 59,259.63 plaintext and 59,257.18 JSON requests per second at the 60,000 points, then visibly crossed its own queueing knee at 75,000. A separate sequential qualification sustained plaintext at 49,997.81/s and JSON at 39,993.57/s for one hour each with corrected p99 of 7.00 ms and 4.09 ms and no sampled steady-state RSS or descriptor growth. The database phase sustained 3,999.85/s but recorded 802.82 ms corrected p99, exposing a blocking wait architecture subsequently replaced by compiler-hidden continuations. The combined record demonstrates that Gray's integrated compiler-runtime path achieved a materially later controlled throughput knee than the compared fixtures on this host while preserving exact-response, resource, and failure gates.",
      "author": {
        "name": "Annabella Proctor",
        "orcid": "0009-0000-0799-1757",
        "orcid_url": "https://orcid.org/0009-0000-0799-1757",
        "isni": "0000 0005 3067 1646",
        "isni_url": "https://isni.org/isni/0000000530671646",
        "affiliation": "Grayworth"
      },
      "publisher": "Grayworth Technical Publications",
      "publisher_isni": "0000 0005 3067 1654",
      "publisher_isni_url": "https://isni.org/isni/0000000530671654",
      "date_published": "2026-07-24",
      "date_modified": "2026-07-24",
      "version": "1.0",
      "keywords": [
        "Gray",
        "HTTP server",
        "corrected latency",
        "wrk2",
        "runtime integration",
        "PostgreSQL",
        "same-host benchmark"
      ],
      "canonical": "https://grayworth.com/publications/gw-2026-0002",
      "related_news": "https://grayworth.com/news/gray-formal-http-qualification",
      "external_records": [
        {
          "name": "DOI",
          "url": "https://doi.org/10.5281/zenodo.21632892"
        },
        {
          "name": "Open Library",
          "url": "https://openlibrary.org/books/OL62419887M"
        },
        {
          "name": "StoryGraph",
          "url": "https://app.thestorygraph.com/books/d973a591-376a-43c4-934b-64041b8910a4"
        },
        {
          "name": "Hardcover",
          "url": "https://hardcover.app/id/books/2839807"
        },
        {
          "name": "Academia.edu",
          "url": "https://www.academia.edu/170882295/Sustained_Corrected_Latency_Qualification_of_an_Integrated_Server_Language_Runtime"
        }
      ],
      "files": {
        "pdf": "https://grayworth.com/publications/gw-2026-0002.pdf",
        "html": "https://grayworth.com/publications/gw-2026-0002",
        "markdown": "https://grayworth.com/publications/files/gw-2026-0002.md",
        "bibtex": "https://grayworth.com/publications/files/gw-2026-0002.bib",
        "ris": "https://grayworth.com/publications/files/gw-2026-0002.ris",
        "csl_json": "https://grayworth.com/publications/files/gw-2026-0002.csl.json",
        "cff": "https://grayworth.com/publications/files/gw-2026-0002.cff",
        "metadata_preview": "https://grayworth.com/publications/files/gw-2026-0002.datacite.json"
      }
    },
    {
      "id": "GW-2026-0003",
      "slug": "gw-2026-0003",
      "doi": "10.5281/zenodo.21633225",
      "doi_url": "https://doi.org/10.5281/zenodo.21633225",
      "isbn13": "9798191410890",
      "title": "Compiler-Hidden PostgreSQL Continuations for Direct-Style Server Programs",
      "subtitle": "Readiness-driven libpq execution without ordinary worker occupation in the Gray runtime",
      "abstract": "This paper presents Gray's compiler-hidden PostgreSQL continuation architecture, which preserves direct source-order database calls while moving connection and query waiting onto readiness-driven runtime state machines. The work responds to a retained one-hour baseline that delivered 3,999.85 requests per second at 4,000 requested but accumulated 802.82 ms corrected p99. The replacement path uses nonblocking libpq connection establishment, parameterized query dispatch, output flushing, input consumption, result draining, cancellation, and connection retirement under a normalized readiness reactor. A rate curve placed the new useful corrected-latency knee between 12,000 and 16,000 requested requests per second. A separate Static qualification with PostgreSQL 16, a 64-connection pool, four wrk2 threads, and 256 persistent HTTP connections delivered 7,961.48/s at 8,000 requested with 1.43 ms corrected p50, 4.60 ms p99, and 8.74 ms p99.9. During load, the runtime exposed as many as 164 simultaneously suspended handlers while using zero general task workers; after completion, active task, worker, and continuation counts returned to zero. Semantic gates covered overlapping queries with one configured task worker, typed errors after resumption, HTTP/2 multiplexing, cancellation and connection replacement, 404/500 behavior, and Adaptive deployment replacement. The result demonstrates that direct-style server code and readiness-driven database concurrency can coexist as one compiler-runtime contract without requiring application-authored polling logic or a worker per blocked handler.",
      "author": {
        "name": "Annabella Proctor",
        "orcid": "0009-0000-0799-1757",
        "orcid_url": "https://orcid.org/0009-0000-0799-1757",
        "isni": "0000 0005 3067 1646",
        "isni_url": "https://isni.org/isni/0000000530671646",
        "affiliation": "Grayworth"
      },
      "publisher": "Grayworth Technical Publications",
      "publisher_isni": "0000 0005 3067 1654",
      "publisher_isni_url": "https://isni.org/isni/0000000530671654",
      "date_published": "2026-07-26",
      "date_modified": "2026-07-26",
      "version": "1.0",
      "keywords": [
        "Gray",
        "PostgreSQL",
        "libpq",
        "continuations",
        "direct style",
        "nonblocking I/O",
        "readiness reactor"
      ],
      "canonical": "https://grayworth.com/publications/gw-2026-0003",
      "related_news": "https://grayworth.com/news/gray-postgresql-continuations",
      "external_records": [
        {
          "name": "DOI",
          "url": "https://doi.org/10.5281/zenodo.21633225"
        },
        {
          "name": "Open Library",
          "url": "https://openlibrary.org/books/OL62419950M"
        },
        {
          "name": "StoryGraph",
          "url": "https://app.thestorygraph.com/books/628b23e7-511b-4299-961c-584261c85f4e"
        },
        {
          "name": "Hardcover",
          "url": "https://hardcover.app/id/books/2839805"
        },
        {
          "name": "Academia.edu",
          "url": "https://www.academia.edu/170882373/Compiler_Hidden_PostgreSQL_Continuations_for_Direct_Style_Server_Programs"
        }
      ],
      "files": {
        "pdf": "https://grayworth.com/publications/gw-2026-0003.pdf",
        "html": "https://grayworth.com/publications/gw-2026-0003",
        "markdown": "https://grayworth.com/publications/files/gw-2026-0003.md",
        "bibtex": "https://grayworth.com/publications/files/gw-2026-0003.bib",
        "ris": "https://grayworth.com/publications/files/gw-2026-0003.ris",
        "csl_json": "https://grayworth.com/publications/files/gw-2026-0003.csl.json",
        "cff": "https://grayworth.com/publications/files/gw-2026-0003.cff",
        "metadata_preview": "https://grayworth.com/publications/files/gw-2026-0003.datacite.json"
      }
    },
    {
      "id": "GW-2026-0004",
      "slug": "gw-2026-0004",
      "doi": "10.5281/zenodo.21633227",
      "doi_url": "https://doi.org/10.5281/zenodo.21633227",
      "isbn13": "9798191411620",
      "title": "Cancellation-Safe Native Loop Lowering in the Gray Runtime",
      "subtitle": "A 25.918x median end-to-end speedup over Gray VM execution with a stop-token safepoint on every generated backedge",
      "abstract": "This paper evaluates bounded x86-64 native lowering for an eligible typed loop in the Gray language runtime. Historical profiling of Gray's sustained interpreter path recorded approximately 6.91 billion retired instructions and 1.60 billion branches with only 78,503 branch misses, indicating that dispatch and instruction volume, rather than branch-prediction failure, dominated the workload. The intervention lowers a supported loop to native code while preserving Gray's runtime ABI, source-function identity, structured exits, exact integer result, and cooperative cancellation. Seven interleaved, fresh-process, CPU-pinned measurements of a 100-million-iteration sum produced a native minimum, median, and maximum of 201.846, 210.511, and 259.657 ms. The same function with JIT disabled produced 5,336.574, 5,456.099, and 5,618.863 ms, yielding a 25.918x median end-to-end speedup. Both policies returned exactly 4,999,999,950,000,000. A separate 9-quintillion-iteration diagnostic requested cancellation after 20 ms and required CancelledError; Live JIT, Live VM, Static JIT, Static VM, AddressSanitizer, and UndefinedBehaviorSanitizer gates passed. The generated loop performs a stop-token safepoint at every backedge, so the measured native path includes the cooperative-interruption mechanism rather than benchmarking a semantics-stripped loop. The result demonstrates that Gray can remove the dominant bytecode-dispatch cost from an eligible hot region while retaining the runtime behavior needed for safe server operation.",
      "author": {
        "name": "Annabella Proctor",
        "orcid": "0009-0000-0799-1757",
        "orcid_url": "https://orcid.org/0009-0000-0799-1757",
        "isni": "0000 0005 3067 1646",
        "isni_url": "https://isni.org/isni/0000000530671646",
        "affiliation": "Grayworth"
      },
      "publisher": "Grayworth Technical Publications",
      "publisher_isni": "0000 0005 3067 1654",
      "publisher_isni_url": "https://isni.org/isni/0000000530671654",
      "date_published": "2026-07-27",
      "date_modified": "2026-07-27",
      "version": "1.0",
      "keywords": [
        "Gray",
        "JIT compilation",
        "x86-64",
        "bytecode interpreter",
        "native lowering",
        "safepoint",
        "cooperative cancellation"
      ],
      "canonical": "https://grayworth.com/publications/gw-2026-0004",
      "related_news": "https://grayworth.com/news/gray-native-loop-jit",
      "external_records": [
        {
          "name": "DOI",
          "url": "https://doi.org/10.5281/zenodo.21633227"
        },
        {
          "name": "Open Library",
          "url": "https://openlibrary.org/books/OL62420306M"
        },
        {
          "name": "StoryGraph",
          "url": "https://app.thestorygraph.com/books/1bd7fbc9-96f0-4f44-bed8-7fdcdde7936f"
        },
        {
          "name": "Hardcover",
          "url": "https://hardcover.app/id/books/2839806"
        },
        {
          "name": "Academia.edu",
          "url": "https://www.academia.edu/170882414/Cancellation_Safe_Native_Loop_Lowering_in_the_Gray_Runtime"
        }
      ],
      "files": {
        "pdf": "https://grayworth.com/publications/gw-2026-0004.pdf",
        "html": "https://grayworth.com/publications/gw-2026-0004",
        "markdown": "https://grayworth.com/publications/files/gw-2026-0004.md",
        "bibtex": "https://grayworth.com/publications/files/gw-2026-0004.bib",
        "ris": "https://grayworth.com/publications/files/gw-2026-0004.ris",
        "csl_json": "https://grayworth.com/publications/files/gw-2026-0004.csl.json",
        "cff": "https://grayworth.com/publications/files/gw-2026-0004.cff",
        "metadata_preview": "https://grayworth.com/publications/files/gw-2026-0004.datacite.json"
      }
    },
    {
      "id": "GW-2026-0005",
      "slug": "gw-2026-0005",
      "doi": "10.5281/zenodo.21759781",
      "doi_url": "https://doi.org/10.5281/zenodo.21759781",
      "isbn13": "9798191550893",
      "title": "Typed SSA NativeIR for Semantics-Preserving JIT and Static AOT in Gray",
      "subtitle": "A portable compiler backend for Linux x86-64 and Apple Silicon AArch64 execution",
      "abstract": "This paper presents Gray's typed NativeIR, a bounded control-flow representation used to compile a numeric subset of Gray bytecode to native code on both x86-64 and AArch64 architectures. The system introduces typed control-flow graphs, SSA values, Phi nodes, register classes, architecture-specific lowering, and a shared backend path for Live JIT, Static execution, and native executable artifacts. Native calls, structured exits, source identity, deterministic artifacts, cooperative cancellation, and refusal-safe VM fallback are retained as part of the compiler-runtime contract. The result establishes Gray's native execution path as a portable backend rather than a collection of benchmark-specific accelerators, while clearly identifying the current boundary of supported native code.",
      "author": {
        "name": "Annabella Proctor",
        "orcid": "0009-0000-0799-1757",
        "orcid_url": "https://orcid.org/0009-0000-0799-1757",
        "isni": "0000 0005 3067 1646",
        "isni_url": "https://isni.org/isni/0000000530671646",
        "affiliation": "Grayworth"
      },
      "publisher": "Grayworth Technical Publications",
      "publisher_isni": "0000 0005 3067 1654",
      "publisher_isni_url": "https://isni.org/isni/0000000530671654",
      "date_published": "2026-08-05",
      "date_modified": "2026-08-05",
      "version": "1.0",
      "keywords": [
        "Gray",
        "NativeIR",
        "SSA",
        "JIT",
        "AOT",
        "x86-64",
        "AArch64",
        "compiler backend"
      ],
      "canonical": "https://grayworth.com/publications/gw-2026-0005",
      "related_news": null,
      "external_records": [
        {
          "name": "DOI",
          "url": "https://doi.org/10.5281/zenodo.21759781"
        },
        {
          "name": "Open Library",
          "url": "https://openlibrary.org/books/OL62420310M"
        },
        {
          "name": "StoryGraph",
          "url": "https://app.thestorygraph.com/books/41a81f65-2816-401e-857e-43ca58b64ebb"
        },
        {
          "name": "Hardcover",
          "url": "https://hardcover.app/id/books/2840285"
        }
      ],
      "files": {
        "pdf": "https://grayworth.com/publications/gw-2026-0005.pdf",
        "html": "https://grayworth.com/publications/gw-2026-0005",
        "markdown": "https://grayworth.com/publications/files/gw-2026-0005.md",
        "bibtex": "https://grayworth.com/publications/files/gw-2026-0005.bib",
        "ris": "https://grayworth.com/publications/files/gw-2026-0005.ris",
        "csl_json": "https://grayworth.com/publications/files/gw-2026-0005.csl.json",
        "cff": "https://grayworth.com/publications/files/gw-2026-0005.cff",
        "metadata_preview": "https://grayworth.com/publications/files/gw-2026-0005.datacite.json"
      }
    }
  ]
}
