Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What are some Python libraries written to demostrate Functional Reactive Programming? [closed]

We handle huge data streams through our socket servers and in need of a non-block way to management callbacks to prevent race conditions.

Recently I came to know about functional reactive programming a method of programming and the solution is just what we are looking for.

There are examples in Haskell (reactive banana), ClojureScript and Javascript (bacon js), but none for python. Are there any libraries written for Python enabling Functional Reactive Programming? If there aren't any libraries, where is a good place to start? What are the possible challenges to write one?

like image 786
rendykstan Avatar asked Jul 09 '13 06:07

rendykstan


People also ask

What is reactive programming in Python?

Reactive Programming is a programming paradigm oriented around data flows and the propagation of change. This means that, when a data flow is emitted by one component, the Reactive Programming library will automatically propagate those changes to other components until it reaches the final receiver.

Is reactive programming same as functional programming?

Functional programming paradigm is built upon the idea that everything is a pure function. Reactive programming paradigm is built upon the idea that everything is a stream observer and observable philosophy.

Is reactive programming functional?

Functional reactive programming (FRP) is a paradigm that combines the reactivity from reactive programming with the declarative function composition from functional programming. It simplifies complex tasks, creates elegant user interfaces, and manages state smoothly.

What is a reactive programming language?

Reactive programming describes a design paradigm that relies on asynchronous programming logic to handle real-time updates to otherwise static content. It provides an efficient means -- the use of automated data streams -- to handle data updates to content whenever a user makes an inquiry.


2 Answers

There's an official Microsoft wip Rx (Reactive Extensions) implementation for Python called Rx.py.

This project targets Python 3.

like image 133
Omer Mor Avatar answered Sep 23 '22 17:09

Omer Mor


I just checked the Wikipedia article on reactive programming, and in there, three modules are mentioned. You could check those out:

  • Trellis
  • Yoopf
  • Traits
like image 22
kramer65 Avatar answered Sep 22 '22 17:09

kramer65