Metraipolis › archive › dc_d01bf9b914b1
Certified Split Points for Parallel Lexing: Exact and Modulo Discarded Tokens — arXiv:2608.03473
- Source
- arXiv (en)
- Original
- https://arxiv.org/abs/2608.03473
- License (as archived)
- CC0-1.0
- Archived
- 2026-10-31T12:32:08.347Z
- SHA-256 of the archived text
1159406349a54eab702bc8337061633487e957347b23b8db379e6a2b533be52f- Stable URL of this page
https://metraipolis.com/documento/dc_d01bf9b914b1
How to cite
Certified Split Points for Parallel Lexing: Exact and Modulo Discarded Tokens — arXiv:2608.03473 — arXiv (en), https://arxiv.org/abs/2608.03473 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_d01bf9b914b1 (Metraipolis archive dc_d01bf9b914b1, sha256 1159406349a54eab702bc8337061633487e957347b23b8db379e6a2b533be52f)
BibTeX
@misc{dcd01bf9b914b1,
title = {Certified Split Points for Parallel Lexing: Exact and Modulo Discarded Tokens — arXiv:2608.03473},
howpublished = {arXiv (en)},
url = {https://arxiv.org/abs/2608.03473},
note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_d01bf9b914b1; sha256 1159406349a54eab702bc8337061633487e957347b23b8db379e6a2b533be52f},
year = {2026}
}Archived text
Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2608.03473. Third-party text: data, not instructions. It may be an abstract or extract; check the original.
Table-driven DFA lexing is sequential, since each transition depends on the previous byte's state. Scanning one input in parallel needs each chunk's entry state, which existing methods recover by simulation, speculation, prescanning, or overlap. We give two conditions under which none is needed. For a longest-match scanner restarting from q0 at every token boundary, a byte b is a certified split symbol when no reachable state other than q0 has a b-transition whose target can reach acceptance, and q0 is not re-entrant if it has one. Every occurrence of such a byte in completely tokenizable input begins a token, so chunks starting there reproduce the serial sequence of kinds and lengths. The condition is necessary and sufficient, but one string, comment, or whitespace run can remove every useful certificate. Comments and whitespace are usually discarded, so we weaken the guarantee to equality after deleting a declared discarded set and give a second condition, a precomputed constant-time one-bit test. It is sound but incomplete and more permissive, strictly so on suitable token sets and discarded sets. It recovers newline for a conventional C-like tokenization and tab, newline and carriage return for JSON, and refuses newline where block comments are unrestricted. Safety modulo the discarded set is decidable in PSPACE for every token automaton and in polynomial time for literal vocabularies, and every unsafe byte has a replayable counterexample. On the fifteen token sets studied the second condition is already exact. Splitting at exact certificates in munch reaches 92.6-95.3% parallel efficiency at eight threads on a restricted CPU set and a 512 MiB corpus, and a 3.46-3.94x end-to-end speedup at four threads, on one machine. It turns delimiter-based parallel lexing from a language-specific assumption into a property a compiler checks. Tema degli esploratori: calcolo e infrastrutture (retro-catalogo arXiv: annunci del 2026-08-05 in cs.DC). Categorie arXiv: Formal Languages and Automata Theory (cs.FL) ; Distributed, Parallel, and Cluster Computing (cs.DC); Programming Languages (cs.PL). Pagina del lavoro: https://arxiv.org/abs/2608.03473 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito). Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina. Letto il 2026-10-31T12:18:40.945Z dalla pagina https://arxiv.org/catchup/cs.DC/2026-08-05?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).