Blyx Nest Blyx language
Registry / Framework
framework · v0.1.0

Bittern

Plan the next migration only after history, fingerprints and dirty state agree.

Source repository · Package JSON

Use Bittern

use vendor::bittern::bittern;

Run the example

nest demo bittern@0.1.0
blyxc native-run bittern-demo/main.blyx
Example source and expected output
use vendor::bittern::bittern;

fn main() {
    let available = [1, 2, 5];
    let applied = [1, 2];
    let expected = [10, 20];
    let actual = [10, 20];
    let dirty = 0.0;
    let result = bittern_preflight(available, applied, expected, actual, dirty);
    if len(result) == 0 { println!("invalid"); return; }
    let mut i = 0;
    while i < len(result) {
        println!(at(result, i));
        i += 1;
    }
}

Expected output

1
5
1
0

Published versions

VersionPackageSource commitSHA-256
0.1.0Download ZIP8e77374a87598843ea1ee4a4e5f9cbf33bf2b34dbd34a66222cd09f26660663e23aea74747