Giter Site home page Giter Site logo

electronics's Introduction

Electronics

(Warning: this project is not meant to be used in production, just for Rust studies)

The idea here is try to simulate an electronic circuit based on a JSON that describes its structure.

Deps

No deps so far. You can skip this.

Run

cargo run

Tests

cargo test

electronics's People

Watchers

Renie Siqueira avatar  avatar

electronics's Issues

Implement OR gate

Definition of done:

  • Create OR gate structure
  • Use the same way of running other gates and return the result of them
  • Unit tests for it

Run the whole circuit

Definition of done:

  • To be able to feed sample.json to the lib and get the execution result of it
    • Use for this the gates created on #9 and #8
    • Use the JSON data parsed using the solution defined on #7
  • Create enough tests for the new functions
  • Create integrated tests for it

Final circuit gets lost

Because of memory references, the final circuit with inputs calculated gets lost.
It would be nice to have it for debugging purposes or even to show a visual representation of the final circuit.

Start testing

Create first unit and integration tests of the project.
Add also README instructions to run them.

Implement CI

Implement CI running tests on every PR or commit.

Depends on completion of #1

Add PR template

Definition of done:

  • To have a Github PR template enabled for the repo

Start JSON parsing

Definition of done:

  • Figure out how to parse JSON with Rust
    • By parse understand: transform the JSON text to a manageable Rust data structure
  • Use it on the contents from inside the circuit file
  • Raise an error in case there is a problem on parsing it
  • Unit tests for it

Implement AND gate

Definition of done:

  • Define the way gates will be created
  • Create AND gate structure
  • Create a function to run the gate and return the result of it
  • Unit tests for it

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.