Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/athanclark/purescript-zeta
Signals from outer space
https://github.com/athanclark/purescript-zeta
handler purescript purescript-zeta signal
Last synced: 3 months ago
JSON representation
Signals from outer space
- Host: GitHub
- URL: https://github.com/athanclark/purescript-zeta
- Owner: athanclark
- License: bsd-3-clause
- Created: 2017-11-29T18:49:08.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2020-04-23T09:58:14.000Z (over 4 years ago)
- Last Synced: 2024-07-02T13:05:02.039Z (4 months ago)
- Topics: handler, purescript, purescript-zeta, signal
- Language: PureScript
- Size: 61.5 KB
- Stars: 5
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-purescript - purescript-zeta - An alternative signal implementation in PureScript. (Asynchronicity and Parallelism)
README
# PureScript-Zeta
[![Build Status](https://travis-ci.org/athanclark/purescript-zeta.svg?branch=master)](https://travis-ci.org/athanclark/purescript-zeta)
[![Pursuit](https://pursuit.purescript.org/packages/purescript-zeta/badge)](https://pursuit.purescript.org/packages/purescript-zeta)> Signals from outer space
This library is a competing Signaling implementation, modeled after
Bodil's [purescript-signal library](https://pursuit.purescript.org/packages/purescript-signal).It's differences?
- Zeta Signals are traversable, but not functors, because mapping over a signal creates a new one (signals are references)
- There's an included `Foreign.Object.Object`-based signaling system for dynamic handler setsGenerally, I just wanted a pure implementation of Bodil's Signal library - this one
is probably much slower, and will break api compliance, so fair warning!Philosophically, this library complements [purescript-queue](https://pursuit.purescript.org/packages/purescript-queue/1.1.1)
in the following ways:- Queues pass messages to handlers, while Signals maintain a single state acknowledged by handlers
- Both Queues and Signals can have multiple handlers
- Signal handlers are informed of a whole value when reassigned, while Queues are informed of intentional message submissions