~/talk

Calendrical C++: std::chrono, History, Mathematics and the Computus

Talkat CppNorth 2023 · 2023-07-17..07-19· [c-and-cpp, web-platform]
slides:none on file

Shows a concrete C++ implementation using std::chrono types (year_month_day, year_month_weekday, sys_days) and custom clocks to compute Easter with multiple algorithms, including the Metonic 19-year cycle and the Meeus/Jones/Butcher algorithm. Claims: Gregorian algorithm needs century/400-year corrections; astronomical full‑moon calculation produces correct lunar dates but fails church rules (unit tests flag a 2025 mismatch). Demonstrates 532‑year Paschal cycle, earliest Easter = March 22 (1818, 2285), latest = April 25, and quirky historical facts like a 445‑day year (46 BCE) and Sweden’s February 30 (1712).

AI-written summary · about

  1. 0:00Introduction and background
  2. 2:56C++ Chrono library basics
  3. 10:41History of calendar reforms
  4. 16:44The mathematics of Easter
  5. 24:31Implementing Easter algorithms
  6. 29:34Calendar transitions and edges
  7. 37:18Astronomical vs. religious time
  8. 43:13Practical calendar examples
  9. 50:43Conclusion and resources
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.