• Media type: E-Article
  • Title: Jeannie : granting java native interface developers their wishes : granting java native interface developers their wishes
  • Contributor: Hirzel, Martin; Grimm, Robert
  • Published: Association for Computing Machinery (ACM), 2007
  • Published in: ACM SIGPLAN Notices, 42 (2007) 10, Seite 19-38
  • Language: English
  • DOI: 10.1145/1297105.1297030
  • ISSN: 0362-1340; 1558-1160
  • Origination:
  • Footnote:
  • Description: <jats:p>Higher-level languages interface with lower-level languages such as C to access platform functionality, reuse legacy libraries, or improve performance. This raises the issue of how to best integrate different languages while also reconciling productivity, safety, portability, and efficiency. This paper presents Jeannie, a new language design for integrating Java with C. In Jeannie, both Javaand C code are nested within each other in the same file and compile down to JNI, the Java platform's standard foreign function interface. By combining the two languages' syntax and semantics, Jeannie eliminates verbose boiler-plate code, enables static error detection across the language boundary, and simplifies dynamic resource management. We describe the Jeannie language and its compiler, while also highlighting lessons from composing two mature programming languages.</jats:p>