Comments (4)
Get rid of bypass
Use arr ports only by referencing them
Problems
UPD: For now it looks like array-bypass may not be needed. What if array ports may be used only with indexes? But at the same time it makes them not flexible...
UPD: For now it looks like array-bypass needed because of reasons described in the issue
from neva.
Allow bypass for only network's inports
If module has array inport then it must use bypass connection. If module uses sub-component with array-inport it must not use bypass and use indexing instead. This way there will always be place in the program where array-inport used by indexes.
Problems
It wont work. If sub-node's array-port elements must be used by referencing them then it's impossible to do anything with bypass
. Unless we have some special Indexer
component with err
outport for handling indexing errors (which is bad because array-ports considered to be a static data (tell this to operators))
from neva.
Compute first parent that uses indexes
If array-inport used by bypass-connection inside the module's network then look at how it is used by parent network:
- If parent network uses it with indexes then use those indexes (base case)
- If parent network uses bypass too, then:
- If parent's bypass comes from the parent's inport go to 1
- If parent's bypass comes parent's sub-node
- If subnode is
TODO
from neva.
Allow bypass from inports to nodes but not from nodes to nodes
Fix of #41 (comment)
If module has array inport then it must use bypass and it's allowed to pass it further to sub-node. But if module uses sub-node with array-outports it must use them via indexes.
TODO think more
Problems
- Need for
err
-like outport for all such components?
from neva.
Related Issues (20)
- Proposal: `any` as default type-argument for node with any number of type-parameters, not just one HOT 1
- We can't build wrappers around components with DI HOT 1
- Closure (Implement "visibility scope" via hierarchy of deferred connections) HOT 1
- [Idea]: Should we write Runtime funcs to use one Goroutine per port? HOT 4
- Multiline Comments HOT 2
- Inconsistent output inside `For` with branching HOT 7
- Match allows array-port overwrite HOT 1
- Consistent naming for boolean components
- Alternative syntax for outports HOT 3
- `Zip` component HOT 2
- Iter should support strings HOT 1
- Race-condition with fan-in pattern HOT 2
- Force Outport Operator HOT 3
- Data processing components out of the box
- `Find` component HOT 1
- `Has` component HOT 1
- `Collate` component
- Reduce noise when using ports by replacing `:` with `.` HOT 1
- HTTP Client
- Improve struct field selectors syntax
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 neva.