Git Product home page Git Product logo

Comments (6)

gcross avatar gcross commented on September 26, 2024

Just to clarify, you are saying here that your intent is not merely to optimize Discrete while keeping its current semantics, but rather to change its semantics in a significant (though honestly, probably better) way as part of the process of optimizing it, right?

from reactive-banana.

gcross avatar gcross commented on September 26, 2024

By-the-way, the more I have been thinking about the possible consequences of simultaneous events in my own event networks, the more that calm seems like it would be a very helpful combinator. :-)

from reactive-banana.

HeinrichApfelmus avatar HeinrichApfelmus commented on September 26, 2024

Just to clarify, you are saying here that your intent is not merely to optimize Discrete while keeping its current semantics, but rather to change its semantics in a significant (though honestly, probably better) way as part of the process of optimizing it, right?

Well, I foreshadowed the intended semantics in the documentation: "Simultaneous events may be pruned for efficiency reasons." But yes, the changes event will only contain the latest update in the next version. This is what you would expect from a Behavior, anyway.

from reactive-banana.

gcross avatar gcross commented on September 26, 2024

That's fine, I was just making sure I understood this properly because it is a very significant change, as at the moment I have to code very cautiously using Discretes or in some cases avoid them altogether precisely because events are fired with "intermediate" results, and after your change I would not have to worry about this anymore. :-)

from reactive-banana.

HeinrichApfelmus avatar HeinrichApfelmus commented on September 26, 2024

Done! Commit 78bd983 in the development branch now contains the desired functions collect and spill.

from reactive-banana.

HeinrichApfelmus avatar HeinrichApfelmus commented on September 26, 2024

There, now it's done. The Discrete type will probably be merged into the Behavior type as issue #22 suggests, but it can't hurt to do it anyway.

from reactive-banana.

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.