Coder Social home page Coder Social logo

examples's Introduction

GraalVM Examples

A collection of examples and use-cases for the GraalVM and FastR.

GraalVM is a universal virtual machine for running applications written in JavaScript, Python 3, Ruby, R, JVM-based languages like Java, Scala, Kotlin, and LLVM-based languages such as C and C++.

FastR is a GraalVM based implementation of the R programming language, that provides significant improvements in the performance of R code, the embedding of the R execution engine into Java applications, and the ability to interface with other GraalVM and JVM languages including Python, Java, and Scala. FastR is also able to utilize the tooling support provided by the GraalVM ecosystem.

  • FastR Java UI is a Java based Swing desktop UI application showing visualization interactively generated an by R script.
  • rJava Benchmark shows how fast rJava can be on FastR (spoiler: orders of magnitude faster).
  • FastR Embedding show how to embed FastR into Java applications and pass Java objects to R scripts like if they were native R objects (e.g. R data frame).
  • Weather Predictor is an application that performs temperature prediction using Ruby, R and Node.js.
  • FastR Scalar is a simple, straightforward implementation of "Conway's Game of Life" written in R.
  • Node.js & FastR is a Node.js web server showing visualization computed and generated in FastR.

Setup

In order to run the examples, the latest GraalVM must be installed. It can be downloaded from the GraalVM homepage. The examples work on both the Community and Enterprise edition of GraalVM.

Once downloaded, extract the archive, set the GRAALVM_DIR environment variable to point to the graalvm directory, and install additional languages using following commands:

$GRAALVM_DIR/bin/gu install R
$GRAALVM_DIR/bin/gu install python
$GRAALVM_DIR/bin/gu install ruby

Further information

License

All the examples are licensed under the GPLv3 license.

Troubleshooting

A typical problem is proxy set-up: verify that you have the http_proxy, https_proxy, and no_proxy environment variables set properly.

examples's People

Contributors

steve-s avatar ansalond avatar martinbalin avatar zslajchrt avatar ondrej-douda avatar lukasstadler avatar tzezula avatar dougxc avatar olyagpl avatar gilles-duboscq avatar chumer avatar majavu avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.