Coder Social home page Coder Social logo

essential-debugger's Introduction

essential-debugger's People

Contributors

freesig avatar

Watchers

 avatar

essential-debugger's Issues

Add ability to show inputs to a constraint

  • Cli selection to show any transient data (highlight this solution data index).
  • Cli selection to show the pre and post state slots for this intent.
  • Cli selection to show the decision variables for this intent.
  • Cli selection to show the state mutations for any intent (highlight this solution data index).

Add run builder

pub struct ConstraintPtr {
  solution_data: usize,
  constraint: usize,
}

pub struct Run {
  pub solution: Solution,
  pub intent: Intent,
  pub state: HashMap<ContentAddress, BtreeMap<Key, Value>>,
  pub ptr: ConstraintPtr,
}

impl Run {
  pub fn new(
    solution: Solution,
    intent: Intent,
    solution_data_index: usize,
    constraint_index: usize,
    state: HashMap<ContentAddress, BtreeMap<Key, Value>>,
  ) -> Self { todo!() }

  pub fn with_intent_source<F, E>(
    solution: Solution,
    intent_source: F,
    solution_data_index: usize,
    constraint_index: usize,
    state: HashMap<ContentAddress, BtreeMap<Key, Value>>,
  ) -> anyhow::Result<Self>
  where
    F: FnOnce(IntentAddress) -> Result<Intent, E>,
    anyhow::Error: From<E>,
  { todo!() }

  pub async fn with_async_intent_source<Fut, F, E>(
    solution: Solution,
    intent_source: F,
    solution_data_index: usize,
    constraint_index: usize,
    state: HashMap<ContentAddress, BtreeMap<Key, Value>>,
  ) -> anyhow::Result<Self>
  where
    Fut: Future<Output = Result<Intent, E>>,
    F: FnOnce(IntentAddress) -> Fut,
    anyhow::Error: From<E>,
  { todo!() }

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.