Comments (6)
so does a user have two interactions available to them: group
and compose
? Or does the group operation compose those bits that can be composed and group what remains?
from st-core.
I think they are separate actions. I am not a fan of it, but the actions are very different. I am not sure about the idea of hiding what is composed and what is not.
from st-core.
Butting in...
I assume there's a performance benefit to composition vs grouping? The functional differences are small (and mostly, removals [no inspection]) between the two, so the strongest argument I could see for building composites would be a significant performance benefit.
There may also be an argument for composition as simplification, but finding the line between simplification and obfuscation is tricky.
On Nov 30, 2014, at 10:22, nik hanselmann [email protected] wrote:
I think they are separate actions. I am not a fan of it, but the actions are very different. I am not sure about the idea of hiding what is composed and what is not.
—
Reply to this email directly or view it on GitHub.
from st-core.
The main functional differences are small, but possibly really important.
Consider a group of blocks who have the job to get a value from a store, add 1 to that value, and set the value back in the store. In the situation of doing this with a DB, or an in-memory store, the requirement of having that operation be atomic is really important -- you don't want some other operation swooping in and changing the value while that operation is running. By composing the multiple kernels into one block, all those operations become fused into a single operation -- allowing control over what is atomic and what is not.
The hope is that there is also a performance benefit, but as of right now, the sketch that I put in /thinking/kernels is ~2500 ns/op, whereas the same operation in Go w/o all the kernel abstraction is 130 ns/op. Adding two random floats in JS in Safari takes 34 ns/op. So... there is a little ways to go on that 🚀
I agree about the tenuous line between simplification and obfuscation -- the hope is that this is needed for expressiveness. I don't like that there are two ways to group things and that they behave very differently.
from st-core.
- A block can only connect one resource
- A block can be composed of multiple kernels.
- A block must satisfy all inputs.
⬛ ⬛ ⬛ ⬛ ⬛
from st-core.
⭐
from st-core.
Related Issues (20)
- create data structures for concurrent access, remove mutex from block routine
- feedback for UI actions
- blurred text boxes should look a bit different
- tofile (or stdout... or pipe... or something...) HOT 2
- connection selection box is off
- pasted patterns should either appear at origin or staggered position relative to copied pattern
- reset needs to be clearly communicated in UI HOT 1
- grouping/ungrouping should occur relative to position
- os.exec block
- hiddenRoutes cannot be unmarshalled
- need to be able to manually hide and show routes
- add aliasing for groups routes to API
- add panel ability for show/hide and aliasing for groups.
- group preview
- when viewing inside a group, there should be a sign of external connections
- pasting pattern causes Unmarshal error with hiddenRoutes
- how to kill reginald
- API cleaning HOT 2
- unify sources HOT 4
- streaming interfaces HOT 11
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 st-core.