Code Monkey home page Code Monkey logo

atlas's People

Contributors

carolemieux avatar merrymercy avatar rbavishi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

atlas's Issues

API Discussion

There is still room for improvement in terms of the current API design. First, we list concepts and their relations, then we can discuss some new designs.

Concepts

There are some primitive concepts in atlas. They should be on the top-level.

  • Generator: A function with operator calls (Select, Subset).
  • Strategy: Define the behavior of operators.
  • Hook: Provide a callback mechanism for tracing, logging, etc.

However, in the current API, there are some other top-level interfaces model, tracing, replay. These are not primitive concepts. model is actually an argument of Strategy, tracing is a special Hook, replay is a special strategy. We make them as top-level interfaces to provide simplicity, but this also introduces confusion. For example, a random strategy won't use the model argument.

Whether to keep them on top-level is debatable. We can learn from more use cases and make a decision later.

Two modes of the generator

A generator can be used in two modes.

  • Iterator mode: The return value is an iterator, so we can enumerate several cases.
  • Call mode: The return value is a single value. For example, it will return a random value under the random strategy, the first value under vanilla DFS, and the most likely value under model-based DFS.

In API, we should make these two modes very clear to users.

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.