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 条
  • [1] Functional programming in java']java
    Zander, M
    DR DOBBS JOURNAL, 2005, 30 (11): : 60 - 63
  • [2] Compiling lazy functional programs to Java']Java bytecode
    Meehan, G
    Joy, M
    SOFTWARE-PRACTICE & EXPERIENCE, 1999, 29 (07): : 617 - 645
  • [3] Java']Java as a functional programming language
    Setzer, A
    TYPES FOR PROOFS AND PROGRAMS, 2002, 2646 : 279 - 298
  • [4] Lazy Composition of Representations in Java']Java
    Douence, Remi
    Lorca, Xavier
    Loriant, Nicolas
    SOFTWARE COMPOSITION, PROCEEDINGS, 2009, 5634 : 55 - +
  • [5] Compiling lazy functional programs to Java bytecode
    Meehan, Gary
    Mike, Joy
    Software - Practice and Experience, 1999, 29 (07): : 617 - 645
  • [6] Reasoning about Functional Programming in Java']Java and C plus
    Cok, David R.
    COMPANION PROCEEDINGS FOR THE ISSTA/ECOOP 2018 WORKSHOPS, 2018, : 37 - 39
  • [7] Programming in Java']Java
    Rudall, BH
    ROBOTICA, 1997, 15 : 202 - 202
  • [8] Build System with Lazy Retrieval for Java']Java Projects
    Celik, Ahmet
    Knaust, Alex
    Milicevic, Aleksandar
    Gligoric, Milos
    FSE'16: PROCEEDINGS OF THE 2016 24TH ACM SIGSOFT INTERNATIONAL SYMPOSIUM ON FOUNDATIONS OF SOFTWARE ENGINEERING, 2016, : 643 - 654
  • [9] SPMD programming in Java']Java
    Hummel, SF
    Ngo, T
    Srinivasan, H
    CONCURRENCY-PRACTICE AND EXPERIENCE, 1997, 9 (06): : 621 - 631
  • [10] Is Java']Java for scientific programming?
    Dubois, PF
    COMPUTERS IN PHYSICS, 1997, 11 (06): : 611 - +