Skip to content

pcompieta/graalvmpyr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Playing GraalVM with R and Python

More examples at https://github.com/graalvm/graalvm-demos and https://github.com/chrisseaton/graalvm-ten-things

Get into the container and play from shell

Main binaries when entering the container:

  • java / javac (Java 8)
  • graalpython (python 3.7)
  • R (R 3.6)
docker run -it --rm -w /code -v $(pwd)/simple-code:/code graalvmpyr:latest bash

Simple code examples

Define a basic alias to launch commands alias gr='docker run -it --rm -w /code -v $(pwd)/simple-code:/code graalvmpyr:latest sh -c'

Run the Java HelloWorld

CLASSNAME=HelloWorld; gr "javac $CLASSNAME.java && java $CLASSNAME"

Run the Polyglot example

CLASSNAME=PolyglotArray; gr "javac $CLASSNAME.java && java $CLASSNAME"

Logistic regression example

gr "javac com/pcompieta/graalvm/App.java"; gr "java com.pcompieta.graalvm.App"

About

Playing GraalVM with R and Python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published