Sam Schilling
09/20/2019, 5:16 PMLaura de la rosa
09/20/2019, 10:01 PMVincent Chen
09/21/2019, 6:52 AMXQDD
09/22/2019, 2:45 AMdeactivateduser
09/23/2019, 1:45 AMVincent Chen
09/23/2019, 6:43 AMVincent Chen
09/24/2019, 5:51 AMNikita Klimenko
09/24/2019, 3:22 PMinline fun <reified T> to(): T? = null
> Task :linkMyLibDebugFrameworkIos
Undefined symbols for architecture x86_64:
"_kfun:<http://com.mylib.utils.jkob.to|com.mylib.utils.jkob.to>()Generic", referenced from:
___unnamed_1085 in result.o
ld: symbol(s) not found for architecture x86_64
e: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld invocation reported errors
Jonas Bark
09/25/2019, 6:30 AMUIColor
expects `CGFloat`s (Float) on arm32 and `CGDouble`s (Double) on arm64 / x64. I'd like to use the same source set and unfortunately .convert()
doesn't exist for Float / Double. Are different source sets the only way to tackle this?Jurriaan Mous
09/25/2019, 12:22 PM> Task :cinteropRocksdbMacos
Exception in thread "main" java.lang.IllegalArgumentException: 'BlockBasedTableIndexType' from the file package was not reserved for declaration
at org.jetbrains.kotlin.native.interop.gen.KotlinFile.reference(KotlinCodeModel.kt:263)
at org.jetbrains.kotlin.native.interop.gen.KotlinClassifierType.render(KotlinCodeModel.kt:115)
at org.jetbrains.kotlin.native.interop.gen.StubIrTextEmitter.renderStubType(StubIrTextEmitter.kt:467)
at org.jetbrains.kotlin.native.interop.gen.StubIrTextEmitter.access$renderStubType(StubIrTextEmitter.kt:18)
at org.jetbrains.kotlin.native.interop.gen.StubIrTextEmitter$printer$1.visitProperty(StubIrTextEmitter.kt:256)
Justin
09/25/2019, 7:36 PMSam Schilling
09/25/2019, 9:26 PMfreeze
on one of my objects resulted in Memory.cpp:902: runtime assert: unknown node during condensation building
. Has anyone else experienced this issue or know the cause?Vincent Chen
09/26/2019, 7:25 AMSam Schilling
09/26/2019, 4:55 PMTransferMode.UNSAFE
which is meant to be used as a last resortSlackbot
09/26/2019, 5:01 PMnapperley
09/26/2019, 11:33 PMJustin
09/27/2019, 3:47 AMKonstantin Petrukhnov
09/27/2019, 11:40 AMSam Schilling
09/27/2019, 8:26 PMWorker.execute
with TransferMode.SAFE
?
Basically I want to keep a global cache as a singleton instance and have the background workers able to add things to the cache. But I think that may violate mutable XOR global.Sam Schilling
09/27/2019, 9:20 PMval input = ...
val callback: (Result) -> Void = ...
val future = Worker.start().execute(TransferMode.SAFE, { input.freeze() }) {
// do work
result
}
val result = future.result
callback(result)
But obviously that blocks the calling thread until execution is finished.
Open to other suggestions besides Worker
but I am not aware of any other mechanism for multithreading since coroutines only run on main thread.breandan
09/29/2019, 3:51 AMplugins {
kotlin("multiplatform")
id("org.kotlin.commonlibs")
}
commonLibs {
compile("opencv2")
}
And it downloads the appropriate klib
containing all the dependencies, which can be linked against the generated stubs and called from Kotlin/Native code without any further configuration.
With JavaCPP this is dead simple, you just add the Maven coordinates and can immediately call native libraries (bundled in the JAR) on any target architecture. https://github.com/bytedeco/javacpp-presetsbasher
09/30/2019, 3:18 AMXQDD
09/30/2019, 8:21 AMKonstantin Petrukhnov
09/30/2019, 9:06 AMBig Chungus
09/30/2019, 11:59 AMerror while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory
Any tips?Big Chungus
09/30/2019, 1:31 PMMarc Knaup
09/30/2019, 2:27 PMSam Schilling
09/30/2019, 7:47 PMMiguel Fermin
10/01/2019, 2:07 AMKirill Shmakov [JB]
10/01/2019, 3:29 PMKirill Shmakov [JB]
10/01/2019, 3:29 PMserebit
10/01/2019, 3:41 PMkpgalligan
10/01/2019, 3:42 PMBig Chungus
10/01/2019, 4:43 PMKonstantin Petrukhnov
10/02/2019, 4:24 AM