« first day (2 days earlier)      last day (168 days later) » 

12:04
@BenjaminGruenbaum I don't know how much it makes sense for Promises
Especially since you can attach handlers to already settled promises and nothing bad will happen
With Rx, if you do it, you'll miss events.
@MadaraUchiha why not? It's laziness (I think I mentioned that consideration here)
@BenjaminGruenbaum Because why not just wrap it in a function and call it whenever?
How would you combine several calls of lazy promises? Like lazy all?
@BenjaminGruenbaum How do you know whether you have a promise or a lazy promise in your hands?
12:23
The question is - should you care?
Optimally, you wouldn't know.
@BenjaminGruenbaum As in, with Promises, invoke() would do nothing, and for () -> Promises, .invoke() would run the function, returning the promise?
Yes
I wonder how things like Promise.all should behave. For promise you could easily solve it by having a function other than then that runs lazily.
Like Promise.prototype.flatMap that'd be lazy - but that's not a general solution. Arrows kind of are.
 
4 hours later…
16:41
@BenjaminGruenbaum I need some algo help from you
I have a set of say, 50 objects.
Each object has about 200 properties, same keys, arbitrary values
I want to create an inheritance hierarchy between the objects, based on the similarity between the objects' properties' values.
Simplified example:
"a": {a: 1, b: 2, c: 3},
"b": {a: 1, b: 3, c: 2},
"c": {a: 1, b: 1, c: 3}

// would generate something like

"a": {a: 1, b: 2, c: 3},
"b": {b: 3, c: 2, parent: "a"},
"c": {b: 1, parent: "a"}
Doesn't have to be 100% efficient or ideal, but it should be consistent.
 
1 hour later…
17:52
@MadaraUchiha You could use minhash as a measure to find similar sets
It can be easily calculated 1225 times
18:16
@copy Finding the similar sets isn't really a problem, I can just compare how many equal properties are there between each couple
It's grouping them and/or creating the hierarchy that's the problem
18:29
I see. In order to make a good hierarchy you'd also need similarity between more than 2 sets
 
1 hour later…
19:47
@copy Yes, now in this particular instance, I don't mind even if there's a limited level of hierarchy
i.e. It doesn't mean it has to be N levels deep, finding two or even one level of hierarchy is good enough.

« first day (2 days earlier)      last day (168 days later) »