Coder Social home page Coder Social logo

Comments (4)

benji6 avatar benji6 commented on May 16, 2024

Very interesting question! Well I know that while in general you are right about virtual DOM libs React does use keys when an element is in an array at least.

The problem seems to come down to how you describe connections between nodes. With the DOM you're dealing with a tree structure but with the audio graph you're dealing with a graph with directed edges. I can't really think of anyway you could specify this declaratively without using ids. If you have some ideas about how you want your API to look I'd love to see them and have a think about it. Awesome project by the way!

from virtual-audio-graph.

dpren avatar dpren commented on May 16, 2024

I'll let you know if I come up with anything. One interesting observation is that if you look at the graph backwards starting from AudioDestinationNode, ignoring cyclic connections, it's actually shaped like a tree. 🤔

from virtual-audio-graph.

benji6 avatar benji6 commented on May 16, 2024

Yeah that's true, you could build an API without ids if you only allowed for tree-like graphs, but it would be very limited compared to what you can actually do. Let me know if you come up with anything!

from virtual-audio-graph.

benji6 avatar benji6 commented on May 16, 2024

Hey @dpren I'm going to close this as it has been inactive for a while. Feel free to reopen if you have any new ideas :)

from virtual-audio-graph.

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.