Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
skip to main content
10.1145/1735935.1735956acmotherconferencesArticle/Chapter ViewAbstractPublication PagesiwstConference Proceedingsconference-collections
research-article

Language-shifting objects from Java to Smalltalk: an exploration using JavaConnect

Published: 31 August 2009 Publication History

Abstract

Foreign-function interfaces enable programs in a host language to interoperate with programs written in another language and vice-versa. Two languages that feature such an interface to a common language can even interoperate by means of this common intermediate language. Smalltalk and Java, for example, both offer an interface to C and can therefore interoperate through a connection of these interfaces. However, the resulting interactions will need to occur at the level of abstraction offered by the (low-level) C interfaces, although both Java and Smalltalk are object-oriented languages. In this paper, we describe how the dynamic and reflective facilities of the Smalltalk language permits us to raise the level of abstraction of these inter-language interactions to seamless message passing between objects. In addition, we introduce and explore the concept of language shifting objects where Java objects are not only represented in Smalltalk but can partially or completely migrate from Java to Smalltalk. Language-shifting effectively migrates Java methods to Smalltalk methods such that original Java objects can end up "living" in the Smalltalk environment without needing a connection to their originating Java environment.

References

[1]
Clojure. http://clojure.org.
[2]
Java native interface. http://java.sun.com.
[3]
JavaConnect. http://www.info.ucl.ac.be/jbrichau/javaconnect.html.
[4]
JavaInSt. http://www.smalltalking.net/Goodies/VisualSmalltalk/.
[5]
Jfli - A foreign language interface for Lisp. http://jfli.sourceforge.net/.
[6]
JNIPort. http://jniport.wikispaces.com/.
[7]
JRuby. http://www.jruby.org.
[8]
st/JVM. http://www.smalltalkmigrations.com/stjvm.htm.
[9]
The Pharo Project. http://www.pharo-project.org.
[10]
Visualworks Smalltalk. http://www.cincomsmalltalk.com.
[11]
E. Gamma, R. Helm, R. Johnson, and J. Vlissides. Design Patterns, Elements of Reusable Object-Oriented Software. Addison-Wesley, 1995.

Cited By

View all
  • (2019)On the integration of Smalltalk and JavaScience of Computer Programming10.1016/j.scico.2013.10.01196:P1(17-33)Online publication date: 1-Jan-2019
  • (2018)Cross-component garbage collectionProceedings of the ACM on Programming Languages10.1145/32765212:OOPSLA(1-24)Online publication date: 24-Oct-2018
  • (2012)On the integration of Smalltalk and JavaProceedings of the International Workshop on Smalltalk Technologies10.1145/2448963.2448968(1-12)Online publication date: 28-Aug-2012

Index Terms

  1. Language-shifting objects from Java to Smalltalk: an exploration using JavaConnect

    Recommendations

    Comments

    Information & Contributors

    Information

    Published In

    cover image ACM Other conferences
    IWST '09: Proceedings of the International Workshop on Smalltalk Technologies
    August 2009
    143 pages
    ISBN:9781605588995
    DOI:10.1145/1735935
    Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

    Sponsors

    • ESUG

    In-Cooperation

    Publisher

    Association for Computing Machinery

    New York, NY, United States

    Publication History

    Published: 31 August 2009

    Permissions

    Request permissions for this article.

    Check for updates

    Author Tags

    1. automatic translation
    2. interlanguage communication
    3. language integration

    Qualifiers

    • Research-article

    Conference

    IWST '09
    Sponsor:

    Acceptance Rates

    Overall Acceptance Rate 25 of 27 submissions, 93%

    Contributors

    Other Metrics

    Bibliometrics & Citations

    Bibliometrics

    Article Metrics

    • Downloads (Last 12 months)0
    • Downloads (Last 6 weeks)0
    Reflects downloads up to 09 Jan 2025

    Other Metrics

    Citations

    Cited By

    View all
    • (2019)On the integration of Smalltalk and JavaScience of Computer Programming10.1016/j.scico.2013.10.01196:P1(17-33)Online publication date: 1-Jan-2019
    • (2018)Cross-component garbage collectionProceedings of the ACM on Programming Languages10.1145/32765212:OOPSLA(1-24)Online publication date: 24-Oct-2018
    • (2012)On the integration of Smalltalk and JavaProceedings of the International Workshop on Smalltalk Technologies10.1145/2448963.2448968(1-12)Online publication date: 28-Aug-2012

    View Options

    Login options

    View options

    PDF

    View or Download as a PDF file.

    PDF

    eReader

    View online with eReader.

    eReader

    Media

    Figures

    Other

    Tables

    Share

    Share

    Share this Publication link

    Share on social media