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 条
  • [1] Interfacing to legacy and object-oriented environments
    Healton, B
    [J]. TWENTY-SECOND ANNUAL INTERNATIONAL COMPUTER SOFTWARE & APPLICATIONS CONFERENCE - PROCEEDINGS, 1998, : 72 - 77
  • [2] OBJECT-ORIENTED LANGUAGES FOR THE MACINTOSH
    SCHMUCKER, KJ
    [J]. BYTE, 1986, 11 (08): : 177 - &
  • [3] COMPARING OBJECT-ORIENTED LANGUAGES
    WARREN, RL
    [J]. DR DOBBS JOURNAL, 1994, 19 (03): : 10 - 10
  • [4] A Tale of Object-Oriented Languages
    Onodera, Tamiya
    [J]. Computer Software, 2024, 41 (03) : 56 - 61
  • [5] EXCEPTIONS IN OBJECT-ORIENTED LANGUAGES
    BORGIDA, A
    [J]. SIGPLAN NOTICES, 1986, 21 (10): : 107 - 119
  • [6] FOUNDATIONS OF OBJECT-ORIENTED LANGUAGES
    BLACK, A
    PALSBERG, J
    [J]. SIGPLAN NOTICES, 1994, 29 (03): : 3 - 11
  • [7] THE FUTURE OF OBJECT-ORIENTED LANGUAGES
    ANDERSON, J
    SUZUKI, N
    BORNING, A
    STEFIK, M
    THOMAS, D
    LIEBERMAN, H
    [J]. SIGPLAN NOTICES, 1986, 21 (11): : 507 - 507
  • [8] Foundations of object-oriented languages
    Bruce, K
    Remy, D
    [J]. INFORMATION AND COMPUTATION, 2002, 172 (01) : 1 - 1
  • [9] COMPARING OBJECT-ORIENTED LANGUAGES
    FLOYD, M
    [J]. DR DOBBS JOURNAL, 1993, 18 (10): : 104 - &
  • [10] Constrained Types for Object-Oriented Languages
    Nystrom, Nathaniel
    Saraswat, Vijay
    Palsberg, Jens
    Grothoff, Christian
    [J]. ACM SIGPLAN NOTICES, 2008, 43 (10) : 457 - 474