Giter Club home page Giter Club logo

pyqt-demo's Introduction

A PyQt Demo for Reentrant Application Framework (RAF)

The concept of RAF is proposed to demonstrate the possibility of developing interruptible applications. A RAF application is loosely decoupled into multiple descriptors with channels to maintain the data stream. The structure could be described via Directed Cyclic Graph. Each descriptor could run on different devices connected via wireguard

The Design

Each descriptor should implement the retain/restore primitives to maintain its own state, e.g., I/O devices, file system, graphics buffer, network connection, etc.

The channel is also implemented as a descriptor which is responsible to share data between the descriptors. The design of channel model is multi-fold.

Subscriptions:

  • shared (default): on-demand uni/bi-direction
  • propagate: best-effort uni/bi-direction
  • tether: real-time bi-direction
  • stream: uni-direction with sampling frequency

Efficiency:

  • intra-process channel should use shared memory space in stack;
  • inter-process channel may use dual multiprocessing.Queue;
  • inter-remote channel may use dual UDP sockets.

Reliability:

  • fec: FEC-encoded correction
  • lossy: lossy compression for multimedia buffer

Notes

  1. PyRAF is not a P2P framework, the APP is hosted by the device with the Yggdrasil;
  2. Yggdrasil is composed of ChannelDescriptors (as truss) and other BaseDescriptors (assembled on truss);
  3. PyRAF enables a high-level garbage collection. The retain/restore cycle can drain the memory leak of the descriptors at the cost of memory overhead.

pyqt-demo's People

Contributors

iamhyc avatar

Watchers

 avatar

pyqt-demo's Issues

Quick Toy Demo

Design Notes

  • @wrap around the handle function, to provide alternative name for channel context;
    • this name could be directly used without self. prefix
  • For channel descriptor, should specify "staleness tolerance", default as strictly sync;
  • The shared variables should start with different prefixes, as group name; when connect the descriptors, the group name should be also specified.

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.