Comments (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.
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)
- `switchMap` example output not as expected in docs HOT 1
- `Wonka.throttle` example emits `0 5` instead of `0 6` HOT 1
- How to avoid intermediary values when combine uses the same input sources twice? HOT 4
- b is not a function HOT 2
- convert ECMAScript Observable to RXJS Observable HOT 3
- sourcing `./src/Wonka.bs.js` HOT 2
- Question about onStart execution order HOT 5
- a is not a function HOT 4
- New sources and operators? (roadmap) HOT 3
- Missing sourcemaps in distribution? HOT 2
- Wonka manually polyfills Symbol.observable which can cause interoperability issues with other Observable packages HOT 1
- Indicate that `this` is not used, or convert functions to arrow functions HOT 2
- Error DeprecationWarning: Use of deprecated folder mapping "./" in the "exports" field module resolution of the package
- `dist/wonka.d.ts` failing typecheck on TS 4.9.3+ HOT 2
- v6.2 broke type inference for `pipe`? HOT 2
- Narrowing overload for `filter` HOT 2
- Top-level declarations in .d.ts files must start with either a 'declare' or 'export' modifier HOT 2
- Invalid documentation exemple for subscribe
- Typescript errors in wonka 6.3.3 HOT 1
- Type inference is incorrect for `pipe(source, consumer)`, if consumer returns a function HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wonka.