Giter Site home page Giter Site logo

Comments (6)

mikedewar avatar mikedewar commented on August 20, 2024

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.

nikhan avatar nikhan commented on August 20, 2024

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.

mboggie avatar mboggie commented on August 20, 2024

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.

nikhan avatar nikhan commented on August 20, 2024

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.

nikhan avatar nikhan commented on August 20, 2024
  • A block can only connect one resource
  • A block can be composed of multiple kernels.
  • A block must satisfy all inputs.

⬛ ⬛ ⬛ ⬛ ⬛

from st-core.

nikhan avatar nikhan commented on August 20, 2024

from st-core.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.