~/talk

Embedding V8 in the real world

Talkat HolyJS Piter 2019 · 2019-05-24..05-25· [javascript]
slides:none on file

NativeScript embeds V8 and ships a full engine per APK, uses a metadata generator to parse SDK bytecode at build time, and marshals Java ↔ JavaScript via a JNI bridge to return proxied native objects. Worker threads use separate V8 isolates so memory is isolated and messages are serialized. Startup time drops from ~2s by bundling with webpack and using a V8 snapshot binary produced at build time. Garbage collection uses finalizers and strong/weak refs.

AI-written summary · about

  1. 0:00Start
  2. 0:57Introduction
  3. 3:48Native API Access
  4. 4:16The Application Package
  5. 6:37Metadata Generator
  6. 11:12A slight complication.
  7. 11:27Marshalling
  8. 12:57Objects lifecycle
  9. 13:08Garbage collection
  10. 13:45Synchronization by the NativeScript Runtime
  11. 15:54Android GC
  12. 18:33Multithreading
  13. 22:42Worker threads
  14. 25:44File System Requests
  15. 30:42Loading snapshots
  16. 31:13Limitations
~/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.