Personal tools

Yampa

From HaskellWiki

(Difference between revisions)
Jump to: navigation, search
(Updated links to FRVR source code, George Giorgidze, Euterpea: From signals to symphonies)
(Introduction: Updated ITU-FRP lecture notes links)
Line 7: Line 7:
 
== Introduction ==
 
== Introduction ==
  
* [http://www.cs.nott.ac.uk/~nhn/FoPAD2007/Talks/nhn-FoPAD2007.pdf Henrik Nilsson - A Brief Introduction to Functional Reactive Programming and Yampa]
+
* [http://www.cs.nott.ac.uk/~psznhn/FoPAD2007/Talks/nhn-FoPAD2007.pdf Henrik Nilsson - A Brief Introduction to Functional Reactive Programming and Yampa]
* [http://www.cs.nott.ac.uk/~nhn/ITU-FRP2010/ Henrik Nilsson - ITU-FRP2010]
+
* [http://www.cs.nott.ac.uk/~psznhn/ITU-FRP2010/ Henrik Nilsson - ITU-FRP2010]
** [http://www.cs.nott.ac.uk/~nhn/ITU-FRP2010/LectureNotes/lecture01.pdf ITU-FRP2010 01]
+
** [http://www.cs.nott.ac.uk/~psznhn/ITU-FRP2010/LectureNotes/lecture01.pdf ITU-FRP2010 01]
** [http://www.cs.nott.ac.uk/~nhn/ITU-FRP2010/LectureNotes/lecture02.pdf ITU-FRP2010 02]
+
** [http://www.cs.nott.ac.uk/~psznhn/ITU-FRP2010/LectureNotes/lecture02.pdf ITU-FRP2010 02]
** [http://www.cs.nott.ac.uk/~nhn/ITU-FRP2010/LectureNotes/lecture03.pdf ITU-FRP2010 03]
+
** [http://www.cs.nott.ac.uk/~psznhn/ITU-FRP2010/LectureNotes/lecture03.pdf ITU-FRP2010 03]
** [http://www.cs.nott.ac.uk/~nhn/ITU-FRP2010/LectureNotes/lecture04.pdf ITU-FRP2010 04]
+
** [http://www.cs.nott.ac.uk/~psznhn/ITU-FRP2010/LectureNotes/lecture04.pdf ITU-FRP2010 04]
** [http://www.cs.nott.ac.uk/~nhn/ITU-FRP2010/LectureNotes/lecture05.pdf ITU-FRP2010 05]
+
** [http://www.cs.nott.ac.uk/~psznhn/ITU-FRP2010/LectureNotes/lecture05.pdf ITU-FRP2010 05]
** [http://www.cs.nott.ac.uk/~nhn/ITU-FRP2010/LectureNotes/lecture06.pdf ITU-FRP2010 06]
+
** [http://www.cs.nott.ac.uk/~psznhn/ITU-FRP2010/LectureNotes/lecture06.pdf ITU-FRP2010 06]
** [http://www.cs.nott.ac.uk/~nhn/ITU-FRP2010/LectureNotes/lecture07.pdf ITU-FRP2010 07]
+
** [http://www.cs.nott.ac.uk/~psznhn/ITU-FRP2010/LectureNotes/lecture07.pdf ITU-FRP2010 07]
 
* [http://www.cs.yale.edu/homes/hudak/CS429F04/LectureSlides/YampaForCs429.ppt Paul Hudak - Yampa, Arrows, and Robots]
 
* [http://www.cs.yale.edu/homes/hudak/CS429F04/LectureSlides/YampaForCs429.ppt Paul Hudak - Yampa, Arrows, and Robots]
 
* Yampa tutorials by [http://lambdor.net Gerold Meisinger]
 
* Yampa tutorials by [http://lambdor.net Gerold Meisinger]

Revision as of 21:43, 17 September 2015

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.

Hackage: Yampa

Contents

1 Introduction

2 Primitive signal functions

Yampa signal functions.png

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

3 Switches

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'.

4 Reactimation

5 External Links

6 Known users

search Hackage

  • 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
  • cuboid; a small puzzle game
  • Haskelloids; asteroids clone
  • Nettle - Programming Network Routers
  • Euterpea - computer music development (also uses CCA)
  • YFrob; robot simulation
  • Haskanoid A breakout-like videogame with SDL graphics and sound that can optionally be controlled with a Wiimote.

search Github

7 Known forks