~/talk

SPy (Static Python) lang: fast as C, Pythonic as Python

Talkat PyCon US 2024 · 2024-05-15..05-23· [python]
slides:none on file

Claims a new Python dialect, SPy, that uses a statically enforced type system plus partial evaluation and meta‑programming to resolve decorators metaclasses and lookups at compile time and produce C or WebAssembly code so runtime is “fast as C.” It implements three phases import/freeze/run, optional eager or lazy type errors, and generics that generate specialized implementations. A working prototype exists, compiles .spy files, and demos the optimizations end to end.

AI-written summary · about

  1. 0:00SPy introduction and goals
  2. 4:16Why Python subsets fall short
  3. 8:51Python’s implicit static behavior
  4. 12:42SPy execution phases
  5. 16:14SPy partial evaluation example
  6. 18:24Closures and type checking
  7. 21:40Generics and static dispatch
  8. 25:39Dynamic dispatch and safety
  9. 26:24Low-level memory access
  10. 28:58SPy WebAssembly & JS interop
  11. 31:50Future compiler targets
  12. 32:13Q&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.