~/talk

Don't Wait, Generate!

Talkat ScotlandPHP 2018 · 2018-10-05..10-06· [php, concurrency]
slides:none on file

Generates resumable functions with yield to replace callbacks, using the AMPHP family plus the PHP-UV/libuv extension and an AMP HTTP server to multiplex requests inside a single long-running PHP process. Demo rewrites a raffle app: moves SMS sends to fire-and-forget promises, uses a MySQL connection pool (default 100), drops observed response time from ~18 ms to ~2.1 ms in warm runs, and reduces per-request bootstrapping and memory duplication. Trade-offs: single-process core use requires HTTP-level clustering for multi-core scaling.

AI-written summary · about

  1. 0:00Introduction to generators
  2. 1:24What are generators and co-routines
  3. 3:44How generators work with yield
  4. 11:10Yield from and delegation
  5. 15:53Traditional PHP execution limits
  6. 20:17Event loops and async programming
  7. 27:32PHP with event loops and libuv
  8. 30:30Demo of amp framework
  9. 33:54Code walkthrough with amp
  10. 40:48Q&A session
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.