coffee4j-back-end
graalvm-reachability-metadata
coffee4j-back-end | graalvm-reachability-metadata | |
---|---|---|
1 | 8 | |
0 | 368 | |
- | 1.1% | |
10.0 | 8.5 | |
over 1 year ago | 4 days ago | |
Java | Java | |
MIT License | Creative Commons Zero v1.0 Universal |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
coffee4j-back-end
-
Are there any poplar alternatives to siesta?
Yeah, give it a shot! Before this, I added custom hints like this. I still need to try using the reachability repo instead
graalvm-reachability-metadata
-
GraalVM for JDK 21 is here
gcj had a lot of problems beyond needing configuration of reflection metadata. It used a full reimplementation of the standard library, and it was never adopted by the wider Java community being largely just Red Hat's strategy for creating a fully open source Java implementation rather than something offering specific benefits to Java developers. In particular people thought it'd lead to faster code, but GCC was never designed for Java and the results were actually a fair bit slower iirc.
Native image is quite different. With this new release the compiled images can not only be faster than JIT compiled Java (wow) but also use way less memory and start instantly. At a stroke this is resolving one of the biggest complaints people have always had against JVM languages.
And as a consequence you're seeing adoption by the wider community. All the modern Java web frameworks support it now, and there's a metadata repository where it's collected for projects that haven't accepted it upstream yet [1].
[1] https://github.com/oracle/graalvm-reachability-metadata
-
Are there any poplar alternatives to siesta?
Yeah, I was able to get it working by adding some custom runtime hints. jOOQ support was recently added to the graalvm-reachability-metadata repo via this issue, so that may make things easier
-
Spring Boot 3 meets Graal Native Image
During native image generation, native-image tool does a static analysis. There are classes which might not get accessed during this static analysis and they get left out in the final artifact. To overcome this some extra information can be provided during build time. Creating this extra metadata is cumbersome. There's an effort to consolidate these metadata information for various 3rd party libraries into a shared github repo https://github.com/oracle/graalvm-reachability-metadata .
-
Oracle Contributing GraalVM Community Edition Java Code to OpenJDK
GraalVM is truly great stuff.
GraalVM native compilation helps Java in the data center to avoid being a cost sink and to reduce start-up latency. Oracle needs Java to sell enterprise software.
Oracle contributing to OpenJDK may be required for Amazon cooperation (since Amazon is pushing its own JDK build) and probably helps the library ecosystem work towards native compatibility.
Native support for reflection (used in many libraries) requires "reachability metadata), maps of reflective API usage, at build time. Anyone can do it, but enterprise requires authoritative sources. Until authoritative reachability metadata covers the transitive graph of library+version dependencies in enterprise software, GraalVM builds are a PITA.
- https://github.com/oracle/graalvm-reachability-metadata
- latest release: https://medium.com/graalvm/graalvm-22-3-is-here-jdk-19-build...
- graalvm "community" roadmap: https://github.com/orgs/oracle/projects/6
(As a side note: Mark Reinhold has run the JDK team since 1997: is there any comparable example of such stellar leadership for broadly-adopted software across multiple technical and organizational eras?)
-
GraalVM 22.3: JDK 19 builds, jlink support, new monitoring features, and more
Also, reflection is supported in AOT mode. The analysis, however, does require reachability metadata in some cases. In the best case, libraries provide and maintain appropriate configuration for this. Reachability metadata can also be shared via https://github.com/oracle/graalvm-reachability-metadata.
-
is anyone using graal/spring native in production?
Most JVM libraries will require some amount of reflection for all frameworks as well, and for that we have made the bet to invest on a JVM wide effort -> https://github.com/oracle/graalvm-reachability-metadata.
-
Current State of Spring Boot Native with Kotlin (GraalVM)
The first issue should be solvable by refining Kotlin hints in https://github.com/oracle/graalvm-reachability-metadata that is used for non Spring hints with Boot 3.
What are some alternatives?
juery - Juery is a tiny Java library to manage search and filter query from user to database.
Spring - Spring Framework
daobab-100plus-examples - Daobab examples in Java
siesta - Typesafe API for SQL
cheerpj-meta - Run Java 8 applications, libraries, applets, Java Web Start, and Oracle Forms on the web without legacy plugins.
jOOQ - jOOQ is the best way to write SQL in Java
taming-build-time-initialization - Demos for the build-time initialization blog post
vertx-jooq - A jOOQ-CodeGenerator to create vertx-ified DAOs and POJOs.
spring-aot-smoke-tests - Smoke tests for Spring's AOT and native support
httpserver
spring-to-awslambda - Demonstrates how a Spring RESTful API can be converted to AWS lambda function