Not sur if it’s the good place to share this, if not can you tell me where is it !
I am newbie but I made some work on a Gradle script to rebuild all kotlin file into a single one.
For what I need It work pretty well.
I use it like this
$ ./gradlew :module_name: buildSingleFile
The file is written in
module_name/build/codingame/codingame.kt
If you have some tips or improvement don’t be shy and share it !!
Just wanted to ask if this update is planned soon - depending on that I take the next contest with that language.
Version 1.2 really fixes a lot of library functions and stuff I use a lot - without it programming IS very different. Updating the language should be really easy for you guys. And bring on more new people to this platform who interested in learning new languages.
Is there any update on when Kotlin 1.2 will be introduced? Although I haven’t had much chance to play around on CodinGame with Kotlin yet, I’d greatly appreciate the continued support
When we did the last languages update this summer, we contacted the Kotlin team because we needed their help. They didn’t reply right away so we couldn’t update.
Now that Kotlin Native is public, we won’t need their specific support each time we want to update. https://kotlinlang.org/docs/reference/native-overview.html
But our installation is a bit different, we’ll need a bit of time to update. We’ll do it as soon as we have some time.
btw it seems https://www.codingame.com/faq is not showing which target & lib you use for kotlin (I thought it was jre target… but it seems you are using native).the lib probably is kotlin-stdlib. can you add these informations on faq page ?
we do an update of languages every 6 months or so. Since we couldn’t update Kotlin last summer, I think the dev team will take care of it before the next update. I’ll ask them to put the complete info in the FAQ
So how’s the update coming on? Kotlin 1.1.50 is really old now. Even all the 1.2 versions are obsolete now that 1.3.0 is out. Time for an upgrade, please?
It’s actually very bad in the context of CG where performance matters a lot.
Because of that bug you basically cannot use the Array constructor (but IntArray still works though).
The only passable workaround that I found is to do something like:
val array = arrayOfNulls<IntArray>(10)
It’s not ideal because then you have to deal with the fact that kotlin thinks stuff is nullable all over your code, but at least you don’t have to use lists which should always be avoided for performance reasons.