flow
flow copied to clipboard
Exploration of a data-flow programming paradigm
See this, and implement when on stable: https://doc.rust-lang.org/unstable-book/language-features/external-doc.html #[doc(include = "compare_switch.toml")] #[derive(Debug)] pub struct CompareSwitch; so that the toml definition file is included into the doc comments of the code...
greatest common divisor of two integers, using Euclid’s algorithm. You can add this code to the end of src/main.rs: fn gcd(mut n: u64, mut m: u64) -> u64 { assert!(n...
`cargo ws publish` produces ``` Compiling flowsamples v0.40.1 (/Users/andrew/workspace/flow/target/package/flowsamples-0.40.1) error: failed to verify package tarball Caused by: failed to run custom build command for `flowsamples v0.40.1 (/Users/andrew/workspace/flow/target/package/flowsamples-0.40.1)` Caused by: process...
this works for functions, but not sure it will work reliably for inputs to a sub-flow (which will in fact go to a function)
I suspect this is wrong now.... /// Connect the `from_io` to the `to_io` if they are compatible pub fn connect(&mut self, from_io: IO, to_io: IO, level: usize) -> Result {...
Accumulate the subroute of an IO used by direrent connections, store into the connection and then use in compatible_types() without trying a bad calculation of it there. See TODOs in...
connector.rs ``` // What type of array serialization / deserialization will we need between these two data types // at runtime TODO - take into account the subroute on the...
Libraries support a first prototype IDE (in separate project)