Plurrrr

week 14, 2025

Two minor tumblelog updates

Today I pushed two minor updates of tumblelog to GitHub. The first update was to version 5.3.8:

  • Reduce calls to log() by using the quotient rule: log(a) - log(b) = log(a/b)
  • Make get_month_names more efficient

The second update was to version 5.3.9:

  • Use constants (Perl) or Enum (Python) for states in collect_days_and_pages

As always, the latest version is available at GitHub.

Less log

Today I used the so called quotient rule for logarithms: log(a/b) = log(a) - log(b), to eliminate a call to the log function twice in the tag cloud algorithm I use in tumblelog.