Interfacing Haskell with object-oriented languages

被引:0
|
作者
Pang, ATH [1 ]
Chakravarty, MMT [1 ]
机构
[1] Univ New S Wales, Sch Comp Sci & Engn, Sydney, NSW, Australia
来源
关键词
D O I
暂无
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
The interfacing of object-oriented languages with functional languages, in general, and with Haskell, in particular, has received a considerable amount of attention. Previous work, including Lambada, a Haskell to Java bridge, showed how an object-oriented class hierarchy can be modeled using Haskell type classes, such that Java libraries can be used conveniently from Haskell. The present paper extends this previous work in two major directions. Firstly, we describe a new implementation of object-oriented style method calls and overloading in Haskell, using multi-paxameter type classes and functional dependencies. This enables calling of a foreign object's methods in a syntactically convenient, type-safe manner. Secondly, we sketch an approach to automating the generation of library bindings using compile-time meta-programming for object-oriented frameworks featuring reflection. We have evaluated the practicality of our approach by implementing a Haskell binding to the Objective-C language on the Mac OS X platform.
引用
收藏
页码:20 / 35
页数:16
相关论文
共 50 条
  • [21] Constrained Types for Object-Oriented Languages
    Nystrom, Nathaniel
    Saraswat, Vijay
    Palsberg, Jens
    Grothoff, Christian
    [J]. OOPSLA 2008 NASHVILLE, CONFERENCE PROCEEDINGS: MUSIC CITY USA, OOPSLA, 2008, : 457 - +
  • [22] Correspondence polymorphism for object-oriented languages
    Rinat, R
    Smith, SF
    Magidor, M
    [J]. ACM SIGPLAN NOTICES, 1999, 34 (10) : 167 - 186
  • [23] Macro processing in object-oriented languages
    Chiba, S
    [J]. TOOLS 28: TECHNOLOGY OF OBJECT-ORIENTED LANGUAGES, PROCEEDINGS, 1998, 28 : 113 - 126
  • [24] SELECTIVE SPECIALIZATION FOR OBJECT-ORIENTED LANGUAGES
    DEAN, J
    CHAMBERS, C
    GROVE, D
    [J]. SIGPLAN NOTICES, 1995, 30 (06): : 93 - 102
  • [25] Contract soundness for object-oriented languages
    Findler, RB
    Felleisen, M
    [J]. ACM SIGPLAN NOTICES, 2001, 36 (11) : 1 - 15
  • [26] TEACHING OBJECT-ORIENTED PROGRAMMING IS MORE THAN TEACHING OBJECT-ORIENTED PROGRAMMING-LANGUAGES
    KNUDSEN, JL
    MADSEN, OL
    [J]. LECTURE NOTES IN COMPUTER SCIENCE, 1988, 322 : 21 - 40
  • [27] Current research on object-oriented programming languages
    Mei, Hong
    Wang, Lifu
    Yang, Fuqing
    [J]. Tien Tzu Hsueh Pao/Acta Electronica Sinica, 1995, 23 (10): : 50 - 56
  • [28] A PRACTICAL COMPARISON OF 2 OBJECT-ORIENTED LANGUAGES
    WOLF, W
    [J]. IEEE SOFTWARE, 1989, 6 (05) : 61 - 68
  • [29] Vortex: An optimizing compiler for object-oriented languages
    Dean, J
    DeFouw, G
    Grove, D
    Litvinov, V
    Chambers, C
    [J]. ACM SIGPLAN NOTICES, 1996, 31 (10) : 83 - 100
  • [30] Type systems of object-oriented programming languages
    Li, Xiaoyan
    Li, Bin
    [J]. Xiaoxing Weixing Jisuanji Xitong/Mini-Micro Systems, 2000, 21 (06): : 650 - 652