~/talk

Bryan Hughes - SeattleJS Conference 2017

Talkat SeattleJS Conference 2017 · 2017-08-10..08-11· [nodejs]
slides:none on file

Node.js runs all JavaScript and v8 on a single thread but the event loop and native C++ work use multiple mechanisms: crypto async calls go to a default thread pool of four workers so heavy CPU work queues after four parallel tasks, file I/O and child_process also use the pool, while networking and many pipes use kernel async via epoll/kqueue/IOCP so they scale without hitting the pool. Windows has a few API differences and DNS lacks a true kernel async path.

AI-written summary · about

  1. 0:00Start
  2. 0:39What is Multitasking?
  3. 2:36But it had limitations, so then we created Preemptive Multitasking
  4. 4:37But we could do better, so we created Symmetric Multi Threading (SMT)
  5. 10:51All JavaScript, V8, and the event loop run in one thread, called the main thread
  6. 12:01methods sometimes don't run in the main thread
  7. 12:12Example: Crypto
  8. 16:24Node.js uses a pre-allocated set of threads called the Thread Pool. The default is 4.
  9. 17:37Example: HTTP(S)
  10. 19:32C++ backed methods use C++ asynchronous primitives whenever possible
~/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.