Crates.io | hypercpu |
lib.rs | hypercpu |
version | 0.0.2 |
source | src |
created_at | 2023-05-08 19:16:09.55484 |
updated_at | 2023-05-10 11:41:59.863105 |
description | Distributed symbolic computation |
homepage | https://github.com/carlosskii/hypercpu |
repository | https://github.com/carlosskii/hypercpu |
max_upload_size | |
id | 860015 |
size | 26,845 |
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.
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);
use hypercpu::prelude::*;
let a = Value::new(1);
let b = a * 2;
let c = b + 3;
assert_eq!(c.resolve().await, 5);
HyperCPU is still in very early development. It will be a component of the Circe Project, which is also in early development.
HyperCPU is licensed under the MIT License OR Apache License 2.0.