18:47 | <jschoi> | I’ve been excitedly watching both ES Signals and WHATWG Observables from the outside. And I’m enthused about tomorrow’s presentation for plenary feedback from Dominic Farolino about WHATWG Observables (https://docs.google.com/presentation/d/1i5_zneksrU7i7ZHcl5EQRzUHGkmXRIQKd-bLfrPRNXY/edit?usp=sharing). As a heads up to the Signals group, I plan to ask the following three questions to Dominic regarding Observables’ interactions with Signals— Intersection with ES Signals: In a world with both, what is the role of either?
Coordination/outreach to Signals champions?
Interoperability with Signals: Observables feeding Signals or vice versa?
|
19:08 | <littledan> | well, I think those questions could lead to a little bit of confusion. We're always being asked to make signals based on observables, but it doesn't make sense because, at most, it's a way that we could take a callback as an argument. it does keep getting repeated. I'm worried about the opposite thing: what if people use observables when they want reactivity? (which observables are broken for, but signals works well for) |
19:08 | <littledan> | re: outreach: I was always aware of the Observables proposal and intermmitently in contact |
19:09 | <littledan> | for interoperability: some things in the DOM could be exposed as Observables which I think would be better handled as signals, e.g., ResizeObserver. But we can't say "don't use Observables" since we haven't proven out Signals yet |
19:10 | <nicolo-ribaudo> | Can you create a signal out of an observable? |
19:10 | <littledan> | you can! |
19:10 | <littledan> | it requires a 3-line snippet |
19:10 | <littledan> | the questions aren't bad but I'm not sure if they'll lead to productive conversation |
19:11 | <littledan> | but we're at risk of even worse, more unproductive conversation, if people get stuck on turf wars |
19:16 | <Ashley Claymore> | I think Observables can live next to Signals. In Reactive Programming there are both Cells (states/signals) and also Events (Observables). Events are the points when a state change is triggered. It's possible to use Observables to implement Cells but it's not a good fit due to glitching. |
19:24 | <littledan> | I agree. I don't want it to turn into an observables-vs-signals fight |
19:31 | <jschoi> | Yes, I want to avoid turf wars. I’m treating Observables’ coupling to DOM Events and thus WHATWG as a fait accompli. So I hope that we can focus constructively on increasing Observables’ and Signals’ interoperability and coordination. Suggestions on the questions are welcome. (For example, I can skip or delay the “what do you see their respective roles” question.) |
20:42 | <jschoi> | well, I think those questions could lead to a little bit of confusion. We're always being asked to make signals based on observables, but it doesn't make sense because, at most, it's a way that we could take a callback as an argument. it does keep getting repeated. I'm worried about the opposite thing: what if people use observables when they want reactivity? (which observables are broken for, but signals works well for) Oh, Element finally properly synced and now I see all your responses. I can hold off and avoid asking any of these three questions if you think that would be more productive, Daniel. |
20:47 | <jschoi> | (It’s good to hear that there’s been some communication/coordination between the two proposals’ drivers.) |
20:50 | <jschoi> | By interoperability I mostly mean this and vice versa. Being able to (ergonomically, easily) plug an observable into a signal or a signal into an observable. |