Jan Kuchař
01/16/2023, 10:34 AMandylamax
01/16/2023, 1:45 PMKrystian
01/16/2023, 11:40 PMnapperley
01/17/2023, 10:32 PMnapperley
01/17/2023, 10:51 PMKrystian
01/18/2023, 9:32 PMOleg Yukhnevich
01/19/2023, 10:22 AMAdam S
01/19/2023, 7:12 PM> Task :modules:rocksdb-interop:linkDebugTestMingwX64 FAILED
e: C:\Users\runneradmin\.konan\dependencies\llvm-11.1.0-windows-x64-essentials/bin/clang++ invocation reported errors
The C:\Users\runneradmin\.konan\dependencies\llvm-11.1.0-windows-x64-essentials/bin/clang++ command returned non-zero exit code: 1.
output:
lld-link: error: undefined symbol: std::__throw_bad_array_new_length()
(full log here)
So I guess I need to figure out how to change the GCC version of the .a library. How can I find out what GCC version I should use for Kotlin 1.8? Is it the same as 1.7, 9.2.0?jaguililla
01/20/2023, 10:07 AMFile
or URL
• Is there any roadmap on the Native Stdlib classes to be implemented? If so, could you please share the link here?
Thank you very much!kevin.cianfarini
01/20/2023, 2:54 PMAny
? I searched YouTrack and didn’t see anything.
@JvmInline value class Url(val value: String) {
init {
require(value.isValidUrl()) {
"$value is not valid URL."
}
}
}
kevin.cianfarini
01/21/2023, 7:15 PMCADisplayLink
and suspect that the headless mode does not tick the display link clock and therefore my tests never pass.Adam S
01/21/2023, 8:44 PMfun main() {}
. Is there an easy way with Gradle to create executables for each file? So one Kotlin/Native Gradle project can produce multiple executables?
I’ve tried creating a separate target for each file, but it’s really messy - with conflicting Configurations and overlapping sources…Ji Sungbin
01/22/2023, 8:27 AMnext()
operation. (stdlib api transforms to Iterator) (next()
implementation code: ArrayList.java)
But sometimes the stdlib api comes out faster. At higher numbers, the stdlib api is faster in most cases. Why is this result occurring?
I’ll post the benchmarking code I used in a thread.Conrad Kramer
01/22/2023, 8:12 PMdh44t
01/23/2023, 10:58 AMDaniele B
01/23/2023, 8:58 PMw: Could not find "io.ktor:ktor-utils-cinterop-threadUtils" in [/Users/xxxxx/.konan/klib, /Users/xxxxx/.konan/kotlin-native-prebuilt-macos-x86_64-1.8.0/klib/common, /Users/xxxxx/.konan/kotlin-native-prebuilt-macos-x86_64-1.8.0/klib/platform/ios_x64]
w: Could not find "org.jetbrains.kotlin.native.platform.linux" in [/Users/xxxxx/.konan/klib, /Users/xxxxx/.konan/kotlin-native-prebuilt-macos-x86_64-1.8.0/klib/common, /Users/xxxxx/.konan/kotlin-native-prebuilt-macos-x86_64-1.8.0/klib/platform/ios_x64]
w: Could not find "co.touchlab:sqliter-driver-cinterop-sqlite3" in [/Users/xxxxx/.konan/klib, /Users/xxxxx/.konan/kotlin-native-prebuilt-macos-x86_64-1.8.0/klib/common, /Users/xxxxx/.konan/kotlin-native-prebuilt-macos-x86_64-1.8.0/klib/platform/ios_x64]
Adam S
01/24/2023, 5:33 PM.def
file, and I’ve written some helper functions to interact with the generated code, but it’s a little awkward because the helper functions and generated cinterop functions are named similarly, so they easy to confuse. Is it possible to either mark all code generated by cinterop as internal
, or to add an @OptIn
annotation to all generated code?
I’ve got some code that can parse the generated .klib
(see 🧵) and add an @OptIn
, but I’m not sure how to write the KlibModuleMetadata
back out into a .klib
.Alejandro Moya
01/25/2023, 12:32 AMw: Interop library /Users/user/.gradle/caches/modules-2/files-2.1/io.ktor/ktor-utils-iosarm64/2.2.2/f59a995d3f453c22d7fcfb1106a531277cf20b7e/ktor-utils-cinterop-threadUtils can't be exported with -Xexport-library
w: Interop library /Users/user/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlinx/atomicfu-iosarm64/0.18.5/8fe7737c1da3850eb99980cba0598ea2e8886be9/atomicfu-cinterop-interop can't be exported with -Xexport-library
I wasn’t getting these warnings on previous versions of kotlin or the dependencies, is there anything I could do to fix this?napperley
01/25/2023, 4:16 AMmalloc(): memory corruption (fast)
In other cases when selecting an item repeatedly, at a very slow rate in the Roller, and tapping on the Back button afterwords the program crashes with the following message:
free(): invalid pointer
In many cases this problem occurs, but not always.
None of the memory management problems occur with the linuxX64 version of the Kotlin Native program, even though it uses the same view that contains the Roller widget as the linuxArm32Hfp version of the program.martmists
01/25/2023, 4:39 PMnapperley
01/26/2023, 4:00 AMasarazan
01/26/2023, 5:01 AMkotlinArtifacts
DSL to build our shared layer for iOS, and I was wondering if anybody has tips on how to improve incremental build performance? Right now it’s up to ~20sec per configuration/arch combo, so we’re pushing 40-50sec for an incremental debug iOS build.
I also wonder if it would be feasible to have the individual framework tasks run in parallel… given that they don’t seem to have any dependency on each other?Alejandro Moya
01/26/2023, 3:36 PMLandry Norris
01/26/2023, 3:43 PMString#encodeToByteArray
would add a null terminator, since it’s used by cstr, however, this does not appear to be the case. Should I manually add 0.toChar()
to each string I need to pass to C? I also noticed that ‘\0’ is not valid in Kotlin, saying it’s an illegal escape.Adam S
01/26/2023, 4:26 PM.def
files in IntelliJ:
add #language=c
before the ---
and IntelliJ will recognise it as C, and help out with highlighting, formatting, and auto completionLandry Norris
01/26/2023, 6:22 PMZsolt Bencze
01/27/2023, 2:13 PMLandry Norris
01/27/2023, 4:02 PMjw
01/27/2023, 5:33 PMNSArrayAsKList
work? Are we basically just reinterpreting the pointer to the NSArray
as one of these instances on the C-side?Jeff Lockhart
01/27/2023, 11:35 PMkotlin {
...
targets.withType<KotlinNativeTarget> {
if (konanTarget.family.isAppleFamily) {
compilations["test"].kotlinOptions {
freeCompilerArgs += listOf("-e", "testlauncher.mainBackground")
}
}
}
}