canjs / can-define-stream

Add useful stream conversion methods to a supplied can-define/map/map or can-define/list/list constructor using a stream interface such as can-stream-kefir.
https://canjs.com/doc/can-define-stream.html
MIT License
4 stars 2 forks source link

Make can-define-stream mixin based #17

Open justinbmeyer opened 7 years ago

justinbmeyer commented 7 years ago

Steps

Benefits

Bajix commented 7 years ago

I think we can accomplish this easier by making can-stream & can-define-stream decoupled from RxJS / Kefir, and then loading in either interchangeably, maybe via can-namespace.

"meta": {
  "can-stream": {
    "deps": [
      "can-stream-kefir"
    ]
  }
}

"meta": {
  "can-stream": {
    "deps": [
      "can-stream-rxjs"
    ]
  }
}

This then would have the benefit that anything can-stream-kefir compatible would also be can-stream-rxjs compatible. Authors could write using can-stream-kefir if they don't need the full API & users then could transparently swap in can-stream-rxjson an as needed basis.

justinbmeyer commented 7 years ago

They can't really be used interchangeably because their streams have different APIs.

There needs to be a specific stream integration for each. Can explain at Friday's meeting.

Sent from my iPhone

On Dec 29, 2016, at 6:26 PM, Thomas Sieverding notifications@github.com wrote:

I think we can accomplish this easier by making can-stream & can-define-stream decoupled from RxJS / Kefir, and then loading in either interchangeably, maybe via can-namespace.

"meta": { "can-stream": { "deps": [ "can-stream-kefir" ] } }

"meta": { "can-stream": { "deps": [ "can-stream-rxjs" ] } } This then would have the benefit that anything can-stream-kefir compatible would also be can-stream-rxjs compatible. Authors could write using can-stream-kefir if they don't need the full API & users then could transparently swap in can-stream-rxjson an as needed basis.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

Bajix commented 7 years ago

How far off are their API's? RxJS has a lot more functionality for sure, but the overlap looked considerable. Drop in substitution would be really awesome if possible

web-mech commented 7 years ago

https://github.com/web-mech/can-stream-rxjs https://github.com/web-mech/can-define-stream-rxjs