Giter Club home page Giter Club logo

chip's People

Contributors

chouzar avatar petejodo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

petejodo

chip's Issues

Extend API ideas

// Retrieves all tags on the registry.
/// 
/// ## Example
/// 
/// ```gleam
/// let assert Ok(registry) = chip.start()
/// 
/// let assert [_tag, ..tags] = chip.tags(registry)
/// ```
pub fn tags(registry: Registry(msg, tag, group)) -> List(tag) {
  // TODO: May be obtained from ETS directly
  todo
}

/// Retrieves all groups on the registry.
/// 
/// ## Example
/// 
/// ```gleam
/// let assert Ok(registry) = chip.start()
/// 
/// let assert [_group, ..groups] = chip.groups(registry)
/// ```
pub fn groups(registry: Registry(msg, tag, group)) -> List(group) {
  // TODO: May be obtained from ETS directly
  todo
}


/// Returns registry datapoints like a list of tags, groups, number of registered subjects. 
/// Maybe some insight into the consumed memory (state + selectors) 
/// Information on the different tables and records in them.
pub fn info(registry: Registry(msg, tag, group)) {
  todo
}

Add a Default type

A Default type might be useful instead of an Option type when creating new "chips". This is because if we don't specify a tag or a group it has to remain as a variable in its definition:

pub type PubSub(msg, tag, group) =
  chip.Registry(msg, tag, group)

Add encode/decode capabiliites

Currently we can only store subjects of a single type. If we had an encoder/decoder API we might be able to store subjects from different topics and return them accordingly.

let subject: process.Subject(String) = process.new_subject()
chip.register(registry, subject, to_event, from_event)

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.