Difference between revisions of "Yampa"

From HaskellWiki
Jump to: navigation, search
(use HackagePackage template)
(Known forks: Yampa-core)
Line 75: Line 75:
== Known forks ==
== Known forks ==
* [https://github.com/ony/Yampa-core Yampa-core]
** [http://mailman.cs.yale.edu/pipermail/yampa-users/2012-May/ related discussion]
* [https://github.com/eamsden/Animas Animas]
* [https://github.com/eamsden/Animas Animas]
** code cleanup
** code cleanup

Revision as of 21:32, 27 May 2012

Yampa is a domain-specific embedded language for the programming of hybrid (discrete and continuous time) systems using the concepts of Functional Reactive Programming (FRP). Yampa is structured using Arrows, which greatly reduce the chance of introducing space- and time-leaks into reactive, time-varying systems.

Yampa was originally developed by the Yale Haskell Group based on the original idea of Conal Elliott's Fran.

Download Animas (most up to date Yampa fork, or download original Yampa)


Primitive signal functions

Yampa signal functions.png

(download original Image:Yampa signal functions.svg‎)


Each switch comes in two different flavors:

  1. immediate: switch to the new behaviour immediately and also calculate the return value based on the new behaviour.
  2. delayed: return the value based on the old behaviour, but use the new behaviour afterwards. To use delayed switch prefix the switching functions with the letter 'd', f.e. 'drpSwitchB'.


External Links

Known users

  • YampaSynth - is a software synthesizer implemented in Haskell using Yampa. It contains a framework of sound generating and sound shaping modules (e.g. oscillator, amplifier, mixer, envelope generator, filter, etc.) and example applications.
  • Frag; a simple Quake 3 clone, using a very early version of Yampa called arrowized functional reactive programming (AFRP)
  • SpaceInvaders; a video game, demonstrating the usage of Yampa
  • Nettle - Programming Network Routers
  • Euterpea - computer music development (also uses CCA)

Known forks