Weavon: 99.93% Pandoc Parity in a 9.26 MB Binary

· Dev & Open Source · Pandoc · Rust · Document Tooling · PDF

Weavon v0.2.0 matches 65,891 of 65,937 units against Pandoc 3.13, runs 15-50x faster on 1 MB inputs, and writes PDF without TeX Live - while Office defaults and PDF quality stay outside the oracle.

Weavon: 99.93% Pandoc Parity in a 9.26 MB Binary

Compatibility became a differential-test score, then the TeX toolchain disappeared from the PDF path.

Executive Takeaway: Weavon v0.2.0 (Dec 4, 2026) reimplements the Pandoc 3.13 CLI as one 9.26 MB arm64 binary and matches 65,891 of 65,937 differential units, 65,776 of them byte-identical. Median md → html on a 1 MB input falls from 2,300 ms to 62.6 ms, at 29.3 MiB peak RSS instead of 262 MiB.

The mechanism is not a faster compiler. It is a black-box oracle: run the shipped Pandoc binary, diff stdout, warnings and exit codes across 65,937 cases, and enumerate the 46 intentional divergences. The embedded PDF writer then removes the last heavyweight dependency, TeX Live, from the same binary.

Official Weavon v0.2.0 social card: 99.93% Pandoc parity, 52 readers, 77 writers
Official Weavon v0.2.0 social card: 99.93% Pandoc parity, 52 readers, 77 writers

weavon/weavon - GitHub repository

1 · What Actually Changed

Compatibility turned into a property of the binary rather than a claim about the codebase.

Three things moved at once: the oracle harness, the dependency surface, and the PDF renderer.

A Black-Box Oracle, Not a Port

65,937 units; output + warnings + exit code

Pandoc's Haskell source and test files stay out of the repository. Behaviour is developed against the manual, documented interfaces, and the 3.13 binary used as an oracle.

  • Scoring rule: a unit passes only when output, warnings and exit status all match.
  • Granularity: 65,776 passing units are byte-identical; the other 115 are semantically equal but differ in bytes.
  • Upstream suite: 2,228 of 2,231 Pandoc tests pass; the 3 misses are GPL shell-completion scripts.

The Dependency Surface Collapses

9.26 MB vs 195.4 MB, zero TeX

The macOS arm64 build links only /usr/lib/libSystem.B.dylib. PDF no longer needs a multi-GB TeX Live install or a Tectonic bundle fetch.

  • Published Linux x86_64: 13.70 MB stripped, 6.92 MB compressed.
  • Container image: no shell, no TeX, still writes PDF.
PropertyPandoc 3.13Weavon 0.2.0
Stripped binary195.4 MB9.26 MB
Cold start33.8 ms2.9 ms
Peak RSS (md to html)262 MiB29.3 MiB
PDF pathTeX + engineEmbedded writer
Readers / writers52 / 7752 / 77

An Embedded PDF Writer

31.7 ms, 10.3 MiB, PDF 1.7 + tags

--pdf-engine=embedded renders text, a LaTeX math subset, SVG and font subsets in-process, and emits PDF/A and PDF/UA tags for accessibility pipelines.

It is a renderer, not a typesetting language: no page-layout language, and typographic control still belongs to Typst when you need it.

Weavon wordmark shipped in the repository assets
Weavon wordmark shipped in the repository assets

2 · Benchmarks & Landscape

Vendor-run medians on Apple Silicon, 1 MB text inputs, quiet machine. Read the scope with the number.

The headline range is 15.3x to 49.7x against Pandoc 3.13, widest where process startup and syntax highlighting dominate.

Markdown to HTML: 36.7x

62.61 ms vs 2,300.01 ms median

Turning highlighting off widens the gap to 49.7x (44.82 ms vs 2,227.26 ms). That is the signature of per-run fixed cost, not parser throughput.

The Comparison That Matters: PDF Stacks

31.7 ms vs 1,462 ms end-to-end

