JNR VS spring-native

Compare JNR vs spring-native and see what are their differences.

JNR

Java Abstracted Foreign Function Layer (by jnr)

spring-native

Spring Native is now superseded by Spring Boot 3 official native support (by spring-attic)
Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern API for authentication & user identity.
  • Onboard AI - ChatGPT with full context of any GitHub repo.
JNR spring-native
1 19
1,186 2,772
1.3% -
5.9 8.6
7 days ago 12 months ago
Java Java
GNU General Public License v3.0 or later Apache License 2.0
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
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.

JNR

Posts with mentions or reviews of JNR. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-04-11.
  • Does Java 18 finally have a better alternative to JNI?
    5 projects | dev.to | 11 Apr 2022
    Another popular option is Java Native Runtime (JNR). Though not as widely used or mature as JNA, it's much more modern and has better performance than JNA for most use cases. However, there are some cases where JNA might perform better.

spring-native

Posts with mentions or reviews of spring-native. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-01-08.
  • Measuring Java 11 Lambda cold starts with SnapStart - Part 4 Using Spring Boot Framework
    4 projects | dev.to | 8 Jan 2023
    It was probably not a very good idea to write Lambda using Java programming language and Spring Boot Framework. Despite the well-spread usage and knowledge of this framework, the fact that Spring (Boot) heavily uses reflection and takes time to start the embedded Web Application Server led to very big cold starts which we'll explore in the next section. But now with SnapStart on AWS and GraalVM Native Image Support we have two more options how to optimize those cold starts. So let's explore how to write Lambda function using the Spring Boot. The code of this sample application (the same as for the first 3 parts but rewritten to use Spring Boot) can be found here. It provides AWS API Gateway and 2 Lambda functions: "CreateProduct" and "GetProductById". The products are stored in the Amazon DynamoDB. We'll use AWS Serverless Application Model (AWS SAM) for the infrastructure as a code.
  • Compile the Minecraft Server (Java Edition) to Native with GraalVM Native Image
    9 projects | news.ycombinator.com | 2 Sep 2022
  • Introducing Spring Native for JHipster: Serverless Full-Stack Made Easy
    11 projects | dev.to | 24 Mar 2022
    During this experience, I was surprised to find that Spring Native doesn't support caching yet. I believe this support will be added by the community soon. In the meantime, if you're looking to start/stop your infra as fast as possible, you probably don't care about caching. Caching is made for long-lived, JVM-strong, JVM-loving apps.
  • Annotation-free Spring
    5 projects | /r/java | 12 Sep 2021
    As I just found out thanks to a comment from another Redditor, spring-aot will be getting some functional configuration compile time generation support in Spring Native's next release
    5 projects | /r/java | 12 Sep 2021
    But I just took a peek at Spring Native roadmap for 0.11 and they will be adding some of the spring-fu and spring-init-inspired functional configuration to spring-aot project (which, like I mentioned in another comment, already has compile-time generation support for various dynamic proxies that you mentioned)
  • Curious about opinions of the best cloud native microservice Java framework
    3 projects | /r/java | 17 Jul 2021
    Not sure how far they are currently, but have you heard of Spring Native? https://spring.io/blog/2021/03/11/announcing-spring-native-beta
  • Kotlin Team AMA #3: Ask Us Anything
    52 projects | /r/Kotlin | 27 May 2021
    Our next steps are : provide great Kotlin/JVM/Native (Native with Kotlin JVM via GraalVM native images) support via https://github.com/spring-projects-experimental/spring-native/, empowering multiplatform development (with Kotlin/JS frontend for example), translating Spring Boot documentation to Kotlin (via a contribution from Kotlin team), make sure that some APIs like WebTestClient currently broken with Kotlin due to some type inference bugs with recursive generic types become usable.
  • Is it right to use Spring & Spring boot?
    2 projects | /r/java | 17 Apr 2021
    I doubt micronaut has better runtime performance. You're probably talking about startup time and this point is moot with either https://github.com/dsyer/spring-boot-auto-reflect Or https://spring.io/blog/2021/03/11/announcing-spring-native-beta
  • Why I use Quarkus rather than Spring-Boot for my CNA apps
    2 projects | /r/java | 15 Apr 2021
    The real comparison would be Quarkus vs Spring Native.
  • Spring Native: Spring Boot but faster
    2 projects | dev.to | 9 Apr 2021
    But in March 2021, something happened in the community of Spring Boot users, and that was the release of the beta program of Spring Native.

What are some alternatives?

When comparing JNR and spring-native you can also consider the following projects:

JNA - Java Native Access

ktor - Framework for quickly creating connected applications in Kotlin with minimal effort

Quarkus - Quarkus: Supersonic Subatomic Java.

Micronaut - Micronaut Application Framework

JavaCPP - The missing bridge between Java and native C++

kotlinx.serialization - Kotlin multiplatform / multi-format serialization

Spring Boot - Spring Boot

Vert.x - Vert.x is a tool-kit for building reactive applications on the JVM

kotlinx.coroutines - Library support for Kotlin coroutines

BlockHound - Java agent to detect blocking calls from non-blocking threads.

kotlin-jupyter - Kotlin kernel for Jupyter/IPython

spring-fu - Configuration DSLs for Spring Boot