jackson-modules-base
jextract
jackson-modules-base | jextract | |
---|---|---|
2 | 9 | |
164 | 314 | |
0.6% | 13.4% | |
8.4 | 8.9 | |
13 days ago | 3 days ago | |
Java | Java | |
Apache License 2.0 | GNU General Public License v3.0 only |
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.
jackson-modules-base
-
JEP draft: Integrity and Strong Encapsulation
[1] https://github.com/FasterXML/jackson-modules-base/issues/138
-
Jackson, moshi or kotlinx.serialization?
Jackson also has some module (https://github.com/FasterXML/jackson-modules-base/tree/master/afterburner) which will generate bytecode at runtime to do serialization without reflection but I haven't really had any performance issues with it that made me want to even try it
jextract
- Jextract Guide
- JExtract Guide (to generate Code to access the native library in Java)
- JEP draft: Integrity and Strong Encapsulation
-
JEP 442: Foreign Function & Memory API (Third Preview)
ok, maybe I mixed it up with jextract https://github.com/openjdk/jextract
-
Java 20: A Sneak Peek on the Panama FFM API
This is one level below P/Invoke. It just offers a linking runtime API.
There's also has a tool that can generate all the bindings from a C header file automatically: https://github.com/openjdk/jextract
Then it doesn't really matter whether annotations are used or not, or some more low-level linker API (like FFM went with). As a user you just call into the generated bindings.
That's the philosophy: the JDK provides the low-level capabilities, and jextract provides the 'civilization', i.e. a usability focused layer on top. One of the advantages is that the JDK doesn't compete with other existing solutions, and those existing solution can benefit from the new linking runtime APIs as well.
-
Why Kotlin/Native C Interop not supporting C Preprocessors such as Macros ?
Depending on how work-aroundy you're feeling, using Kotlin/JVM with Panama and jextract might be the way to go. The generated bindings are a bit ugly, you'd need to use the very latest JVM and enable the preview features, and it won't help if you need to target iOS. But the jextract tool can fully understand C headers including macros because it's using the LLVM clang API to do so.
-
JNA vs JNI Performance Question
You can use jextract and a JDK 19 pre-release build to generate bindings and then do a JMH benchmark.
-
Using Linux's memfd_secret syscall from the JVM with JEP-419 - Panama
None of that needs to be done in the JDK, though, and the "big" project that can make a big difference here is jextract. The rest can easily be done by libraries.
-
Possible to use Kotlin/Native to call Win API from Kotlin/JVM?
Panama incubator module is available on jdk 17 and you can also use jextract (https://github.com/openjdk/jextract) to generate all java code without writing any JNI glue code.
What are some alternatives?
kotshi - An annotation processor that generates Moshi adapters from immutable Kotlin data classes.
panama-foreign - https://openjdk.org/projects/panama
kotlinx-serialization-typescript-generator - KxsTsGen :: Generate TypeScript interfaces from Kotlin classes
panama-liburing
ktoml - Kotlin Multiplatform parser and compile-time serializer/deserializer for TOML format (Native, JS, JVM) based on KxS
kotlinx.serialization - Kotlin multiplatform / multi-format serialization
http4k - The Functional toolkit for Kotlin HTTP applications. http4k provides a simple and uniform way to serve, consume, and test HTTP services.
gestalt - A Java configuration library that allows you to build your configurations from multiple sources, merges them and convert them into an easy-to-use typesafe configuration class. A simple but powerful interface allows you to navigate to a path within your configurations and retrieve a configuration object, list, or a primitive value.
jackson-module-kotlin - Module that adds support for serialization/deserialization of Kotlin (http://kotlinlang.org) classes and data classes.