~/talk

Embedding V8 in the Real World

Talkat JSConf Hawai 2019 · 2019-02-07..02-08· [javascript, android]
slides:none on file

NativeScript embeds V8 on Android via JNI, generated metadata and JavaScript proxy objects so Java methods map to JS calls, with marshaling for primitives and proxies for objects. Worker threads use V8 isolates as worker threads (not contexts), allowing parallel JS execution. Startup time drops from about two seconds to near zero using custom startup snapshots, though snapshots require lazy wrappers around native API access and can break with third‑party code. Implementation notes include proxy callbacks, constructor/field getters, and GC synchronization between V8 and ART.

AI-written summary · about

  1. 0:00Introduction to JS engines
  2. 3:42NativeScript and V8
  3. 5:11Bridging JS and Native
  4. 8:15Runtime architecture
  5. 11:02Metadata and marshaling
  6. 12:44Callback mechanics
  7. 16:13JNI and data conversion
  8. 18:45Multithreading in JS
  9. 23:14V8 isolates and contexts
  10. 24:48Startup optimization
  11. 30:19Conclusion and Q&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.