~/talk

Binary Python: Introducing Native Code

Talkat PyCon Belarus 2017 · on Saturday, 2017-02-04· [python, c-and-cpp]
slides:none on file

Parsing huge JavaScript source maps moves from seconds to under 100 milliseconds by reimplementing the hot path in Rust and keeping large structures in native memory instead of exposing Python objects. Build strategy uses CFFI shims, setuptools wheel-tag hacks and cross-builds in manylinux Docker images, cutting a 15‑variant build matrix down to three platform wheels. LLVM-dependent native symbolication and macOS SDK tricks are brittle but reproducible; release artifacts upload remains a manual GitHub→twine step.

AI-written summary · about

  1. 0:00Context and motivation
  2. 1:23Native code in python
  3. 2:32Building native libraries
  4. 4:38Binary distribution challenges
  5. 6:28Python wheels explained
  6. 8:23Managing dependency tags
  7. 11:45The manylinux standard
  8. 13:46Simplifying the build process
  9. 15:27Customizing setuptools
  10. 17:46CFFI for interfacing
  11. 20:37Creating Python wrappers
  12. 22:54CI/CD and cross-building
  13. 26:57Error handling across borders
  14. 29:19Lessons learned and conclusion
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.