This demo shows how we can use JVM libraries in a native project. This example uses Klaxon (Kotlin) to parse tweets, Open NLP (Java) to do sentiment analysis of tweets, and Scala collections to correlate tweets with time series. The tweets in the example are the tweets that contain a word "Ethereum" and the time series is the price of cryptocurrency Ether on the market.
To compile the demo make sure you have Scala, Kotlin, and GraalVM installed and $SCALA_HOME
, $KOTLIN_HOME
, and $GRAALVM_HOME
set. Then simply invoke
./polyglot-compile.sh