juliocbcotta
06/25/2018, 11:54 PMjuliocbcotta
06/25/2018, 11:54 PMnapperley
06/26/2018, 4:07 AMamorenew
06/26/2018, 7:37 AMrjhdby
06/26/2018, 9:54 AMMohit Gurumukhani
06/26/2018, 10:28 PMnapperley
06/27/2018, 2:05 AMamorenew
06/27/2018, 5:45 AMrjhdby
06/27/2018, 12:02 PMspierce7
06/27/2018, 4:57 PMMohit Gurumukhani
06/27/2018, 6:29 PMamorenew
06/27/2018, 7:15 PMAnaR
06/27/2018, 7:53 PMkpgalligan
06/27/2018, 9:38 PMnapperley
06/28/2018, 12:34 AMprada
06/28/2018, 1:58 AMnicola.de.fiorenze
06/28/2018, 8:40 AMrjhdby
06/28/2018, 10:54 AMkotlinc -opt ./file.kt -o file -produce bitcode
llc -filetype=obj file.bc -o file.o
But it does not include standard library and result of cc
compilation is:
/usr/bin/ld: file.o: relocation R_X86_64_32 against undefined symbol `ktype:kotlin.text.StringBuilder' can not be used when making a shared object; recompile with -fPIC
spierce7
06/28/2018, 7:10 PM@ObjCAction
fun buttonPressed() {
label.text = "Konan says: 'Hello, ${textField.text}!'"
}
It's not clear how the @ObjCAction
is routing to the button that's being pressed. It's also not clear how that button is being selected. Can anyone point me in the right direction?spierce7
06/28/2018, 8:40 PM@ExportObjCClass
class ViewController : UIViewController {
constructor(aDecoder: NSCoder) : super(aDecoder)
override fun initWithCoder(aDecoder: NSCoder) = initBy(ViewController(aDecoder))
@ObjCOutlet lateinit var label: UILabel
@ObjCOutlet lateinit var textField: UITextField
@ObjCOutlet lateinit var button: UIButton
override fun viewDidLoad() {
super.viewDidLoad()
button.addTarget(this, action=sel_registerName("buttonPressed"), forControlEvents=UIControlEventTouchDown)
}
@ObjCMethod(selector = "buttonPressed", bridge = "ViewController") fun buttonPressed() {
label.text = "Konan says: '2, ${textField.text}!'"
}
}
spierce7
06/29/2018, 4:59 AMinitBy(ViewController(aDecoder))
, but initBy
is deprecated. The message tells me I can replace initBy
with @OverrideInit
on the constructor, but every time I do, I get an error: constructor with @OverrideInit doesn't override any super class constructor.
Is there an example somewhere of how to use this annotation properly? It seems no matter what I do it doesn't work.Malte
06/29/2018, 1:36 PMnwh
06/29/2018, 8:27 PMdamian
06/30/2018, 2:00 AMspierce7
06/30/2018, 4:47 AMusing the technology in combination with Gradle
. When you integrate with Gradle, will that be when we finally get incremental compilations?
You mentioned that Kotlin 1.3 features need to be added before a stable release as well. Is there a place where I can read about the changes coming in Kotlin 1.3? I haven't been able to find a roadmap or anything for Kotlin 1.3.
You mentioned that k/n already shares a code base with jvm and js compilers. Getting the compilers under the same arch and sharing an api is one of the first steps to a public API to 3rd party Kotlin compiler plugins (probably the feature I've been most anticipating). How close are we to that as a reality?spierce7
06/30/2018, 6:15 PMnapperley
06/30/2018, 11:38 PMkpgalligan
07/01/2018, 6:56 PMkrtko
07/02/2018, 5:16 AMyusuf3000
07/02/2018, 10:56 AMinterface Repository<T> {
fun add(model: T): Boolean
}
I have another interface that conforms to `Repository`:
interface TestModelRepository : Repository<TestModel> {
override fun add(model: TestModel): Boolean
}
When I have a class in Swift that conforms to TestModelRepository
class SwiftTestModelRepository: TestModelRepository
it wants me to implement both add
methods. One with type id
and one with type TestModel
. I only want to implement one of them.
Is there a workaround for this where I only implement the overridden one from TestModelRespository
and not from the generic Repository?
As a backup I can only declare add
in TestModelRepository
and remove it from Repository
but this will make the code less clean as I want to have many more repositories that conform to Repository
and would like to reuse the add
method.yusuf3000
07/02/2018, 10:56 AMinterface Repository<T> {
fun add(model: T): Boolean
}
I have another interface that conforms to `Repository`:
interface TestModelRepository : Repository<TestModel> {
override fun add(model: TestModel): Boolean
}
When I have a class in Swift that conforms to TestModelRepository
class SwiftTestModelRepository: TestModelRepository
it wants me to implement both add
methods. One with type id
and one with type TestModel
. I only want to implement one of them.
Is there a workaround for this where I only implement the overridden one from TestModelRespository
and not from the generic Repository?
As a backup I can only declare add
in TestModelRepository
and remove it from Repository
but this will make the code less clean as I want to have many more repositories that conform to Repository
and would like to reuse the add
method.svyatoslav.scherbina
07/02/2018, 12:02 PMyusuf3000
07/02/2018, 12:13 PMsvyatoslav.scherbina
07/02/2018, 12:40 PM