Git Product home page Git Product logo

yew_patterns's Introduction

yew_patterns

A repository for experiments with Yew.

I'm using this library to perform experiments with the Yew frontend framework. I wouldn't suggest directly relying on this library via git, as it will never be stabalized into a crate. Instead, just copy code as needed into your project.

yew_patterns's People

Contributors

hgzimmerman avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

yew_patterns's Issues

Registry pattern

An agent or agent pair that will store Id's for other entities. Basically an agent that will only store an Option of an ID belonging to its associated Component type.

This would accept the following messages:

  • Register
  • FailedToRegister
  • RegisterUsurp - Register the component, kicking out the prior registered component.
  • Usurped
  • Send - Sends a Component::Message to the registered component if populated
  • FailedToDeliver - If the send message fails because the

This may end up being a primitive used in a RAFT implementation.

Mailbox

A pattern that very slightly extends the receiver entity in that it is of type and the messages it receives are the same as the Component::Properties.

Voting Pattern

An Agent that allows for consensus to be built from connected components.

Required Messages

  • Vote - votes for the message.
  • RequestVote - Tells connected entities to vote.
  • VoteRequested - Asks the voting agent to send out requests to all connections to request them to vote.
  • Connected -> Vec - gets a list of those who are connected (Is this needed, or would it only make sense in a )
  • Verdict - A message indicating that the voting agent has chosen an answer.

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.