ACM Home Page
Please provide us with feedback. Feedback
A comparison of three approaches to language, compiler, and library support for multidimensional arrays in Java
Full text PdfPdf (790 KB)
Source Java Grande Conference archive
Proceedings of the 2001 joint ACM-ISCOPE conference on Java Grande table of contents
Palo Alto, California, United States
Pages: 116 - 125  
Year of Publication: 2001
ISBN:1-58113-359-6
Authors
José E. Moreira  IBM T. J. Watson Research Center, Yorktown Heights, NY
Samuel P. Midkiff  IBM T. J. Watson Research Center, Yorktown Heights, NY
Manish Gupta  IBM T. J. Watson Research Center, Yorktown Heights, NY
Sponsor
SIGPLAN: ACM Special Interest Group on Programming Languages
Publisher
ACM  New York, NY, USA
Bibliometrics
Downloads (6 Weeks): 0,   Downloads (12 Months): 19,   Citation Count: 2
Additional Information:

abstract   references   cited by   index terms   collaborative colleagues  

Tools and Actions: Review this Article  
DOI Bookmark: Use this link to bookmark this Article: http://doi.acm.org/10.1145/376656.376831
What is a DOI?

ABSTRACT

The lack of direct support for multidimensional arrays in Java™ has been recognized as a major deficiency in the language's applicability to numerical computing. The typical approach to adding multidimensional arrays to Java has been through class libraries that implement these structures. It has been shown that the class library approach can achieve very high-performance for numerical computing, through the use of compiler techniques and efficient implementations of aggregate array operations. Because of the inconvenience of accessing array elements through method invocations, it is advocated by many that class libraries for multidimensional arrays should be combined with new language syntax to facilitate manipulation of those multidimensional arrays. Another approach that has been discussed in the literature is that of relying exclusively on the JVM to recognize those arrays of arrays that are being used to stimulate multidimensional arrays. This approach can also deliver good performance, but it does not improve the existing interfaces for numerical computing. There is yet a third approach: extending the Java language with new syntactic constructs for multidimensional arrays and directly compiling those constructs to bytecode. The new constructs provide a more convenient interface for numerical computing, without requiring a matching class library. This paper is a comparative discussion or the three approaches to adding multidimensional arrays to Java mentioned above. We present a description of the three approaches, listing the pros and cons of each. We give a more detailed description of the third approach — language constructs translated to bytecode — as it is a new contribution. We compare each of the approaches with regards to functionality, impact on the language and virtual machine specification, implementation efforts, and typical achievable performance. We show that the best choice depends on the relative importance attached to the above metrics.


REFERENCES

Note: OCR errors may be found in this Reference List extracted from the full text article. ACM has opted to expose the complete List rather than only correct and linked references.

 
1
JSR-083, Java TM Multiarray Package. URL: http://java.sun.com/aboutJava/ communityprocess/jsr/ jsr_O83_multiarray, html.
 
2
R V. Artigas, M. Gupta, S. P. Midkiff, and J. E. Moreira. Applying high order transformations to Java. In Workshop on Compilers for Parallel Computing, pages 105-122, Aussois, France, January 2000. IBM Research Report RC21609.
3
4
 
5
R. E Boisvert, J. J. Dongarra, R. Pozo, K. A. Remington, and G. W. Stewart. Developing numerical libraries in Java. Concurrency, Pract. Exp. (UK), 10(11-13): I 117-29, September-November 1998. ACM 1998 Workshop on Java for High-Performance Network Computing. URL: http : //www. cs. ucsb. edu/ conferences/java 9 8.
6
 
7
M. Ciemiak and W. Li. Just-in-time optimization for high-performance Java programs. Concurrency, Pract. Exp. (UK), 9(11): 1063-73, November 1997.
 
8
J. D. Darcy. Borneo: Adding IEEE 754 floating point support to Java. Master's thesis, Computer Science Division, University of California, Berkeley, May 1998.
 
9
V. Getov, S. Flynn-Hummel, and S. Mintchev. High-performance parallel programming in Java: Exploiting native libraries. In ACM 1998 Workshop on Java for High-Performance Network Computing. ACM SIGPLAN, 1998. URL: http:// www. CS. ucsb. edu/conferences/java9 8.
 
10
Edwin Gunthner and Michael Philippsen. Complex numbers for Java. Concurrency: Practice and Experience, 12(6):477--491, May 2000.
 
11
12
13
 
14
 
15
M. Philippsen and E. Gianthner. cj: A new approach for the efficient use of complex numbers in Java. URL: http://wwwipd. ira. uka. de/gunthner/.
 
16
M. Schwab and J. Schroeder. Algebraic Java classes for numerical optimization. In ACM 1998 Workshop on Java for High-Performance Network Computing. ACM SIGPLAN, 1998. URL:http:// www. CS. ucsb. edu/conferences/java9 8.
 
17
C. van Reeuwijk, F. Kuijlman, H.J. Sips, and S.V. Niemeijer. Data-parallel programming in Spar/Java. In Proceedings of the Second Annual Workshop on Java for High-Performance Computing, Santa Fe, New Mexico, pages 5 I--66, May 2000.
18
 
19
Yelick, Semenzato, Pike, Miyamoto, Liblit, Krishnamurthy, Hilfinger, Graham, Gay, Colella, and Aiken. Titanium: A high-performance Java dialect. In ACM 1998 Workshop on Java for High-Performance Network Computing. ACM SIGPLAN, 1998. URL: http://www. cs. ucsb. edu/ conferences/java98.


Collaborative Colleagues:
José E. Moreira: colleagues
Samuel P. Midkiff: colleagues
Manish Gupta: colleagues