Andy Victors
05/23/2019, 12:30 PMDataFetcher
and `DataStorage`classes, for getting data from remote to storing it, well, into the storage object
• The list of DataFetchers
is global, but mutable using `frozenCopyOnWriteList<>`from Stately
lib => therefore all Fetchers are frozen
• To tell a Fetcher which storage he needs to store the date into, I pass the Storage object in constructor.
• PROBLEM: since Storage is then in the same object graph as the Fetcher, Storage becomes frozen. But it's counter-goal for a storage object.
There should be a pattern for that, isn't it?ribesg
05/23/2019, 12:43 PMkotlinx.cinterop.CPointer<kotlinx.cinterop.ObjCObjectVar<platform.Foundation.NSError?>>?
to an ObjC function, is it how you do it?
var error: NSError? = null
val errorPtr = ObjCObjectVar<NSError?>(error.objcPtr()).ptr
Ivan
05/23/2019, 4:24 PMbasher
05/23/2019, 4:32 PMallocArray
, does it zero your memory, or do you have to use memset
?napperley
05/24/2019, 6:13 AMPaul Idstein
05/24/2019, 6:28 AMTukor Ferenc
05/24/2019, 12:48 PM// If garbage collection algorithm for cyclic garbage to be used.
// We are using the Bacon's algorithm for GC, see
// <http://researcher.watson.ibm.com/researcher/files/us-bacon/Bacon03Pure.pdf>.
#define USE_GC 1
Does this define control all GC behaviour? If I set it to zero have I achieved manual memory management in all cases?
Is there an easy to control option for this in any IDE that supports Kotlin or do I have to build my own runtime with the option set the way I want and then manually bind that runtime to my project?Dominaezzz
05/25/2019, 3:39 PMnapperley
05/26/2019, 1:12 AMnapperley
05/26/2019, 4:00 AMRohan Maity
05/26/2019, 10:19 AMfun main() {
val numbers = readLine()?.split(',')?.map {
it.toInt()
}
println(numbers?.sum()?:"No Numbers")
}
I have written this code that takes input. When I run from terminal ./file.kexe
it works fine. But I want to create run configuration for running generated kexe file which would take input also
like it does with ./file.kexe
Marc Knaup
05/26/2019, 10:45 AMMemory.cpp
and I have no hint what is causing this 😕 Does anybody have an idea?$ xcrun simctl spawn "iPhone 8" "/Users/marc/Documents/fluid-time/build/bin/iosX64/testDebugExecutable/test.kexe"
/Users/teamcity/buildAgent/work/4d622a065c544371/runtime/src/main/cpp/Memory.cpp:1216: runtime assert: memory state must be clear
Child process terminated with signal 6: Abort trap
Rohan Maity
05/26/2019, 2:10 PMcinterop
for stack
header file in c++. I encountered Exception in thread "main" java.lang.Error: /usr/include/c++/7/bits/functexcept.h:42:1: error: unknown type name 'namespace'.
Is kotlin/native unable to determine namespace
?kpgalligan
05/26/2019, 3:51 PMMarc Knaup
05/26/2019, 5:05 PMmansonheart
05/26/2019, 7:17 PMjeremy
05/26/2019, 11:45 PMTimothy Wong
05/27/2019, 7:40 AMjeremy
05/27/2019, 4:00 PMMcEna
05/28/2019, 3:42 AMTukor Ferenc
05/28/2019, 12:17 PMKen Gilmer
05/28/2019, 4:41 PMMcEna
05/28/2019, 7:23 PMMarc Knaup
05/28/2019, 8:52 PMinline class
represented in ObjC when it's boxed to Any
?
let value: Any = someMap[…]
print(type(of: value)) // kobjcc3
print(value) // UiColor(argb=-570425344) - a wrapped Int (i.e. Int32 in ObjC)
as! Int32
doesn't work
as! KotlinInt
doesn't work
as! NSNumber
doesn' work
In all non-generic contexts the value is represented as Int32
.
I also can't cast it to a protocol in case it implements an interface 😕Timothy Wong
05/29/2019, 5:53 AMTimothy Wong
05/29/2019, 6:52 AMvictor herasme perez
05/29/2019, 10:15 AMTimothy Wong
05/29/2019, 11:23 AMtylerwilson
05/29/2019, 2:07 PMCCHmacContext context;
CCHmacInit(&context, algorithm, keyCString, strlen(keyCString));
I am unclear on how to create the context and pass in the Kotlin version. The first context param is declared as CValuesRef<CCHmacContext>? So how do I construct this CValuesRef type? Thank you. Any similar code would be cool too.caffeine
05/29/2019, 3:23 PM:ssl
, and he needs -lssl
for linking. This project builds normally with linkOpts -lssl
Also, I have :httpServer
project. Then I add :ssl
as a dependency to :httpServer
and after I try to build it. On linking I catching errors they say that argument -lssl
is not added tp linkOpts. What I must do to fix this error. For example, I can add -lssl
to :httpServer
but I don't want to do this, because I already added this arg to :ssl
. I don't want to add -lssl
to each project who using :ssl
and :httpServer
caffeine
05/29/2019, 3:23 PM:ssl
, and he needs -lssl
for linking. This project builds normally with linkOpts -lssl
Also, I have :httpServer
project. Then I add :ssl
as a dependency to :httpServer
and after I try to build it. On linking I catching errors they say that argument -lssl
is not added tp linkOpts. What I must do to fix this error. For example, I can add -lssl
to :httpServer
but I don't want to do this, because I already added this arg to :ssl
. I don't want to add -lssl
to each project who using :ssl
and :httpServer
Dominaezzz
05/29/2019, 3:53 PMcaffeine
05/29/2019, 6:39 PM:httpServer
. As result httpServer
can't find *.a
files because this *.a
not a part of embedded mingw.
When I build :ssl
I added custom path to *.a
filesDominaezzz
05/29/2019, 6:40 PM*.a
files and forget about linking altogether.caffeine
05/29/2019, 6:41 PMYou could always just bundle thehow?files and forget about linking altogether.*.a
Dominaezzz
05/29/2019, 6:42 PM