TU Darmstadt / ULB / TUbiblio

new Scala() instance of Java: a Comparison of the Memory Behaviour of Java and Scala Programs

Sewe, Andreas ; Mezini, Mira ; Sarimbekov, Aibek ; Ansaloni, Danilo ; Binder, Walter ; Ricci, Nathan ; Guyer, Samuel Z. (2012)
new Scala() instance of Java: a Comparison of the Memory Behaviour of Java and Scala Programs.
International Symposium on Memory Management. Beijing, China (15-16 Jun 2012)
doi: 10.1145/2258996.2259010
Conference or Workshop Item, Bibliographie

Abstract

While often designed with a single language in mind, managed runtimes like the Java virtual machine~(JVM) have become the target of not one but many languages, all of which benefit from the runtime's services. One of these services is automatic memory management. In this paper, we compare and contrast the memory behaviour of programs written in Java and Scala, respectively, two languages which both target the same platform: the JVM. We both analyze core object demographics like object lifetimes as well as secondary properties of objects like their associated monitors and identity hash-codes. We find that objects in Scala programs have lower survival rates and higher rates of immutability, which is only partly explained by the memory behaviour of objects representing closures or boxed primitives. Other metrics vary more by benchmark than language.

Item Type: Conference or Workshop Item
Erschienen: 2012
Creators: Sewe, Andreas ; Mezini, Mira ; Sarimbekov, Aibek ; Ansaloni, Danilo ; Binder, Walter ; Ricci, Nathan ; Guyer, Samuel Z.
Type of entry: Bibliographie
Title: new Scala() instance of Java: a Comparison of the Memory Behaviour of Java and Scala Programs
Language: English
Date: June 2012
Place of Publication: New York, NY, USA
Publisher: ACM
Book Title: Proceedings of the International Symposium on Memory Management
Series: ISMM '12
Event Title: International Symposium on Memory Management
Event Location: Beijing, China
Event Dates: 15-16 Jun 2012
DOI: 10.1145/2258996.2259010
Corresponding Links:
Abstract:

While often designed with a single language in mind, managed runtimes like the Java virtual machine~(JVM) have become the target of not one but many languages, all of which benefit from the runtime's services. One of these services is automatic memory management. In this paper, we compare and contrast the memory behaviour of programs written in Java and Scala, respectively, two languages which both target the same platform: the JVM. We both analyze core object demographics like object lifetimes as well as secondary properties of objects like their associated monitors and identity hash-codes. We find that objects in Scala programs have lower survival rates and higher rates of immutability, which is only partly explained by the memory behaviour of objects representing closures or boxed primitives. Other metrics vary more by benchmark than language.

Uncontrolled Keywords: Java, object demographics, Scala
Divisions: 20 Department of Computer Science > Software Technology
LOEWE > LOEWE-Zentren > CASED – Center for Advanced Security Research Darmstadt
20 Department of Computer Science
Zentrale Einrichtungen
LOEWE
LOEWE > LOEWE-Zentren
Date Deposited: 17 Apr 2012 14:29
Last Modified: 05 Mar 2013 10:00
PPN:
Export:
Suche nach Titel in: TUfind oder in Google
Send an inquiry Send an inquiry

Options (only for editors)
Show editorial Details Show editorial Details