https://kotlinlang.org logo
Docs
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
  • u

    uliluckas

    11/05/2017, 10:00 PM
    It also seems, scheduling a lot of jobs to a fixed set of workers (2) produces a lot of threads? I'd expect a fixed number of thread (2)
    o
    • 2
    • 1
  • s

    spierce7

    11/06/2017, 4:10 PM
    Do we have the ability to do background threading work in Kotlin-native yet without using C++ / C to manage the threads?
    m
    o
    • 3
    • 2
  • k

    kartikpatodi

    11/06/2017, 6:41 PM
    i tried to build the Hello World example but it gives error The system is: Windows - 10.0.15063 - AMD64
    s
    • 2
    • 2
  • r

    redrield

    11/06/2017, 10:11 PM
    Is that a known issue? Do I need a physical device to do Kotlin on iOS?
    r
    o
    • 3
    • 2
  • t

    Thiago

    11/07/2017, 1:22 AM
    Where I report Kotlin native plugin issue? I did not found the plugin repository.
    o
    • 2
    • 1
  • j

    jmullin

    11/07/2017, 4:44 PM
    Hey folks. Trying to just dip my toes into Kotlin Native, and I’m having some issues with the
    cinterop
    tool. When attempting to run the
    build.sh
    for the included samples, or to run
    cinterop
    against a
    .def
    file manually, I get a “file not found” error from
    cinterop
    against the first header file it attempts to open each time.
    o
    • 2
    • 3
  • m

    madsbf

    11/07/2017, 4:46 PM
    With the Objective-C support in Kotlin/Native, would it be possible to publish a framework written in Kotlin/Native as an iOS Native Framework? My motivation for this, would be, that an iOS developer could then call the framework from Swift.
    👍🏽 7
    o
    a
    +2
    • 5
    • 5
  • o

    orangy

    11/08/2017, 7:26 AM
    Kotlin/Native doesn’t support multiplatform yet
    s
    m
    o
    • 4
    • 6
  • o

    orangy

    11/08/2017, 7:27 AM
    Also you must have a Mac to work with it 😉
    d
    • 2
    • 2
  • a

    agrosner

    11/08/2017, 3:35 PM
    seems like this may have already been asked. After importing the https://github.com/JetBrains/kotlinconf-app iOS project into CLion, what configuration should I set up in the IDE? I do not see the Kotlin/Native option for building which is strange.
    • 1
    • 1
  • k

    kenkyee

    11/09/2017, 7:57 PM
    but how do you debug errors, memory issues, use shared libraries, etc.? Kotlin Native is in its infancy...though I do hope it gets a lot better 😉
    o
    • 2
    • 1
  • a

    agrosner

    11/10/2017, 12:49 AM
    Kotlin native for iOS as I can tell will just use the header filles directly without any bindings like xamarin . Quote me if I'm wrong
    o
    • 2
    • 1
  • t

    Thiago

    11/10/2017, 2:07 AM
    Kotlin native uses LLVM. Flutter uses LLVM. Will it be possible to use Kotlin in Flutter? 😬
    n
    a
    +4
    • 7
    • 16
  • m

    msink

    11/10/2017, 2:07 PM
    Well, cross-platform build works: https://github.com/msink/hello-kotlin
    👍🏽 2
    👍🏻 9
    s
    • 2
    • 8
  • s

    sksk

    11/10/2017, 5:12 PM
    tried this but it seems to be wrong:
    val file = fopen("../data/maps/nexus_prod.wmap", "r")
        file?.let {
            println("INFO: File found ")
            
            fseek(it, 0, SEEK_END)
            val size = ftell(it)
            rewind(it)
            
            val buffer = it.readBytes(size.toInt())
    
            val reader = Reader(buffer)
            val version = reader.readByte()
    
            println("Version: $version")
        }
        fclose(file)
    m
    o
    • 3
    • 3
  • d

    diegog

    11/10/2017, 5:47 PM
    Have someone ever tried to create bindings for a new custom library? (with custom I mean you wrote it 😀)
    m
    e
    s
    • 4
    • 8
  • r

    redrield

    11/11/2017, 4:15 AM
    Anyways, I run the app on a physical iPhone SE, and without even opening the keyboard I get a SIGABRT
    s
    • 2
    • 1
  • r

    redrield

    11/11/2017, 4:15 AM
    Anyone know why that would be happening?
    s
    • 2
    • 2
  • s

    spierce7

    11/11/2017, 5:19 PM
    Does Kotlin-native have any sort of
    WeakReference
    ?
    o
    • 2
    • 5
  • a

    akshaychordiya

    11/13/2017, 9:50 AM
    I'm trying to run
    konanc audio.kt -library wavplay -o audio
    on Windows. But it's crashing with an exception saying
    wavplay
    not found. While the
    wavplay.klib
    file is already in current working directory. Any suggestions to tackle this problem?
    a
    • 2
    • 3
  • m

    Minty

    11/15/2017, 9:08 AM
    Is programming in Kotlin native the same as for JVM? Or do I have to go through complicated stuff like "Garbage collection" and things like that which I won't understand?
    c
    g
    +2
    • 5
    • 5
  • l

    louiscad

    11/15/2017, 1:39 PM
    Is Kotlin/Native capable of compiling for and running in constrained embedded systems such as microcontrollers? If it's currently not, is this capability planned in the future?
    ☝️ 1
    o
    m
    +3
    • 6
    • 46
  • p

    Peter Quade

    11/16/2017, 2:14 PM
    I'm excited for the objc interop but I'm a bit puzzled about how it's actually supposed to work. How are two objc selectors
    popcorn:withSalt:
    and
    popcorn:withSugar:
    distinguished on the kotlin side?
    🤔 1
    s
    o
    o
    • 4
    • 7
  • j

    jb

    11/16/2017, 7:25 PM
    Hello all. I'm trying to read a binary file with kotlin-native on linux. I've written a function to do so (https://pastebin.com/6uktKcfd), but I end up getting SIGABRT and a dump (see bottom of pastebin). Can anyone spot what I'm doing wrong?
    s
    • 2
    • 3
  • d

    dsgryazin

    11/17/2017, 11:28 AM
    I'm trying to understand the possibilities of
    .klib
    artifacts. I saw examples of usage inside KN world, but I wonder if there a way I could make gradle library module with KN code and use it - as dependency in plain JVM Android Project? - as dependency in Android Project with KN? - as dependency in ios project, built with KN?
    o
    • 2
    • 1
  • p

    peterholak

    11/18/2017, 12:24 PM
    I'm trying to update my old
    build.gradle
    for KN 0.4, but it seems any
    linkerOpts
    I specify in an
    interop
    are ignored when linking the final program that uses the interop. Do I have to manually specify linker options in the
    program
    instead?
    o
    • 2
    • 1
  • d

    dsgryazin

    11/18/2017, 3:07 PM
    Can someone show me how to use KN implementation in Android JVM activities with JNI? Imagine if one used KN and C-libraries for the app core logic, for example, network request, json-parsing and view state machine. I jues one can use it with the rest of JVM-android part via JNI. I suppose reusing it in IOS would be easier, as c libraries are there for free.
    n
    o
    • 3
    • 3
  • a

    Art

    11/18/2017, 5:20 PM
    I compiled Hello World sample from CLion, but on OSX the executable size is 7M. How can I make it smaller?
    s
    • 2
    • 3
  • l

    levcom

    11/18/2017, 8:37 PM
    How to convert CPointer<ByteVar>? to Int Value/ I try it.reinterpret<IntVar>().pointed.value, but did't work
    m
    o
    • 3
    • 13
  • f

    fjanicki

    11/19/2017, 12:36 AM
    Is it possible with Kotlin Native to do embedded development for MCUs? I am using a framework written in C called ESP-IDF for the ESP32, I was wondering if I could maybe use Kotlin native instead of C for this task? I looked at the samples and found no examples for embedded dev.
    n
    • 2
    • 2
Powered by Linen
Title
f

fjanicki

11/19/2017, 12:36 AM
Is it possible with Kotlin Native to do embedded development for MCUs? I am using a framework written in C called ESP-IDF for the ESP32, I was wondering if I could maybe use Kotlin native instead of C for this task? I looked at the samples and found no examples for embedded dev.
n

napperley

11/19/2017, 1:47 AM
Since Kotlin Native is LLVM based it will only work on platforms that LLVM supports. Since LLVM doesn't support ESP32 that wouldn't be an option. Also Kotlin Native doesn't have an implementation for any of the uC platforms (eg ARM Cortex M).
f

fjanicki

11/19/2017, 2:23 AM
I see, thank you for the response! I was really hoping that this would be a possibility.
View count: 4