Skip to content

Instantly share code, notes, and snippets.

@simonask
Created April 13, 2009 14:45
Show Gist options
  • Save simonask/94475 to your computer and use it in GitHub Desktop.
Save simonask/94475 to your computer and use it in GitHub Desktop.
add: [a, b] {
a + b
}
b: add(4, c)
c: add(5, 6)
sideeffect puts(c)
sideeffect puts(muh)
muh: c + add(89, b)
/* Dependency graph:
b -> add
\
c -> add
muh -> c -> add
\
+ add
|
+ b
side-effects -> muh
\
c
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment