|
|
|
|
|
by twic
365 days ago
|
|
y = Computed(lambda: calculate_y(x()))
How does this instance of Computed know that it depends on x? Does it parse the bytecode for the lambda? Does it call the lambda and observe which signals get accessed?In my homebrew signal framework, which emerged in the middle of a complicated web dashboard, this would look like: y = Computed([x], calculate_y)
So the machinery gets to see the signal directly. |
|