~/talk

Python + Rust = ?

Talkat PiterPy 2023 · 2023-11-07..11-14· [python, rust]
links:none on file
slides:none on file

Presents how to embed Rust into Python using PyO3 and packaging with maturin, with a concrete to_camel example and bench results: Rust wins for large strings (up to x17) but shows little or no gain for small inputs and pays a compile-time cost on first runs. Explains FFI choices, which Rust and Python types copy versus borrow, when parallel threads help, and practical downsides: tricky borrowing and lifetimes, debugging overhead, and uneven third‑party Rust library performance so benchmarks are essential.

AI-written summary · about

  1. 0:00Welcome
  2. 3:33Why Rust and Python
  3. 5:00When to use Rust
  4. 10:43Rust and Python integration
  5. 14:14Maturin tool
  6. 15:59Task example and solution
  7. 22:39Implementing to_camel function
  8. 23:02Performance comparison
  9. 26:35Rust drawbacks
  10. 29:02Summary and recommendations
  11. 32:12Q&A
~/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.