Questions tagged [graalvm]

Graal is a just-in-time compiler for the JVM focused on peak performance and multi-language support. Graal offers performance advantages not only to Java code, but also to scripting languages such as JavaScript, Ruby, and R.

GraalVM is a universal virtual machine for running applications written in , , , , JVM-based languages like , , , , and LLVM-based languages such as and .

GraalVM removes the isolation between programming languages and enables interoperability in a shared runtime. It can run either standalone or in the context of OpenJDK, Node.js, Oracle Database, or MySQL.

Userful links:

Official site

GitHub

Wikipedia

752 questions
6
votes
0 answers

Replacement for Java Nashorn

I'm not asking what the alternatives are. But, what's the "official" line on what to do about Java Nashorn deprecation now (December 2019). Are you supposed to just wait. Is graalvm to become part of the JDK or are the parts of it that are needed…
6
votes
2 answers

Is Hibernate ORM compatible with GraalVM native image compilation?

The native image compiler in the GraalVM project has, according to the docs, some limitations with dynamic proxies. Since Hibernate makes extensive use of proxies, can it work normally in a project that is ahead-of-time compiled? The Quarkus project…
David
  • 962
  • 2
  • 10
  • 29
6
votes
1 answer

Is it possible to store and load precompiled js to org.graalvm.polyglot.Context

It there any way to convert javascript source into some pre-compiled stated that can be stored and loaded somehow to org.graalvm.polyglot.Context instead of eval-ing it as a raw String? Something like undocumented --persistent-code-cache in nashorn.…
shabunc
  • 23,119
  • 19
  • 77
  • 102
6
votes
1 answer

Implementing a programming language on the GraalVM architecture

What are the (architectural) differences in implementing a programming language on the GraalVM architecture – in particular between Graal, Truffle, and LLVM using Sulong? I plan to reimplement an existing statically typed programming language on the…
user1091344
  • 612
  • 6
  • 27
6
votes
1 answer

Why GraalVM CE has smaller throughput than GraalVM EE or OpenJDK 8

I've created a benchmark for a method which finds out the longest common subsequence using dynamic programming: @Benchmark def longestCommonSubsequenceDP(): String = { val s1 = "Pellentesque lacinia" val s2 = "Mauris purus massa" val…
A5300
  • 409
  • 4
  • 18
6
votes
1 answer

FileSystemNotFoundException when init Graal in Springboot

I add graal libs in my project to execute JavaScript in Java. My project worked on spingboot framework. compile group: 'org.graalvm.sdk', name: 'graal-sdk', version: '1.0.0-rc9' compile group: 'org.graalvm.js', name: 'js', version:…
texu
  • 81
  • 3
6
votes
2 answers

Why does truffleruby need C extensions?

Current status of truffleruby says: TruffleRuby is progressing fast but is currently probably not ready for you to try running your full Ruby application on. Support for critical C extensions such as OpenSSL and Nokogiri is missing. Why does…
bbozo
  • 7,075
  • 3
  • 30
  • 56
5
votes
5 answers

Spring Boot Native: no valid dependencies for native-image-svm

I've just upgraded several projects to Java 19, Spring Boot 3.0.2, Kotlin 1.8.0 with Maven and I'd like Spring Boot to generate native images. 19 1.8.0 The relevant part of the…
Andras Hatvani
  • 4,346
  • 4
  • 29
  • 45
5
votes
1 answer

Spring Boot 3 Native with lombok immutable (@Value)

I've been trying to create a example project using spring boot 3, graalvm, lombok and jpa. Everything looks perfect when I execute the test using the main method. But I have a problem when I run the native binary. First I create the binary: mvn…
Merch0
  • 594
  • 5
  • 17
5
votes
0 answers

How to safely prevent graceful close of SSLSocket from sending "user canceled" alert

We have a Java 17 Quarkus application compiled to a native executable (ubi-quarkus-native-image:22.2-java17), running in Kubernetes. It is connecting to an old integration server with SSL, making a HTTP request. Our application creates a SSLSocket…
ewramner
  • 5,810
  • 2
  • 17
  • 33
5
votes
2 answers

How to access resources in a Quarkus native image?

I started playing with quarkus and graalvm. I added files (txt and jpg) to resources in the project (src/main/resources/). To be sure that I have access to this file in controller I display size of it: URL url =…
tostao
  • 2,803
  • 4
  • 38
  • 61
5
votes
0 answers

Plugin [id: 'io.spring.dependency-management', version: '1.0.11.RELEASE'] was not found in any of the following sources:

Hello guys I'm new to GraalVM and was trying to start a spring native project following the guide https://docs.spring.io/spring-native/docs/current/reference/htmlsingle/#getting-started-buildpacks. When I tried to sync after I added plugins { id…
eve
  • 51
  • 1
  • 3
5
votes
1 answer

Performance Difference between spring reactive and quarkus reactive Fundamentals

Low memory and high performance native containers are the future. Java with traditional frameworks has been difficult to work with to achieve lower level footprint with high performance like golang/rust. But recent innovation in java that is…
Jay Ghiya
  • 424
  • 5
  • 16
5
votes
1 answer

Issue compiling quarkus native image on Apple Sillicon

I tried running both Mandrel: ./mvnw package -Pnative -Dquarkus.native.container-build=true -Dquarkus.native.builder-image=quay.io/quarkus/ubi-quarkus-mandrel:20.3.2.0-Final-java11 and GraalVM version: ./mvnw package -Pnative…
5
votes
3 answers

How to build quarkus native image on google cloudbuild

Does anyone has an idea how to build quarkus native image on cloudbuild? I use following command to do so: - name: maven:3-jdk-11 entrypoint: mvn args: ["package", "-Dmaven.test.skip=true", "-Pnative",…
Ksz
  • 53
  • 1
  • 5
1 2
3
50 51