my answers in Kotlin
This project builds with Gradle.
Run the test suite:
./gradlew :aoc2024-lib:allTests
Run kotlinx.benchmark (JMH) benchmarks:
./gradlew :aoc2024-exe:benchmark
Print solutions for the inputs provided in local data files:
./gradlew :aoc2024-exe:jvmRun :aoc2024-exe:runReleaseExecutable{LinuxX64,Macos{X64,Arm64}} :aoc2024-exe:{js,wasmJs,wasmWasi}NodeProductionRun
Run all checks, including Detekt static code analysis:
./gradlew check
Run the test suite as a GraalVM Native Image:
export GRAALVM_HOME=...
./gradlew --no-configuration-cache :graalvm:nativeTest
Run JMH benchmarks as a GraalVM Native Image:
export GRAALVM_HOME=...
./gradlew --no-configuration-cache -Pagent :graalvm:nativeBenchmarkRun
Print solutions for the inputs provided in local data files as a GraalVM Native Image:
export GRAALVM_HOME=...
./gradlew --no-configuration-cache :graalvm:nativeRun