apache / apache/fory

[Kotlin] Support Kotlin For GraalVM Native Image

Open
#1,924 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Java
Stars
4.5k
Forks
443
Avg merge
5h 59m
Merged PRs (30d)
77

Description

### Feature Request

Fury supports GraalVM Native Image build, which can compile java code to native binary directly.

Since fury kotlin has been supported recently in #683 , it's time to support compile fury kotlin to native code directly.

### Is your feature request related to a problem? Please describe

_No response_

### Describe the solution you'd like

- Make some kotlin classes and serializers classes initialized at graalvm build time by adding those classes in fury-kotline native-image.properties.
- Add graalvm tests

### Describe alternatives you've considered

_No response_

### Additional context

_No response_

Contributor guide

Open the contributing guide

Research direction

Start by locating the fury-kotline native-image.properties configuration and the existing Kotlin support added in issue #683. Review how current GraalVM Native Image builds and tests are organized, then identify the Kotlin classes and serializers that need build-time initialization. Done means Kotlin native-image support works and the added GraalVM tests pass.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, kotlin
Domain
build-system, testing
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.