zoukankan      html  css  js  c++  java
  • Reactive programming-文章解析

    数据源(信息源):静态的数组、动态的流;

    In computingreactive programming is a declarative programming paradigm concerned with data streams and the propagation of change. This means that it becomes possible to express static (e.g. arrays) or dynamic (e.g. event emitters) data streams with ease via the employed programming language(s),

    需要支撑机制

    and that an inferred dependency within the associated execution model exists, which facilitates the automatic propagation of the change involved with data flow.

    Programming Models and Semantics[edit]

    A variety of models and semantics govern the family of reactive programming. We can loosely split them along the following dimensions:

    • Synchrony: is the underlying model of time synchronous versus asynchronous?
    • Determinism: Deterministic versus non-deterministic in both evaluation process and results (the former does not necessarily imply the latter)
    • Update process: callbacks versus dataflow versus actors

    Static or Dynamic[edit]

    Reactive programming can be purely static where the data flows are set up statically, or be dynamic where the data flows can change during the execution of a program.

    The use of data switches in the data flow graph could to some extent make a static data flow graph appear as dynamic, and blur the distinction slightly. True dynamic reactive programming however could use imperative programming to reconstruct the data flow graph.

    Higher-order reactive programming[edit]

    Reactive programming could be said to be of higher order if it supports the idea that data flows could be used to construct other data flows. That is, the resulting value out of a data flow is another data flow graph that is executed using the same evaluation model as the first.

    Similarities with observer pattern[edit]

    Reactive programming has principal similarities with the observer pattern commonly used in object-oriented programming. However, integrating the data flow concepts into the programming language would make it easier to express them and could therefore increase the granularity of the data flow graph. For example, the observer pattern commonly describes data-flows between whole objects/classes, whereas object-oriented reactive programming could target the members of objects/classes.

  • 相关阅读:
    vip视频播放
    一行Python代码画心型
    使用赫夫曼编码压缩数据
    动态规划与贪婪算法学习笔记
    boost 编写finger服务
    磁盘保护原理简介
    知乎上的一道题目 如何判断某个二进制数如是否存在两位1中间有包含0的情况?
    <Linux多线程服务端编程>学习记录
    Debian8 下面 muduo库编译与使用
    无盘工作站原理分析
  • 原文地址:https://www.cnblogs.com/feng9exe/p/8668906.html
Copyright © 2011-2022 走看看