Proposed investigation: JavaScript Signals standard proposal #103
KaliedaRik
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Proposal
There's an ongoing effort to standardise the concept of Signals, and expose the functionality as a Javascript API.
This is very interesting for SC, as the library uses a (somewhat ramshackle) form of signalling internally, to keep track of artefacts that have changed their state which then signal their change of state to other artefacts which rely on the changed artefact to calculate their own state. For example, any artefact which locks its state to another via
pivot,mimic,pathetc.The current situation is not ideal, as it relies on setting
dirty flagsin artefacts to inform them that state in their dependency chain has changed. Keeping track of dirty flag management is, from an SC developer perspective, difficult. Anything that can simplify the code base in this area should (in theory) be beneficial.Building a more robust signalling system to SC should have no impact on the library's users as all the work would be on internal code, with no changes to the SC API.
Risks
Way forward
The proposers have developed a JS polyfill which we can use to start experimenting in this area. There's no harm in experimenting (he says) ...
All reactions