Coder Social home page Coder Social logo

Converting to/from JS Observables about wonka HOT 2 CLOSED

0no-co avatar 0no-co commented on July 16, 2024 1
Converting to/from JS Observables

from wonka.

Comments (2)

kitten avatar kitten commented on July 16, 2024 2

it would be of great help for those of us who want to tinker with it if there was an easy way to pipe to/from RxJS observables

Definitely! I had to/from observable and to/from callbag operators planned for a while now, but haven't written them yet. Note though, that I wouldn't actually write the to/from observable operator to be Rx-specific but to just use spec-compliant JS observables, which would then also be compatible to Rx.

I'm quite uncertain w/ going forwards as it's unclear how or why it differs from the callbag spec.

I'm currently writing some more docs and part of that is explaining how it differs from callbags. It essentially takes 100% inspiration from them, but it isn't following the spec in that it doesn't use the same function signatures.

Regarding the BuckleScript block stuff, you shouldn't call sinks directly from JS/TS. They take a special signal, and I may provide some helpers around that in the future that create these events, but for all intents and purposes that's an implementation detail and part of the internals.

If you have more ideas for operators that help with creating new operators "from scratch" let me know though, but the idea is for Wonka to have enough operators so that every missing one can be derived.

from wonka.

rafamel avatar rafamel commented on July 16, 2024

Just as a note, I've been reading up on callbags and I think they're a better fit than Observables/RxJS for one of the libs I'm building. I'd like to use Wonka just because TypeScript but I'm quite uncertain w/ going forwards as it's unclear how or why it differs from the callbag spec.

Also, I didn't dig too deep but judging by some tests I run while replicating the code for interval it looks like sinks need to be called w/ BuckleScript Block.__ which, if true, would render the idea of it all being just functions and the interop with other JS/TS callbags libs/utils not viable? Any input on this regard would be highly appreciated.

from wonka.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.