~/talk

Introduction to libuv: What's a Unicorn Velociraptor?

Talkat Node+JS Interactive 2019 · 2019-12-11..12-12· [nodejs, c-and-cpp]
slides:none on file

libuv is the C89 C library that supplies Node.js with its event loop, async I/O and primitives for TCP/UDP/DNS/file I/O and threads; code paths go JS → C++ binding → libuv → OS and the copyfile path shows JavaScript calling bindings, the C++ glue, uv_fs_copyfile, the thread pool and finally CopyFileW on Windows with busy-file workarounds. libuv keeps ~400 C tests while Node provides ~2,800 JS tests in CI that are now run together to prevent regressions. New bits include default thread pool = 4, max = 1024, uv_random, streaming reader and WASI support via UV huazi.

AI-written summary · about

  1. 0:00Intro
  2. 1:54Overview
  3. 3:05Platform Support
  4. 5:38High Level Architecture
  5. 6:44Handles
  6. 8:36Requests
  7. 11:22Event Loop
  8. 16:01libuv and Node.js: Onion Architecture
  9. 17:02A Note on Testing
  10. 19:17Tracing a Thread Pool Operation
  11. 19:54Node's JavaScript Standard Library
  12. 21:18Invoking binding.copyFile()
  13. 23:41Entering libuv
  14. 25:52Posting Work
  15. 26:53Windows Copy File Implementation
  16. 29:36New Features from 2019
~/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.