evant
06/24/2019, 12:04 AMevant
06/24/2019, 12:56 AMZh Efimenko
06/24/2019, 11:12 AMSlackbot
06/24/2019, 1:32 PMgalex
06/25/2019, 7:54 AMaljosa
06/25/2019, 2:06 PMSam Garfinkel
06/25/2019, 2:19 PM__try
for SEH) and a few MSVC preprocessor flags.Zh Efimenko
06/25/2019, 2:58 PMSam Garfinkel
06/25/2019, 5:28 PMstatic void*
attribute in Kotlin? Specifically a static reference to a function pointer. Does val foo = staticCFunction(::<FunName>)
do this correctly?Sam Garfinkel
06/25/2019, 5:29 PM&(PVOID&)foo
which is separately challenging me. PVOID is just an alias for void*. So I guess I need to figure out how to get the memory address of any particular CPointer (the actual pointer variable, not the pointed object).Benedict Pregler
06/26/2019, 9:59 AMCould not get unknown property 'ios' for KotlinTarget container of type org.gradle.api.internal.FactoryNamedDomainObjectContainer.My Kotlin Plugin Version is v1.3.40-release-IJ2019.1-1
gmaciel
06/26/2019, 3:36 PMmben
06/27/2019, 2:55 PMnapperley
06/28/2019, 5:55 AMdeactivateduser
06/29/2019, 3:03 AMdeactivateduser
06/29/2019, 10:55 AMfcosta
06/30/2019, 6:35 PMArkadii Ivanov
06/30/2019, 7:43 PMval r = AtomicReference(1000L)
val v = r.value
println(r.compareAndSet(v, 2000L))
The code above prints false
. Line val v = r.value
unboxes the value so compareAndSet
is called with new instance of Long
and fails. I am aware of AtomicLong
, I'm trying to write some inline extensions for AtomicReference
and they fail if type T
is primitive.Thomas
07/01/2019, 9:31 AMjava.lang.String.format
and NSString.create(format, args)
? The NSString
requires you to use *arrayOf(…)
for args. For example let’s say this is the expect function:
expect fun String.format(vararg args: Any?): String
How would you able to make an actual fun using NSString.create
?Lulu
07/01/2019, 11:29 PMExecution failed for task ':client:linkDebugTestLinuxX64'.
> Process 'command '/opt/java/openjdk/bin/java'' finished with non-zero exit value 1
Does anyone have an idea what that mean? Debugging wasn't that helpful.Thomas
07/02/2019, 11:59 AMval commonMain by sourceSets.getting
val iosMain by sourceSets.creating {
dependsOn(commonMain)
dependencies {
// iOS dependencies
}
}
val iosDebug by sourceSets.creating {
dependsOn(iosMain)
}
val iosRelease by sourceSets.creating {
dependsOn(iosMain)
}
targetFromPreset(iosTarget, "ios") {
val debugCompilation = compilations.create("debug")
val releaseCompilation = compilations.create("release")
binaries {
framework("common", listOf(DEBUG)) {
compilation = debugCompilation
}
framework("common", listOf(RELEASE)) {
compilation = releaseCompilation
}
}
}
I think this should work, I can use expect
in iosMain and actual
in iosDebug/iosRelease. However, the iosTest task I have throws an error it cannot find the actual
implementation for the expect
property. This is probably because the test uses iosMain instead of iosDebug. Is there a way to change that?spierce7
07/02/2019, 6:26 PMkotlin-platform-native
plugin lack any features that the multiplatform
plugin has? I know the platform-native plugin is considered deprecated, but my team just tried to swap to the multiplatform
plugin, and we found several blocker bugs with the multiplatform
plugin that stops us from swapping.Marc Knaup
07/02/2019, 7:21 PM-Xdisable-phases=Devirtualization
?
Performance penalty?napperley
07/02/2019, 11:56 PM# ...
---
static inline MQTTClient_connectOptions createMqttConnectionOptions() {
MQTTClient_connectOptions options = MQTTClient_connectOptions_initializer;
return options;
}
galex
07/03/2019, 4:37 AMnapperley
07/03/2019, 10:26 PMnapperley
07/03/2019, 11:30 PMpublic fun MQTTClient_create(handle: kotlinx.cinterop.CValuesRef<paho_mqtt.MQTTClientVar /* = kotlinx.cinterop.CPointerVarOf<paho_mqtt.MQTTClient /* = kotlinx.cinterop.CPointer<out kotlinx.cinterop.CPointed> */> */>?, @kotlinx.cinterop.internal.CCall.CString serverURI: kotlin.String?, @kotlinx.cinterop.internal.CCall.CString clientId: kotlin.String?, persistence_type: <http://kotlin.Int|kotlin.Int>, persistence_context: kotlinx.cinterop.CValuesRef<*>?): <http://kotlin.Int|kotlin.Int> { /* compiled code */ }
napperley
07/04/2019, 2:23 AMMessage arrived.
Topic Length: 0).
Topic: some/test/ships
Payload: {"lat":50.895,"lon":-1.391,"name":"ANGRY WASP","type":"sailing","typeno":36,"icon":"ship","iconColor":"lightblue","bearing":"300","speed":"0.0","destination":"","callsign":"MCMK9","layer":"AIS","time":"2019-07-04 02:16:34 UTC","ts":1562206594}
Message arrived.
Topic Length: 0).
Topic: /golot7/kitchen/center/lampstatus
Payload: 0
Message arrived.
Topic Length: 0).
Topic: analytics
Payload: {"name":"event.system.incoming.communication","date":1562206718325,"content":{"system.id":"08afb391512349019fc4462c69903138","communication.id":"45454545","message.id":"5b40f35036ad4a88afab6110b982a8d2","threadId":"18"}}2043����
Message arrived.
Topic Length: 0).
Topic: /merakimv/Q2EV-2QFS-YRYE/light
Payload: {"lux": 109.8}
Message arrived.
Topic Length: 0).
Topic: analytics
Payload: {"name":"event.system.incoming.communication","date":1562206718379,"content":{"system.id":"08afb391512349019fc4462c69903138","communication.id":"45454545","message.id":"77c19ab137e04c61b15f3cff2b816510","threadId":"7"}}":"20����A
Message arrived.
Topic Length: 0).
Topic: rpi/rpi
Payload: �?�3�A��s
|�
Alistair Sykes
07/04/2019, 12:08 PM@Throws
annotation. I have implemented it as described in this thread https://kotlinlang.slack.com/archives/C3SGXARS6/p1541595589233800. During :linkDebugTestIos
I get an exception on a test class which is testing a method with the annotation.
java.lang.IllegalStateException: Arrays of class literals are not supported yet
Does anyone have any ideas about this? Any help would be greatly appreciated.tylerwilson
07/04/2019, 5:03 PM*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** +[ReasonCompanion<0x10aea0210> init]: cannot init a class object.'
Any clues as to what to look for?