ktfmt — GraalVM Native Image support

2026-06-30

I contributed GraalVM Native Image support to ktfmt in PR #584, opened January 12, 2026 and landed upstream on June 30, 2026. The work enables ahead-of-time native formatter binaries that run without an installed JVM. It includes native-image build configuration and reachability metadata, with lazy initialization of the Kotlin parser environment to avoid compiler setup during image construction. Native startup particularly benefits short formatting runs; the PR’s performance figures are workload-specific. The repository is now hosted at Kotlin/ktfmt, formerly facebook/ktfmt.

Sources and attribution

Verified against the GitHub PR, author discussion, code-sync landing comment, and upstream commit on October 28, 2026. GitHub reports the PR as closed with merged=false; the code-sync comment and commit independently document its upstream landing.

Back to the archive