Efficient and compositional higher-order streams

  • Authors:
  • Gergely Patai

  • Affiliations:
  • Budapest University of Technology and Economics, Budapest, Hungary

  • Venue:
  • WFLP'10 Proceedings of the 19th international conference on Functional and constraint logic programming
  • Year:
  • 2010

Quantified Score

Hi-index 0.00

Visualization

Abstract

Stream-based programming has been around for a long time, but it is typically restricted to static data-flow networks. By introducing first-class streams that implement the monad interface, we can describe arbitrary dynamic networks in an elegant and consistent way using only two extra primitives besides the monadic operations. This paper presents an efficient stream implementation and demonstrates the compositionality of the constructs by mapping them to functions over natural numbers.