https://kotlinlang.org logo
Join the conversationJoin Slack
Channels
100daysofcode
100daysofkotlin
100daysofkotlin-2021
advent-of-code
aem
ai
alexa
algeria
algolialibraries
amsterdam
android
android-architecture
android-databinding
android-studio
androidgithubprojects
androidthings
androidx
androidx-xprocessing
anime
anko
announcements
apollo-kotlin
appintro
arabic
argentina
arkenv
arksemdevteam
armenia
arrow
arrow-contributors
arrow-meta
ass
atlanta
atm17
atrium
austin
australia
austria
awesome-kotlin
ballast
bangladesh
barcelona
bayarea
bazel
beepiz-libraries
belgium
berlin
big-data
books
boston
brazil
brikk
budapest
build
build-tools
bulgaria
bydgoszcz
cambodia
canada
carrat
carrat-dev
carrat-feed
chicago
chile
china
chucker
cincinnati-user-group
cli
clikt
cloudfoundry
cn
cobalt
code-coverage
codeforces
codemash-precompiler
codereview
codingame
codingconventions
coimbatore
collaborations
colombia
colorado
communities
competitive-programming
competitivecoding
compiler
compose
compose-android
compose-desktop
compose-hiring
compose-ios
compose-mp
compose-ui-showcase
compose-wear
compose-web
connect-audit-events
corda
cork
coroutines
couchbase
coursera
croatia
cryptography
cscenter-course-2016
cucumber-bdd
cyprus
czech
dagger
data2viz
databinding
datascience
dckotlin
debugging
decompose
decouple
denmark
deprecated
detekt
detekt-hint
dev-core
dfw
docs-revamped
dokka
domain-driven-design
doodle
dsl
dublin
dutch
eap
eclipse
ecuador
edinburgh
education
effective-kotlin
effectivekotlin
emacs
embedded-kotlin
estatik
event21-community-content
events
exposed
failgood
fb-internal-demo
feed
firebase
flow
fluid-libraries
forkhandles
forum
fosdem
fp-in-kotlin
framework-elide
freenode
french
fritz2
fuchsia
functional
funktionale
gamedev
ge-kotlin
general-advice
georgia
geospatial
german-lang
getting-started
github-workflows-kt
glance
godot-kotlin
google-io
gradle
graphic
graphkool
graphql
graphql-kotlin
graviton-browser
greece
grpc
gsoc
gui
hackathons
hacktoberfest
hamburg
hamkrest
helios
helsinki
hexagon
hibernate
hikari-cp
hire-me
hiring
hongkong
hoplite
http4k
hungary
hyderabad
image-processing
india
indonesia
inkremental
intellij
intellij-plugins
intellij-tricks
internships
introduce-yourself
io
ios
iran
israel
istanbulcoders
italian
jackson-kotlin
jadx
japanese
jasync-sql
java-to-kotlin-refactoring
javadevelopers
javafx
javalin
javascript
jdbi
jhipster-kotlin
jobsworldwide
jpa
jshdq
juul-libraries
jvm-ir-backend-feedback
jxadapter
k2-early-adopters
kaal
kafka
kakao
kalasim
kapt
karachi
karg
karlsruhe
kash_shell
kaskade
kbuild
kdbc
kgen-doc-tools
kgraphql
kinta
klaxon
klock
kloudformation
kmdc
kmm-español
kmongo
knbt
knote
koalaql
koans
kobalt
kobweb
kodein
kodex
kohesive
koin
koin-dev
komapper
kondor-json
kong
kontent
kontributors
korau
korean
korge
korim
korio
korlibs
korte
kotest
kotest-contributors
kotless
kotlick
kotlin-asia
kotlin-beam
kotlin-by-example
kotlin-csv
kotlin-data-storage
kotlin-foundation
kotlin-fuel
kotlin-in-action
kotlin-inject
kotlin-latam
kotlin-logging
kotlin-multiplatform-contest
kotlin-mumbai
kotlin-native
kotlin-pakistan
kotlin-plugin
kotlin-pune
kotlin-roadmap
kotlin-samples
kotlin-sap
kotlin-serbia
kotlin-spark
kotlin-szeged
kotlin-website
kotlinacademy
kotlinbot
kotlinconf
kotlindl
kotlinforbeginners
kotlingforbeginners
kotlinlondon
kotlinmad
kotlinprogrammers
kotlinsu
kotlintest
kotlintest-devs
kotlintlv
kotlinultimatechallenge
kotlinx-datetime
kotlinx-files
kotlinx-html
kotrix
kotson
kovenant
kprompt
kraph
krawler
kroto-plus
ksp
ktcc
ktfmt
ktlint
ktor
ktp
kubed
kug-leads
kug-torino
kvision
kweb
lambdaworld_cadiz
lanark
language-evolution
language-proposals
latvia
leakcanary
leedskotlinusergroup
lets-have-fun
libgdx
libkgd
library-development
linkeddata
lithuania
london
losangeles
lottie
love
lychee
macedonia
machinelearningbawas
madrid
malaysia
mathematics
meetkotlin
memes
meta
metro-detroit
mexico
miami
micronaut
minnesota
minutest
mirror
mockk
moko
moldova
monsterpuzzle
montreal
moonbean
morocco
motionlayout
mpapt
mu
multiplatform
mumbai
munich
mvikotlin
mvrx
myndocs-oauth2-server
naming
navigation-architecture-component
nepal
new-mexico
new-zealand
newname
nigeria
nodejs
norway
npm-publish
nyc
oceania
ohio-kotlin-users
oldenburg
oolong
opensource
orbit-mvi
osgi
otpisani
package-search
pakistan
panamá
pattern-matching
pbandk
pdx
peru
philippines
phoenix
pinoy
pocketgitclient
polish
popkorn
portugal
practical-functional-programming
proguard
prozis-android-backup
pyhsikal
python
python-contributors
quasar
random
re
react
reaktive
realm
realworldkotlin
reductor
reduks
redux
redux-kotlin
refactoring-to-kotlin
reflect
refreshversions
reports
result
rethink
revolver
rhein-main
rocksdb
romania
room
rpi-pico
rsocket
russian
russian_feed
russian-kotlinasfirst
rx
rxjava
san-diego
science
scotland
scrcast
scrimage
script
scripting
seattle
serialization
server
sg-user-group
singapore
skia-wasm-interop-temp
skrape-it
slovak
snake
sofl-user-group
southafrica
spacemacs
spain
spanish
speaking
spek
spin
splitties
spotify-mobius
spring
spring-security
squarelibraries
stackoverflow
stacks
stayhungrystayfoolish
stdlib
stlouis
strife-discord-lib
strikt
students
stuttgart
sudan
swagger-gradle-codegen
swarm
sweden
swing
swiss-user-group
switzerland
talking-kotlin
tallinn
tampa
teamcity
tegal
tempe
tensorflow
terminal
test
testing
testtestest
texas
tgbotapi
thailand
tornadofx
touchlab-tools
training
tricity-kotlin-user-group
trójmiasto
truth
tunisia
turkey
turkiye
twitter-feed
uae
udacityindia
uk
ukrainian
uniflow
unkonf
uruguay
utah
uuid
vancouver
vankotlin
vertx
videos
vienna
vietnam
vim
vkug
vuejs
web-mpp
webassembly
webrtc
wimix_sentry
wwdc
zircon
Powered by Linen
kotlin-native
  • s

    Simon BRUNOU

    05/24/2022, 9:20 AM
    Hi, I have an issue with
    cinterop
    . I do not understand why my definitions in
    bthledef.h
    are not accessible in Kotlin/Native for
    mingw
    when the header file is included and every other definition is generated. Why this file only? Why no output from the compiler at all? What is wrong with my project setup? Here is a link to the sample project: https://github.com/simonbrunou/kmm-native-interop-issue. Thank you for your help.
    m
    • 2
    • 2
  • h

    hfhbd

    05/24/2022, 3:29 PM
    What are your workarounds to make a value/inline class more useable in Swift? Currently, the type is mapped to Any.
    n
    p
    • 3
    • 4
  • m

    Muhammet Emin Gündoğar

    05/25/2022, 8:35 PM
    fun Int.floorEven() = this and 0x01.inv()
    I was reading a project and i saw this code but i could not understand why this code flooring the number to even i know 01 inverse equals to -2 because of 2's complement equals to 1's complement - 1 and 2 complent is negative of that number but i could not understand why this code will always work?
    :not-kotlin: 1
    e
    l
    • 3
    • 19
  • m

    Muhammet Emin Gündoğar

    05/26/2022, 9:22 AM
    fun <T:Comparable<T>>linearSearch(list:List<T>, key:T):Int?{
        for ((index, value) in list.withIndex()) {
            if (value == key) return index
        }
        return null
    }
    I was learning linear search algorithm in kotlin but there is a thing why we used comparable interface here can you explain logic of comparable part?
    n
    • 2
    • 1
  • h

    hfhbd

    05/30/2022, 5:45 PM
    I want to export a Kotlin class to Objective/C, but the generated KotlinBase interface does not contains the default functions from `kotlin.Any`:
    toString()
    ,
    hashcode
    ,
    equals
    . Do I miss something?
    r
    • 2
    • 3
  • z

    zt

    06/01/2022, 3:51 AM
    is there any guide on making a kotlin native lib that uses cinterop? basically I wanna add documentation and make use of kotlin to make it more friendly to use. I'm not sure if I would somehow include the headers, the def file, or maybe something else
    x
    n
    k
    • 4
    • 11
  • p

    Peter Hsu

    06/03/2022, 10:39 PM
    iOS crash on init ktor -> charsets->cinterop at launch
    r
    • 2
    • 7
  • n

    napperley

    06/04/2022, 12:48 AM
    How do I pass a series of program arguments to the posix_spawn function ( https://man7.org/linux/man-pages/man3/posix_spawn.3.html ; using argv parameter )? I have tried the toCStringArray function ( https://kotlinlang.org/api/latest/jvm/stdlib/kotlinx.cinterop/to-c-string-array.html ) trick but that isn't working as expected. Reading from the child process's output stream results in an infinite loop occurring. The child process is a Kotlin Native program that prints out the program arguments (via stdout).
    • 1
    • 1
  • m

    Muhammet Emin Gündoğar

    06/04/2022, 2:24 PM
    i want to learn regular expressions are they same for every languages if i learn from

    https://www.youtube.com/watch?v=rhzKDrUiJVk▾

    this video can i implement these informations in kotlin,too??
    :not-kotlin: 2
    n
    • 2
    • 1
  • n

    napperley

    06/04/2022, 11:51 PM
    It is very disappointing to see that faster linking isn't in the current Kotlin Roadmap ( https://kotlinlang.org/docs/roadmap.html ). With the many Kotlin Native projects that I have done the main contributor to build time (around two thirds) is the linking task. There was one case where adding a Kotlin Native library (eg Ktor Server) significantly increased the linking time by around 45 seconds 🤕. In another case making an edit to a line in a Kotlin source file increased the linking time by around 15 seconds.
    m
    • 2
    • 1
  • n

    napperley

    06/07/2022, 11:57 PM
    There are two platform functions that aren't accessible with the Linux targets; clone ( https://man7.org/linux/man-pages/man2/clone.2.html ) and unshare ( https://man7.org/linux/man-pages/man2/unshare.2.html ). Together these functions provide the basis for utilising Linux Namespaces ( https://man7.org/linux/man-pages/man7/namespaces.7.html ).
    e
    • 2
    • 23
  • j

    Joffrey

    06/08/2022, 9:23 AM
    Sorry for the repost, I had asked this question a while ago in #multiplatform but I think it might be more appropriate here. I'm getting the following warning in a multiplatform library with iOS support:
    A compileOnly dependency is used in the Kotlin/Native target 'iosArm64'
    The
    commonMain
    source set indeed declares
    kotlinx-serialization-json
    as a
    compileOnly
    dependency. This is what I want for non-native targets (JVM, JS browser, JS node...) because I don't want to force this JSON-specific dependency onto users that want to use other serialization formats, but I do want to add a couple JSON-specific helper functions for ease of use if they do add the JSON dep on their end. So I have a couple questions: 1. is this actually a problem? I mean, by default it's supposed to compile the native targets to a
    klib
    (not a linked binary) so why is this a problem? Shouldn't it be a problem on the consumer side when actually building a final binary? 2. if it is a problem, how can I solve it? I tried to add this dependency as
    implementation
    inside the
    iosMain
    source set, but it doesn't seem to solve the warning. Is my only option to split my module into 2 modules, one with an
    implementation
    dependency on
    kotlinx-serialization-json
    and one without the dependency? I'm tempted to just disable the warning with
    kotlin.native.ignoreIncorrectDependencies=true
    but I'd like to understand better if it's really a problem first
    e
    • 2
    • 3
  • l

    Landry Norris

    06/08/2022, 4:49 PM
    I just learned that hard way that the androidNativeArm32 source set does not actually mean that the device has a 32 bit processor. It means that the device uses the armeabi-v7a ABI. Some older or cheap devices have a 64 bit CPU, but use the armeabi-v7a ABI, so they will use the androidNativeArm32 source set, not the androidNativeArm64 source set.
    e
    • 2
    • 2
  • s

    spierce7

    06/09/2022, 9:17 PM
    Kotlin 1.7 says that it doesn’t allow exceptions to cross the objc bridge now. Isn’t this a bad thing? If I provide a Kotlin native library that makes a network call and it gets an HTTP Exception, I can no longer allow the calling code to handle the exception? Is that correct?
    l
    • 2
    • 4
  • j

    Justin

    06/09/2022, 11:25 PM
    I am trying to set up a Combine stream on a property in a Kotlin class like this:
    myKMPClass.publisher(for: \.someProperty)
       .receive(on: RunLoop.main)
       .map { $0 }
       .assign(to: &$someSwiftPublisher)
    ...but when this code executes, the app crashes with this exception:
    [NSKVONotifying_MyKMPClass setSomeProperty:] can't be overridden: it is final
    Ultimately I just want to be able to react to changes on 'someProperty' from my Swift code. Anyone have a fix (or alternative to this approach)?
    • 1
    • 1
  • b

    Benjamin Deroche

    06/10/2022, 12:23 PM
    How can I convert a C string that isn't zero terminated? The function
    CPointer<ByteVar>.toKString(): String
    only work with zero terminated C strings
    r
    n
    • 3
    • 14
  • n

    napperley

    06/11/2022, 2:21 AM
    How do I pass a
    CPointer
    that points to the end of a
    CArrayPointer
    as a parameter to a C function? Below is what I have so far:
    private val globalArena = Arena()
    // Use 65 KB for the stack size.
    private const val STACK_SIZE = 65536
    private val stack = globalArena.allocArray<ByteVar>(STACK_SIZE)
    // ...
    
    fun main() {
        println("Hello from Parent!")
        clone_process(fn = staticCFunction(::runContainer), stack = stack + STACK_SIZE, flags = SIGCHLD, arg = null)
        // ...
    }
    // ...
    Running the program results in a segmentation fault occurring after calling the clone_process function.
    d
    l
    • 3
    • 11
  • n

    napperley

    06/11/2022, 11:55 PM
    @Alexey Belkov [JB] - A bug has been discovered with the experimental memory model. Below is the Kotlin Native program:
    fun main() {
        runProgram("/bin/sh")
    }
    
    fun runProgram(cmd: String, vararg args: String): Int = memScoped {
        val programArgs = if (args.isNotEmpty()) arrayOf(cmd, *args) else arrayOf(cmd)
        execvp(cmd, programArgs.toCStringArray(this))
    }
    After running the Kotlin Native program the following error appears:
    /bin/sh: 0: Can't open p
    If the old memory model is used instead then the correct behaviour is exhibited by the Kotlin Native program, where the shell prompt appears (eg $).
    a
    • 2
    • 2
  • n

    napperley

    06/12/2022, 12:44 AM
    With a learning type project I am developing ( https://gitlab.com/napperley/containers ) it is partially based on this article: https://cesarvr.github.io/post/2018-05-22-create-containers/ There is a strange issue occurring where after running the Kotlin Native program a seg fault occurs in the child process, yet no seg fault occurs in the parent process. With the child process the seg fault seems to occur when calling a function from the POSIX library which is weird. Below is the function that represents the child process:
    @Suppress("UNUSED_PARAMETER")
    private fun runContainer(args: COpaquePointer?): Int {
        // Seg fault occurs on the line below.
        println("Hello from Child! (PID: ${getpid()})")
        // Remove all environment variables for this process.
        clearenv()
        // Load the shell process.
        val rc = runProgram("/bin/sh")
        return if (rc == -1) EXIT_FAILURE else EXIT_SUCCESS
    }
    p
    • 2
    • 5
  • n

    natario1

    06/12/2022, 6:22 AM
    I need to reference some files in $HOME/.konan/dependencies, but I would like to avoid hardcoding the path. Is there any way to do so, maybe the KGP exposes it in some way?
    m
    • 2
    • 2
  • k

    kevin.cianfarini

    06/13/2022, 2:56 AM
    I'm trying to set my
    main
    function for a
    linuxX64
    execute to be a suspend fun.
    package org.climatechangemakers.hoa.slackbot
    
    suspend fun main() { ... }
    I configure the build as so.
    linuxX64 {
        binaries {
          executable {
            entryPoint = "org.climatechangemakers.hoa.slackbot.main"
          }
        }
      }
    When I go to build, I get the following error.
    > Task :slackbot:linkReleaseExecutableLinuxX64 FAILED
    e: Entry point can not be a suspend function.
    I thought that
    suspend fun main
    was supported since like Kotlin 1.4? Is it not supported on native?
    e
    • 2
    • 4
  • n

    napperley

    06/13/2022, 11:37 PM
    If anyone is using the toCStringArray function ( https://kotlinlang.org/api/latest/jvm/stdlib/kotlinx.cinterop/to-c-string-array.html ) then they need to be aware that it produces a C Array which isn't null terminated when Kotlin Native's experimental memory model is used. However if Kotlin Native's old memory model is used then a null terminated C Array is produced.
    :ladybug: 2
    e
    p
    • 3
    • 7
  • j

    Jonathan Willis

    06/14/2022, 11:37 PM
    is it still the policy that kotlin native won’t support manual memory management (https://github.com/JetBrains/kotlin-native/issues/3894)
    👀 1
    n
    • 2
    • 8
  • a

    andylamax

    06/15/2022, 3:45 AM
    Totally out of my depth in native land, so please do forgive me if this comes out as a straight forward question. Does the new memory model place us at a position to no longer use
    memScope
    ?
    b
    e
    l
    • 4
    • 22
  • l

    Landry Norris

    06/15/2022, 3:15 PM
    Is there a good way to hook into the konan exception handler? I have a callback C method that I want to be able to throw exceptions from in the JNI, then catch and convert it to a java exception. I have this mechanism in place for blocking methods, but I can’t catch an exception from a callback lambda
    n
    • 2
    • 2
  • j

    Julian Hille

    06/15/2022, 3:26 PM
    Inheritance when compiled to native shared or static lib is not really working is it? Lets assume a fairly simple class hierarchy:
    open class A {
      fun testA() {println("Test A")}
    }
    
    class B: A {
      fun testB() { println("Test B") }
    }
    Now we compile this to linux and class B has fun testB and is missing function testA. Is that on purpose? Can i do something about it?
    l
    • 2
    • 5
  • j

    Julian Hille

    06/16/2022, 12:46 PM
    To be more precise:
    open class A {
        fun testA() {
            println("testA")
        }
    
        open fun test() {
            println("aaa")
        }
    }
    
    class B: A() {
        fun testB() {
            println("testA")
        }
    
        override fun test() {
            println("bbb")
        }
    }
    this leads to c code of:
    struct {
                      lib_sdk_KType* (*_type)(void);
                      lib_sdk_kref_sdk_A (*A)();
                      void (*test)(lib_sdk_kref_sdk_A thiz);
                      void (*testA)(lib_sdk_kref_sdk_A thiz);
                    } A;
                    struct {
                      lib_sdk_KType* (*_type)(void);
                      lib_sdk_kref_sdk_B (*B)();
                      void (*test)(lib_sdk_kref_sdk_B thiz);
                      void (*testB)(lib_sdk_kref_sdk_B thiz);
                    } B;
    and overriding testA with a super call:
    open class A {
        open fun testA() {
            println("testA")
        }
    
        open fun test() {
            println("aaa")
        }
    }
    
    class B: A() {
        fun testB() {
            println("testA")
        }
    
        override fun test() {
            println("bbb")
        }
    
        override fun testA() = super.testA()
    }
    leads to:
    struct {
                      lib_sdk_KType* (*_type)(void);
                      lib_sdk_kref_sdk_A (*A)();
                      void (*test)(lib_sdk_kref_sdk_A thiz);
                      void (*testA)(lib_sdk_kref_sdk_A thiz);
                    } A;
                    struct {
                      lib_sdk_KType* (*_type)(void);
                      lib_sdk_kref_sdk_B (*B)();
                      void (*test)(lib_sdk_kref_sdk_B thiz);
                      void (*testA)(lib_sdk_kref_sdk_B thiz);
                      void (*testB)(lib_sdk_kref_sdk_B thiz);
                    } B;
    is this on purpose? should i really add overrides with a single super call to all the places? should i cast a B instance to A and use struct A to call overriden testA func with the casted instance? All of this feels unnecessary complex
    • 1
    • 1
  • g

    Gavin Ray

    06/16/2022, 11:30 PM
    Huh so it works if I use
    g++
    instead of GCC, but manually passing
    -lstdc++
    doesn't fix it with
    gcc
    l
    • 2
    • 1
  • j

    Julian Hille

    06/21/2022, 12:24 PM
    Can someone point me to some repository or the correct branch of a ticket system where i can adresse native export / compile / inheritance issue? regarding this: https://kotlinlang.slack.com/archives/C3SGXARS6/p1655383608090949
  • s

    sreich

    06/22/2022, 1:30 PM
    is there a possibility or future to use Qt with kotlin-native? Is that something that would require a big "bindings" project, or should it kind of just work? I know there's a lot of complexity with Qt
    t
    m
    e
    • 4
    • 10
Powered by Linen
Title
s

sreich

06/22/2022, 1:30 PM
is there a possibility or future to use Qt with kotlin-native? Is that something that would require a big "bindings" project, or should it kind of just work? I know there's a lot of complexity with Qt
t

Tijl

06/22/2022, 1:54 PM
Qt is C++ and maintains no official C API so it will not “just work”. There’s plenty of binding projects to other languages, so of course it can be done, but it’s not a small job.
👍 1
s

sreich

06/22/2022, 2:06 PM
so other language interoperability is contingent upon having a C API? why is that?
m

mbonnin

06/22/2022, 2:07 PM
C++ is order of magnitudes more complex than C
💯 1
👍 1
t

Tijl

06/22/2022, 2:20 PM
nothing is contingent on one thing, but Kotlin-native has cinterop which makes it really easy (“kind of just works”) to interop with C style APIs. I’m not aware of any other interop for Kotlin/Native that “kind of just works” so then you’ll have to be the one to make it work. There’s probably other efforts that do something like that for interop with other languages already though (my guess would be to check Rust or Go bindings), but QT is a massive framework with very specific constructs that are not straightforwardly mapped to other languages. It’s going to be a “big bindings project” regardless. There’s some half (quarter? one millionth?) finished C++ interop in the kotlin native source code, but it for sure is not going to work with QT.
s

sreich

06/22/2022, 3:54 PM
@Tijl thank you, that was a nicely detailed explanation like i was looking for. cheers
e

ephemient

06/22/2022, 11:10 PM
C++ interop is challenging for every language, not just Kotlin. Rust's bindgen creates a C layer and only supports a subset of C++. SIP and Shiboken both create a C/libpython layer and require specially-formatted inputs and extra manually written bindings. SWIG also only handles a subset of C++ itself and requires manually written bindings for the rest.
basically, the C ABI is relatively simple (mostly consisting of calling convention and structure layout), and while there is some complexity in parsing C declarations, it pales in comparison to C++ where the ABI is highly complex, highly platform-dependent, not stable across versions, not even necessarily stable across compiler vendors, and the declarations are near impossible to parse completely with anything short of a real C++ compiler
👍 1
if you're focused on Qt in particular, perhaps you could mangle SIP or Shiboken (used by PyQt and PySide respectively) to produce Kotlin bindings instead of Python bindings. they've already done most of the hard work of figuring out how to parse the Qt library's definitions from source and documentation and extra annotations, and wrapping the C++ calls into something usable by other languages
as https://dlang.org/spec/cpp_interface.html says,
Being 100% compatible with C++ means more or less adding a fully functional C++ compiler front end to D. Anecdotal evidence suggests that writing such is a minimum of a 10 man-year project, essentially making a D compiler with such capability unimplementable. Other languages looking to hook up to C++ face the same problem
I don't know if Kotlin/Native will ever extend cinterop to C++, but at best it'll be a subset similar to D
t

Tijl

06/24/2022, 8:45 AM
as an example of the effort required even if you have a proper C API (GTK in this case), to see the effort to make a Kotlin style DSL for it you can check https://gitlab.com/gtk-kt/gtk-kt I’d argue it’s still a “big binding project”. the author hangs on this slack too AFAIK.
View count: 107