Git Product home page Git Product logo

rufi's Introduction

Rust Fields

Rust Fields is a Rust-based implementation of the Aggregate Computing paradigm, that lets you program the behaviour of a Collective Adaptive System by manipulating Computational Fields.

This framework is composed of the following modules:

  • RuFi Core: provides the basic concepts and functionalities for the RuFi framework.
  • RuFi Distributed: provides types and functionalities for executing RuFi programs in a distributed fashion.

Structure of this repository

This repository is structured as follows:

  • crates: contains the library crates of the RuFi framework.
  • examples: contains some binary applications with examples of RuFi usage.

Running the tests

In order to run the tests, you'll need to open a terminal inside the project root folder and follow the instructions below:

cargo test

In order to run only the tests of a specific crate, you can use the following command:

`cargo test -p <crate_name>`

for example:

cargo test -p rf-core

Running the examples

In order to run any example, you'll need to open a terminal inside the project root folder and follow the instructions below:

  • Local gradient: This example will execute a gradient aggregate algorithm inside a single process. The node topology is the following: [1] - [2] - [3] - [4] - [5]. In order to launch the program and see the output, run:
docker-compose -f docker-compose.local.yml up
  • Distributed gradient: This example will launch 5 different processes, each one representing a node in the topology and communicating with the others. The node topology is the following: [1] - [2] - [3] - [4] - [5]. In order to launch the program and see the output, run:
docker-compose -f docker-compose.distributed.yml up

N.B It may happen that some nodes take longer to output the correct value.

rufi's People

Contributors

lm98 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

rufi's Issues

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.