hypercpu

Crates.iohypercpu
lib.rshypercpu
version0.0.2
sourcesrc
created_at2023-05-08 19:16:09.55484
updated_at2023-05-10 11:41:59.863105
descriptionDistributed symbolic computation
homepagehttps://github.com/carlosskii/hypercpu
repositoryhttps://github.com/carlosskii/hypercpu
max_upload_size
id860015
size26,845
Carlos Kieliszewski (carlosskii)

documentation

https://docs.rs/hypercpu

README

HyperCPU

WARNING: This library is nowhere near a stable version. Do not use this crate yet.

HyperCPU is a distributable symbolic computation library written in Rust. Thanks to Rust's type system, HyperCPU can perform calculations on values that are not yet known. This allows for distributed computation for tasks that would otherwise be impossible to parallelize, like conditional branching.

Example

Basic

use hypercpu::prelude::*;

let a = 1;
let b = 2;

let c = Add::new(Mul::new(b, 5), a);
let c = c.resolve().await;

assert_eq!(c, 11);

With operators

use hypercpu::prelude::*;

let a = Value::new(1);
let b = a * 2;
let c = b + 3;

assert_eq!(c.resolve().await, 5);

Stability

HyperCPU is still in very early development. It will be a component of the Circe Project, which is also in early development.

License

HyperCPU is licensed under the MIT License OR Apache License 2.0.

Commit count: 16

cargo fmt