Skip to content

NoBuild in Kotlin #106

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

NoBuild in Kotlin #106

wants to merge 1 commit into from

Conversation

rtc11
Copy link

@rtc11 rtc11 commented Aug 21, 2025

I got inspired by your nob.h and decided to make one for Kotlin.

It backups the last working version and restores it when necessary.
Im not packaging a jar or compiling a native executable, only compiling the class files, this makes the whole build time a lot faster.
In stead of using the compiler directly it starts a Kotlin daemon and uses its client and API to only compile changes in the bytecode. Having a live compiler environment makes subsequent builds way faster.
A simple "Hello world" now compiles in 70ms.

I got inspired by your nob.h and decided to make one for Kotlin. It backups the last working version and restores it when necessary. Im not packaging a jar or compiling a native executable, only compiling the class files, this makes the whole build time a lot faster. It also uses a Kotlin daemon for having a live compiler environment for faster subsequent builds.
A simple "Hello world" now compiles in 70ms.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant