Comments (3)
@jlongster thanks for opening up this issue I also think collaboration could be very fruitful and you bring up a lot of good points. I'll discuss this with team at Cognitect tomorrow and get back to you.
from transducers-js.
@jlongster I've made several changes to master to accommodate interoperability and reuse. First off, all transducer types are exported - they are a part of the public API - anyone can combine them with any other transducer implementation given that they follow https://github.com/cognitect-labs/transducers-js#the-transducer-protocol. Feedback on this simple protocol is appreciated.
It's unlikely we'll pursue all the other nice bits that are available in your implementation - and we certainly don't mean to discourage separate implementations! That said I think at 2K gzipped transducers-js is small enough to be the underpinning of any higher level functionality you may want to provide yourself. If that's not desirable then I think we can meet at a shared protocol. Happy to discuss any issues you may have with the protocol as currently described.
from transducers-js.
@swannodette Looks good to me. I'm glad you documented the protocol in the docs; our libs mostly already matched but it should be documented. The protocol looks great.
I understand not wanting to pull in my APIs; you all have your own priorities/vision. No worries, I think multiple libraries is good as long as it's not too confusing. I may add a section explaining the differences. Since our internal implementation is basically 100% the same, I'll think about building on top of your lib instead and just providing new APIs. Not sure yet.
Either way, having a standard protocol really helps with projects like js-csp. Thanks!
from transducers-js.
Related Issues (20)
- Clarifying behavior of transducer/init HOT 3
- export identity HOT 1
- Curring "into" method, will duplicate list elements HOT 2
- Exports typo HOT 1
- How to implement the protocol? HOT 3
- Where does the convention "at-at-slash" come from? HOT 2
- Keep should return results of transform HOT 2
- Browser version through exception
- Is it possible to use the function arity instead of the "transducer protocol"
- Add .type field to transducers
- Change to DepsGenerator breaks bin/test
- Under development?
- Creating transformers ... "@@"?? HOT 1
- "reduced" wrapper? HOT 2
- How do I create a transformer with state?
- asynchrony
- Proposal: @@transducer/init should always be called, create an accumulator object.
- LazyTransformer fails when multiple values produced per step
- Anybody home? HOT 1
- Does the protocol support object keys at all?
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 transducers-js.