• Home
  • Search
  • Executing native Java code in R: an approach based on a local server.
  • Open Access IconOpen Access
  • Cite Icon1
  • https://doi.org/10.7717/peerj-cs.300Copy DOI Icon

Executing native Java code in R: an approach based on a local server.

Show More
  • Abstract
  • Literature Map
  • References
  • Citations
  • Similar Papers
Abstract

The R language is widely used for data analysis. However, it does not allow for complex object-oriented implementation and it tends to be slower than other languages such as Java, C and C++. Consequently, it can be more computationally efficient to run native Java code in R. To do this, there exist at least two approaches. One is based on the Java Native Interface (JNI) and it has been successfully implemented in the rJava package. An alternative approach consists of running a local server in Java and linking it to an R environment through a socket connection. This alternative approach has been implemented in an R package called J4R. This article shows how this approach makes it possible to simplify the calls to Java methods and to integrate the R vectorization. The downside is a loss of performance. However, if the vectorization is used in conjunction with multithreading, this loss of performance can be compensated for.

Similar Papers
  • Conference Article
  • Citations3

Too Quiet in the Library: An Empirical Study of Security Updates in Android Apps' Native Code

  • May 01, 2021
  • Sumaya Almanee +3
  • Research Article
  • Citations21

Bringing java's wild native world under control

  • Nov 01, 2013
  • ACM Transactions on Information and System Security
  • Mengtao Sun +4
  • Conference Article
  • Citations9

File-based sharing for dynamically compiled code on Dalvik virtual machine

  • Dec 01, 2010
  • Yao-Chih Huang +3
  • PDF
  • Research Article
  • Citations6

Creating Java to Native Code Interfaces with Janet

  • Jan 01, 2001
  • Scientific Programming
  • Marian Bubak +3
  • Book Chapter
  • Citations15

JNI Light: An Operational Model for the Core JNI

  • Jan 01, 2010
  • Gang Tan
  • Research Article
  • Citations2

Evaluating the Java Native Interface (JNI)

  • Apr 01, 2018
  • International Journal of Distributed Systems and Technologies
  • Stelios Sotiriadis +3
  • Research Article
  • Citations12

Using the Java Native Interface

  • Nov 01, 1997
  • XRDS: Crossroads, The ACM Magazine for Students
  • S Fouzi Husaini
  • Research Article
  • Citations3

Convenient use of legacy software in Java with Janet package

  • May 24, 2001
  • Future Generation Computer Systems
  • Marian Bubak +2
  • Conference Article
  • Citations19

JARToolKit - A Java binding for ARToolKit

  • Sep 29, 2002
  • C Geiger +3
  • Research Article
  • Citations3

A buffering layer to support derived types and proprietary networks for Java HPC

  • Jan 01, 2007
  • Scalable Computing Practice and Experience
  • Mark Baker +2
  • Conference Article
  • Citations3

Building Java program analysis tools using Javana

  • Oct 22, 2006
  • Dries Buytaert +3
  • Conference Article
  • Citations2

Implementing an auction market for regulation service using software agents

  • Mar 16, 2003
  • R Srinivasan +3
  • Book Chapter

Focusing on Odds and Ends

  • Jan 01, 2014
  • Jeff Friesen
  • Conference Article
  • Citations31

Machine-Learning-based Performance Heuristics for Runtime CPU/GPU Selection

  • Sep 08, 2015
  • Akihiro Hayashi +3
  • Research Article
  • Citations32

Design and implementation of Java bindings in Open MPI

  • Aug 11, 2016
  • Parallel Computing
  • Oscar Vega-Gisbert +2
Cactus Communications logo

Copyright 2026 Cactus Communications. All rights reserved.