Same job, different rendering work: Markdown in, paginated PDF out. Weavon produced 10 pages, Pandoc+Tectonic 10, direct Tectonic from .tex 9. Pagination is not identical.

WorkflowWall (ms)Peak RSS
Weavon embedded31.710.3 MiB
Tectonic on .tex276.0229.6 MiB
Pandoc + Tectonic1,462.0253.3 MiB

Competitors Are Close, Sometimes Ahead

Carta wins json to html and json to latex

Carta 0.0.16 beats Weavon 0.2.0 on 2 of 11 workloads (10.93 vs 13.95 ms; 13.21 vs 14.41 ms). Weavon's edge is surface area, not raw speed: LaTeX reader, Lua, citeproc, Office, server, PDF.

Its own notes admit md to html and json to html medians regressed against v0.1.0 (55.75 to 62.61 ms; 11.55 to 13.95 ms).

3 · Limits, Costs & Counterarguments

Parity is a score on a harness the project runs itself. The interesting failures sit outside it.

46 Diffs, and PDF Has No Oracle

Intentional divergence, unmeasured output

The remaining differences are listed, but PDF output is excluded from byte comparison because no oracle exists. Embedded PDF quality is asserted, not differentially tested.

GPL Assets Stay Out

Default Office styles and citations differ

Pandoc's reference DOCX/ODT/PPTX documents and completion scripts are GPL, so Weavon ships its own defaults. Byte-equal Office output needs --reference-doc; citations can differ from default.csl unless you pass --csl.

The Clean-Room Claim Was Walked Back

Author used AI coding tools heavily

After Hacker News pushback the README dropped the clean-room label: the process was AI-assisted, with Pandoc source kept out of the repo and the binary used as a black box. Whether that survives a GPL derivation argument is legal, not technical.

Solo Maintainer, One Release Old

42 commits, 648 stars, repo since Nov 9

Nobody can demonstrate years of maintenance on launch day. The mitigation is narrow but real: because the CLI is Pandoc 3.13, reverting is a binary swap, and the differential suite makes regressions repeatable.

4 · Practical Playbook

Where one hour of evaluation pays off, and where it does not.

A 1-Hour Evaluation

Byte-diff your own corpus first

A 1 MB synthetic benchmark says little about your documents. Run the real files through both binaries and compare bytes, warnings and exit codes.

curl -fsSL https://weavon.org/install.sh | sh -s -- --as-pandoc
for f in docs/*.md; do
  pandoc "$f" -o "/tmp/ref-$(basename "$f").html"
  weavon --compat=pandoc-3.13 "$f" -o "/tmp/new-$(basename "$f").html"
  cmp -s "/tmp/ref-$(basename "$f").html" "/tmp/new-$(basename "$f").html" \
    || echo "DIFF $f"
done

Who Adopts, Who Waits

CI docs, air-gapped PDF, WASM previews

Adopt now: CI document builds paying startup cost on every run, containers that cannot ship TeX, browser-side conversion, and tools that already shell out to pandoc.

Wait: publishing pipelines depending on Pandoc's exact default Office or EPUB styling, certified accessible PDFs, or high-fidelity math and table layout.

GitHub repository card for weavon/weavon at v0.2.0 launch
GitHub repository card for weavon/weavon at v0.2.0 launch

5 · Verified Sources & Deep Reading

Primary material, in the order worth reading.

GitHub: weavon/weavon (README, parity table)

BENCHMARKS.md: timings, peak RSS, PDF engine runs

weavon.org: playground and per-workload speedups

Hacker News launch thread (341 points)

中文导读:Weavon:用 9.26 MB 单二进制复刻 Pandoc 3.13

Weavon v0.2.0 差分测试命中 65,891/65,937,1 MB 输入比 Pandoc 3.13 快 15–50 倍,PDF 直出无需 TeX;Office 样式与 PDF 质量仍在 oracle 之外。

Primary Sources & References

  1. weavon/weavon on GitHub
  2. Weavon benchmarks (docs/BENCHMARKS.md)
  3. weavon.org
  4. Hacker News launch thread