Infinite streams in Java
Loading...
Authors
Author (Corporation)
Publication date
2006
Typ of student thesis
Course of study
Collections
Type
04B - Conference paper
Editor (Corporation)
Supervisor
Parent work
Proceedings of the 4th international conference on principles and practices of programming in Java
Special issue
DOI of the original publication
Link
Series
ACM international conference proceedings series
Series number
Volume
Issue / Number
Pages / Duration
182-187
Patent number
Publisher / Publishing institution
ACM
Place of publication / Event location
Mannheim
Edition
Version
Programming language
Assignee
Practice partner / Client
Abstract
Programming languages which support lazy evaluation allow the definition of infinite streams as for example the stream of natural numbers or of prime numbers. Such streams are infinite in the sense that arbitrary many elements can be accessed as these elements are computed "on demand". This paper describes how infinite streams can be implemented in Java, a language which does not support lazy evaluation directly. Two possible implementations are described and compared. Furthermore it is shown how streams can be defined as fixed points of maps on infinite streams and how formal power series can be defined using infinite streams. As user interface to work with such streams Groovy is used.
Keywords
Subject (DDC)
Event
4th international conference on principles and practices of programming in Java
Exhibition start date
Exhibition end date
Conference start date
30.08.2006
Conference end date
01.09.2006
Date of the last check
ISBN
978-3-939352-05-1
ISSN
Language
English
Created during FHNW affiliation
Yes
Strategic action fields FHNW
Publication status
Published
Review
Peer review of the complete publication
Open access category
Closed
License
Citation
Gruntz, D. (2006). Infinite streams in Java. In R. Gitzel, M. Aleksy, M. Schader, & C. Krintz (Eds.), Proceedings of the 4th international conference on principles and practices of programming in Java (pp. 182–187). ACM. https://doi.org/10.1145/1168054.1168080