DO NOT MERGE: reportlab greenfield planner spike - #205
Draft
yyolk wants to merge 2 commits into
Draft
Conversation
Strip the Typst/parch tree and emit a 2026 yearly planner with open-source ReportLab canvas + bookmarkPage/linkAbsolute. Specimen and glanceable preview PNGs included so the draft can be looked at before the notes-pages bench finishes. Co-authored-by: Joseph Chiocchi <joe@yolk.cc>
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: trueThanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Full-year 2026 matrix via /usr/bin/time -v. Nothing OOM'd; N=100 was 35s / 893 MiB. Commit N=0 PDF and machine log; N>=2 full-year PDFs were deleted after measure. Co-authored-by: Joseph Chiocchi <joe@yolk.cc>
cursor Bot
pushed a commit
that referenced
this pull request
Sep 8, 2026
Full-year 2026 matrix 0→100 via /usr/bin/time -v. Nothing OOM'd. N=100 was 26s / 518 MiB. Spot-check day↔notes with pypdf. Co-authored-by: Joseph Chiocchi <joe@yolk.cc>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
DO NOT MERGE. Experimental throwaway spike. This branch will not be merged and may be deleted later.
What this is
A greenfield “what if we never ported the Ruby/Typst decisions” experiment. The Typst/parch application tree is stripped. Tiny Python package writes a yearly planner PDF with open-source ReportLab only (
pdfgen.canvas+bookmarkPage/linkAbsolute). No fpdf2, no Typst, no ReportLab PLUS.Glanceable artifacts (in-repo)
Same shape as the fpdf2 spike so yolk can flip pages:
artifacts/specimen-2026.pdf— cover + year + Q1 + January + first week + 1 Jan (6 pages)artifacts/specimen-2026-notes2.pdf— same + notes 1/2 and 2/2 for 1 Jan (8 pages)artifacts/planner-2026.pdf— full-year N=0 (436 pages, ~4.3 MB)pdftoppm@ 140 dpi):artifacts/preview/cover.pngartifacts/preview/year.pngartifacts/preview/quarter.pngartifacts/preview/month.pngartifacts/preview/week.pngartifacts/preview/day.pngCover
Year
Quarter
Month
Week
Day
Generate
Defaults: year 2026, Monday week start, page 106 × 144 mm portrait.
--notes-pages N: 1 daily page + N dedicated notes pages per day.N=0(default) is the day page only, with its on-page notes panel.Notes-pages benchmark
Full-year 2026, Monday weeks.
/usr/bin/time -varoundpress(generate only). VM: 15 GiB RAM, 4 CPUs, no swap. Order 0 → 2 → 10 → 20 → 30 → 50 → 100. Nothing OOM’d. Last completed N=100. Died N: none. Full-year N≥2 PDFs not committed (N=100 was ~109 MB). Details:BENCH.md.Named dests counted via ReportLab catalog
/Dests→pypdf.named_destinations(keys like/day-2026-07-02).Spot-check (
pypdf):day-2026-07-02andday-2026-07-02-notes-1exist for N≥2; day→notes-1 and notes-1→day annots resolve (N=2: pages 618↔619; N=100: 18454↔18455).vs fpdf2 (PR #204): same order of magnitude. ReportLab is a bit slower/hungrier at N=100 (35 s / 893 MiB vs 31 s / 629 MiB) and files are ~1.4× larger. No Typst notes-slab cliff on either path.
CI
Old Typst jobs replaced with a specimen generate stub. Do not treat as product CI.
To show artifacts inline, enable in settings.