graalvm / graalvm-ten-things Goto Github PK
View Code? Open in Web Editor NEWTop 10 Things To Do With GraalVM
Home Page: https://medium.com/graalvm/graalvm-ten-things-12d9111f307d
License: Apache License 2.0
Top 10 Things To Do With GraalVM
Home Page: https://medium.com/graalvm/graalvm-ten-things-12d9111f307d
License: Apache License 2.0
Can you use native-image with ruby?
I'm following the steps in the README (7. Extend a native application).
I am running the community edition of GraalVM
> java -version
openjdk version "1.8.0_212"
OpenJDK Runtime Environment (build 1.8.0_212-20190523183630.graal2.jdk8u-src-tar-gz-b03)
OpenJDK 64-Bit GraalVM CE 19.1.0 (build 25.212-b03-jvmci-20-b04, mixed mode)
I have been able to run with success the following command:
native-image --no-server -cp sis.jar:. --shared -H:Name=libdistance
However, when I run
clang -I. -L. -ldistance distance.c -o distance
I get the following error:
distance.c:4:10: fatal error: 'libdistance.h' file not found
#include <libdistance.h>
^~~~~~~~~~~~~~~
1 error generated.
Hi,
This may be very simple question.
After installing GraalVM(CE) on my Linux(Ubuntu20), "javac" command does not work as below.
root@taro123:/opt/graalvm-ce-java11-21.3.0/graalvm-ten-things# javac TopTen.java
Command 'javac' not found, but can be installed with:
apt install default-jdk # version 2:1.11-72, or
apt install openjdk-11-jdk-headless # version 11.0.7+10-3ubuntu1
apt install ecj # version 3.16.0-1
apt install openjdk-8-jdk-headless # version 8u252-b09-1ubuntu1
root@taro123:/opt/graalvm-ce-java11-21.3.0/graalvm-ten-things# apt install default-jdk
After executing "apt install default-jdk" and installing "javac", it works as usual.
My simple question is;
Is GraalVM(CE) not enough or is the additional installation of "javac" required ?
(I thought that GraalVM includes "javac" function by default. Is my assumption wrong?)
Regards,
Sorry, one more question.
In the article(https://medium.com/graalvm/graalvm-ten-things-12d9111f307d ), the following is written.
>To run without the GraalVM JIT compiler to compare, I can use the flag -XX:-UseJVMCICompiler. JVMCI is the interface between GraalVM and the JVM. You could also compare against your standard JVM as well.
However, in my environment, it doesn't work.
root@taro123:/opt/graalvm-ce-java11-21.3.0/graalvm-ten-things# time java -XX:-UseJVMCICompiler TopTen large.txt
Error: VM option 'UseJVMCICompiler' is experimental and must be enabled via -XX:+UnlockExperimentalVMOptions.
Error: The unlock option must precede 'UseJVMCICompiler'.
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
real 0m0.008s
user 0m0.001s
sys 0m0.007s
I think, the below is correct.
** time java -XX:+UnlockExperimentalVMOptions -XX:+UseJVMCICompiler TopTen large.txt **
The below is the successful result for your reference.
Is that just a mistake or caused by my environment , GraalVM(CE) + Ubuntu20?
root@taro123:/opt/graalvm-ce-java11-21.3.0/graalvm-ten-things# time java -XX:+UnlockExperimentalVMOptions -XX:+UseJVMCICompiler TopTen large.txt
sed = 502500
ut = 392500
in = 377500
et = 352500
id = 317500
eu = 317500
eget = 302500
vel = 300000
a = 287500
sit = 282500
real 0m26.024s
user 0m37.151s
sys 0m1.121s
Regards,
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.