Switch language한국어
Back to the list

Signals, the push-pull based algorithm | Hacker News

TL;DR AI

Key summary

2 min read
  1. The system isn't actually glitchy: it doesn't eagerly run user computations, it only marks values dirty.

  2. Dirtying is idempotent, so the order of dirty operations doesn't change results.

  3. The pull mechanism only returns values when explicitly pulled and doesn't provide subscriptions unless subscribers are notified after dirtying.

  4. A priority queue may not be required for correctness; it seems intended to avoid recomputation when intermediate nodes change.

  5. The author's use of 'push-pull' may differ from Conal Elliott's definition, and weak references might be warranted.

Read the original