2 releases

0.0.2 May 10, 2023
0.0.1 May 8, 2023

#957 in Math

30 downloads per month

MIT/Apache

23KB
656 lines

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.

Dependencies

~325–790KB
~19K SLoC