Comments (4)
Source available here
from hydroflow.
Option: require defer_tick()
on all "backwards" edges (higher -> lower stratum number)
from hydroflow.
hydroflow/hydroflow_lang/src/graph/flat_to_partitioned.rs
Lines 384 to 390 in 77f3e5a
from hydroflow.
Current status: if we have a dataflow edge from a higher-numbered stratum to a lower one, the runtime effectively defers the dataflow until next tick. Unfortunately this hides correctness in our operational semantics and may be confusing for users.
Simple (inadequate) solution: require users to insert a defer_tick
operator between the output of stratum x
and the input of stratum k < x
. The problem with this solution is that they may have a defer_tick
elsewhere in the cycle (say from k+i
to k+i+1
) that already enforces the desired semantics.
Ideal solution: any cycle that spans two strata should be tested for having a defer_tick
anywhere along that cycle. Errors should be omitted only when there is no defer_tick
on the cycle. It makes sense to suggest that the defer_tick
be inserted on the dataflow edge that goes from a higher stratum to a lower one.
from hydroflow.
Related Issues (20)
- Make sure that stageleft can handle `super` and `crate` references
- Rohit Onboarding Projects
- `surface_codegen.rs` `test_surface_syntax_reachability_generated` needs `'static` for join
- Stageleft sometimes double-captures a referenced value
- Documentation Improvements to the Networking Examples HOT 1
- Improvements to Hydroflow Template HOT 1
- Hydroflow surface syntax allows ports specification that isn't used `[0]out -> in`
- Deprecate/remove hydroflow surface syntax `import!("file.hf")` feature
- Hydroflow surface modules (`import!("file.hf")`) panics without input/output `mod` HOT 1
- persist should be lattice typed, e.g. to enforce uniqueness of sets HOT 2
- Create CONTRIBUTING.md with info for new developers
- Properties/semantics/optimizations meta-issue (algebraic properties/lattices)
- Stageleft doesn't allow `let _`
- Check & Update Client-Server Examples Based On Updated Template
- Running with `--profile profile` crashes with "Illegal instruction (core dumped)" HOT 1
- Support `let (a, b) = ...` in stageleft
- Generate code for locations even if they have no sinks
- Print a warning when a stream is dropped without being used by a sink HOT 1
- Sending a locally-defined struct with bincode results in bad references in the generated code
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hydroflow.