~/talk

Polyglot Library Development

Talkat PyCon Italia 2023 · 2023-05-25..05-28· [python]
slides:none on file

Sentry’s SDK strategy aims for a sentry.init one-line experience by monkey‑patching Python/Ruby to inject side effects (capture exceptions, trace timings) while preserving idempotency; static languages require explicit wrappers (Rust example: return matching and re‑raise behavior) or upstream hooks. Concurrency uses a copy‑on‑spawn context — hub cloning per execution unit following OpenTelemetry’s context idea — to propagate user state across threads/tasks. Releases use a custom craft GitHub Actions pipeline and minimal Python deps (certifi, urllib3) to avoid dependency bloat.

AI-written summary · about

  1. 0:00Introduction
  2. 1:46Problem space of polyglot libraries
  3. 3:09API design principles
  4. 5:15Dynamic vs static languages
  5. 6:40Monkey patching explained
  6. 9:32Lost in translation examples
  7. 10:55Concurrency models across languages
  8. 13:41Tracking state in async code
  9. 17:12Packaging and versioning challenges
  10. 19:39Human factors in development
  11. 21:25Learning curve and context switching
  12. 22:48References and tools
  13. 23:09Q&A session
~/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.