Terminology: What is a “glitch” in Functional Reactive Programming / RX?

前端 未结 3 1933
情书的邮戳
情书的邮戳 2020-12-28 19:11

What is the definition of a \"glitch\" in the context of Functional Reactive Programming?

I know that in some FRP frameworks \"glitches\" can occur while in others n

3条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-28 19:58

    Short answer : glitch = inonconsistent/illegal/meaningless state.

    Here is a relevant link : https://social.msdn.microsoft.com/Forums/en-US/bc2c4b71-c97b-428e-ad71-324055a3cd03/another-discussion-on-glitches-and-rx?forum=rx

    Also, see the 29th minute of Sodium's author talk for another answer : http://youtu.be/gaG3tIb3Lbk.

    And a relevant SOF answer : how to avoid glitches in Rx

    So here is my understanding of what a glitch is based on Tomas' answer.

    There is a dataflow graph, with 3 nodes : A, B, C

    A->B

    A->C

    In this simple example, a glitch happens if I change A and that causes to change B but C has not been updated yet. This is a glitch.

    C is not consistent with B.

    Say B=2*A, C=2*A.

    Then if B is not equal C then that is a glitch.

提交回复
热议问题