Lazy functional programming in Java']Java

被引:3
|
作者
Dekker, AH [1 ]
机构
[1] Def Sci & Technol Org, Dept Def, Canberra, ACT 2600, Australia
关键词
lazy lists; functional programming; !text type='Java']Java[!/text;
D O I
10.1145/1140543.1140549
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
In this paper, we show how lazy functional programming techniques can be used within the Java programming language. We provide Java implementations of classic examples of lazy lists, such as the Sieve of Eratosthenes, the Eight Queens Problem, and natural-language parsing. We discuss how well these implementations succeed, compared to their original counterparts. We also point out the potential synergy between adding lazy techniques to Java, and adding generic types. The examples we provide would be suitable for teaching functional programming concepts in the context of a Java-based syllabus.
引用
收藏
页码:30 / 39
页数:10
相关论文
共 50 条
  • [41] Coping with Java']Java programming stress
    Alexander, RT
    Bieman, JM
    Viega, J
    COMPUTER, 2000, 33 (04) : 30 - +
  • [42] ClojureScript: Functional Programming for Java']JavaScript Platforms
    McGranaghan, Mark
    IEEE INTERNET COMPUTING, 2011, 15 (06) : 97 - 102
  • [43] Java']Java-MOP: A monitoring oriented programming environment for Java']Java
    Chen, F
    Rosu, G
    TOOLS AND ALGORITHMS FOR THE CONSTRUCTION AND ANALYSIS OF SYSTEMS, PROCEEDINGS, 2005, 3440 : 546 - 550
  • [44] Java']Java memory allocation with lazy worst fit for small objects
    Choi, HK
    Chung, YC
    Moon, SM
    COMPUTER JOURNAL, 2005, 48 (04): : 437 - 442
  • [45] Compiling lazy functional programs based on the spineless tagless G-machine for the Java']Java virtual machine
    Choi, K
    Lim, HI
    Han, T
    FUNCTIONAL AND LOGIC PROGRAMMING, PROCEEDINGS, 2001, 2024 : 92 - 107
  • [46] JS']JSetL: a Java']Java library for supporting declarative programming in Java']Java
    Rossi, G.
    Panegai, E.
    Poleo, E.
    SOFTWARE-PRACTICE & EXPERIENCE, 2007, 37 (02): : 115 - 149
  • [47] Practical Methods for Reasoning About Java']Java 8's Functional Programming Features
    Cok, David R.
    Tasiran, Serdar
    VERIFIED SOFTWARE: THEORIES, TOOLS, AND EXPERIMENTS, (VSTTE 2018), 2018, 11294 : 267 - 278
  • [48] Research on Educational Reform of Java']Java Programming
    Cui, Limei
    PROCEEDINGS OF THE 2016 6TH INTERNATIONAL CONFERENCE ON MECHATRONICS, COMPUTER AND EDUCATION INFORMATIONIZATION (MCEI 2016), 2016, 130 : 710 - 713
  • [49] Teaching Parallel Programming with Java']Java and Pyjama
    Kurniawati, Ruth
    PROCEEDINGS OF THE 53RD ACM TECHNICAL SYMPOSIUM ON COMPUTER SCIENCE EDUCATION (SIGCSE 2022), VOL 2, 2022, : 1109 - 1109
  • [50] Using Java']Java for scientific programming and electromagnetics
    Martin, J
    Long, LN
    Morooney, KM
    COMPUTERS IN PHYSICS, 1998, 12 (06): : 601 - 607