~/talk

Polyglot Programming through Foreign Function Interfaces

Talkat VMIL 2023 · on Monday, 2023-10-23· [compilers-and-language-design]
links:none on file
slides:none on file

Argues that raw FFIs cause subtle semantic bugs (Ruby callers copy Python examples and mis-evaluate keyword args or dict syntax) and proposes code migration via an embedded-DSL approach using a small refi primitive that turns lambdas into ASTs so host code runs with guest semantics. Builds a Ruby–JavaScript bridge, detects cyclic leaks from cross-process callbacks, and solves them by copy reference graph plus a send barrier and incremental sync; solution works for few remote refs but hits modern-GC edge cases.

AI-written summary · about

  1. 0:00Introduction
  2. 1:10Polyglot programming essentials
  3. 5:31Polyglot with VMs and FFI
  4. 7:24FFI pitfalls in practice
  5. 16:29FFI wrong abstraction?
  6. 19:32Code migration proposal
  7. 25:45Memory challenges in polyglot
  8. 31:30Ruby and JS memory managers
  9. 45:55Summary and future
  10. 48:27Q&A: WebAssembly vs JVM
  11. 50:39Q&A: Modifying VMs for memory management
  12. 54:13Q&A: High-level to low-level
  13. 55:41Q&A: Large-scale costs
  14. 57:50Q&A: Syntax and LLM limits
~/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.