Skip to content

compile kotlin into jar - #529

Open
mzuenni wants to merge 1 commit into
Kattis:masterfrom
mzuenni:master
Open

mzuenni wants to merge 1 commit into
Kattis:masterfrom
mzuenni:master

Conversation

@mzuenni

@mzuenni mzuenni commented Nov 18, 2026

Copy link
Copy Markdown
Contributor

Pavel suggested this change here:

Running kotlin with bash-script provided in distribution, creates significant overhead in measured solution time.

In addition to mesuring solution, we also measure location of jdk, and in case of kotlin installed via snap additionally measuring flatpack image unpacking for the script itself.

For problems with 1s timelimit, that can be a big issue, as even empty kotlin code is measured to run 0.6s.

One of tradeoffs, is that now we need to provide kotlin stdlib for solutions, which was done by wrapper script before. This commit does this by running compilation with -include-runtime, which would include stdlib directly to solution jar. This create an additional overhead on unpacking this jar during solution runtime, but it's negligible compared to old one.

Comment thread problemtools/config/languages.yaml Resolved
Comment thread problemtools/config/languages.yaml Resolved

This branch has not been deployed

No deployments
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