8000 GitHub - milomg/r2
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

milomg/r2

Repository files navigation

r2

modern generator based reactivity ⚙️

why?

Modern signals implementations in JavaScript are all implemented using push-pull-push and tri-coloring. However, this approach requires overeager marking of all recursive dependencies, making it impossible to make an O(1) implementation of createSelector or createProjection (which require marking only a subset of children based on the return value of a computation).

This library implements a different approach to reactivity using topological execution (height ordering).

To allow for nodes to dynamically change sources (and therefore heights), we require the use of generators.

see also

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0