Scientific programming at the Java platform with a combination of a scripting interpreter with the compiled Groovy engine

  • Authors:
  • Stergios Papadimitriou;Dimosthenis Pappas;Konstantinos Terzidis

  • Affiliations:
  • Department of Information Management, Technological Educational Institute of Kavala, Kavala, Greece;Department of Information Management, Technological Educational Institute of Kavala, Kavala, Greece;Department of Information Management, Technological Educational Institute of Kavala, Kavala, Greece

  • Venue:
  • AIC'08 Proceedings of the 8th conference on Applied informatics and communications
  • Year:
  • 2008

Quantified Score

Hi-index 0.00

Visualization

Abstract

The jLab environment extends the potential of Java for scientific computing. It provides a Matlab/Scilab like scripting language that is executed by an interpreter implemented in the Java language. The scripting language supports the basic programming constructs with Matlab like matrix manipulation operators. The jLab "core" provides the general purpose functionality with an extensive set of built in mathematical routines that cover all the basic numerical analysis tasks. The important advantage of jLab compared to other similar environments is the potentiality to dynamically and automatically integrate Java code to the system in order to obtain both execution speed and to reduce the programming effort. This task is supported both by an easy to use extension Java class wizard and by application specific class wizards that automate the utilization of jLab's scientific libraries. However, the incorporation of external Java general purpose code is not as convenient as the scripting code development is. Also, j-scripting is relatively slow compared to Groovy scripting that operates by compiling the scripts to Java classes. This was the motivation for the adaptation of the general purpose Groovy "scripting SuperJava" language as a parallel and cooperative scripting option in the jLab environment. The paper concentrates on the issues involved in the implementation of the multiscripting environment and on the benefits that can be obtained by the combination of these two very different scripting frameworks.