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
  • b

    badlogic

    06/26/2017, 6:01 PM
    @olonho regarding lib generation, anything I can help with? Seems straight forward to throw everything into a static lib plus adding some initialization code for embdding.
    o
    • 2
    • 3
  • t

    tvede

    06/27/2017, 8:39 PM
    Hello, are any aware of a ESP8266Wifi project using kotlin native ? (and or anyone in progress of so ) 🙂
    👍 1
    o
    • 2
    • 6
  • n

    nish

    06/27/2017, 8:52 PM
    you can write code for the raspberry pi though
    o
    n
    • 3
    • 3
  • r

    redrield

    06/27/2017, 8:54 PM
    So, just wanna get this straight
    o
    n
    • 3
    • 3
  • r

    redrield

    06/28/2017, 4:03 PM
    Is there any recommended editor to use since IntelliJ seems to choke on native library definitions?
    o
    n
    • 3
    • 4
  • n

    nish

    06/28/2017, 5:22 PM
    I use vscode
    n
    g
    • 3
    • 10
  • j

    jw

    06/30/2017, 12:58 AM
    none of the samples show dependencies on Kotlin's platform common modules
    n
    • 2
    • 2
  • j

    jw

    06/30/2017, 12:59 AM
    i'm trying to demo trivial code sharing across JVM, web, and native
    n
    • 2
    • 2
  • b

    badlogic

    06/30/2017, 6:33 PM
    i want to compile directly on the pi
    o
    • 2
    • 1
  • a

    agrosner

    07/01/2017, 9:52 PM
    cant wait for iOS support. be amazing to write common Kotlin code and be able to reference frameworks/pods from Kotlin.
    o
    • 2
    • 3
  • t

    tunedal

    07/02/2017, 1:03 PM
    Can I somehow cast an Int to a String? The LoadCursorW function accepts an
    LPWSTR
    argument, which gets turned into a
    String?
    argument by the interop wrapper, but you're supposed to be able to pass the predefined constant
    IDC_ARROW
    , defined like this:
    #define MAKEINTRESOURCEW(i) ((LPWSTR)((ULONG_PTR)((WORD)(i))))
    #define IDC_ARROW MAKEINTRESOURCEW(32512)
    o
    • 2
    • 2
  • r

    redrield

    07/08/2017, 11:51 PM
    Is Native aiming to be low level enough to create an operating system? Or is it going to be a bit higher level than that
    👍🏽 2
    n
    k
    +3
    • 6
    • 11
  • r

    redrield

    07/08/2017, 11:51 PM
    I'm not sure how possible it may be because of the GC
    o
    • 2
    • 2
  • e

    elezium

    07/09/2017, 2:14 AM
    Will Kotlin Native include a standard library (networking, for example) at some point or it will take advantage of already written C libraries ?
    o
    • 2
    • 2
  • i

    ibelieve

    07/09/2017, 5:20 PM
    Is there a way to define finalizers/destructors in Kotlin Native? I'm experimenting with high-level bindings for Gtk, and would like to automatically wrap GObject reference counting, in particular, calling
    unref()
    .
    o
    • 2
    • 1
  • i

    ibelieve

    07/09/2017, 9:19 PM
    @nish I'm looking for a more automated approach, so that when the high-level wrapper goes out of scope/gets deleted, it automatically unrefs/frees the gobject CPointer. Objects could potentially be long-lived as well (assigned to properties, for example), and could outlive a simple scoped block.
    o
    t
    • 3
    • 3
  • d

    dalexander

    07/13/2017, 12:27 PM
    Has anyone tried using SIMD intrinsics with native yet? It seems like it should be possible.
    o
    • 2
    • 1
  • n

    napperley

    07/14/2017, 4:51 AM
    Would be interesting to see if Kotlin Native can interact with some of the Python (CPython) standard lib, by calling Python 🐍 from Kotlin :kotlin: . In theory Python (CPython), and Kotlin Native uses libffi for C interop so it should be possible. How much interest would there be for a Python interop sample ❔
    o
    g
    • 3
    • 3
  • o

    orangy

    07/14/2017, 5:01 AM
    I don’t think you can gauge interest in this channel, but if you do it and blog, I believe people will find and use it
    n
    • 2
    • 1
  • j

    jw

    07/17/2017, 2:44 PM
    can i feed .kotlin_metadata files into konan somehow?
    b
    • 2
    • 6
  • s

    sksk

    07/18/2017, 5:07 PM
    is kotlin native also part of the cooperation with Google? i mean are Google interested about it? i suspect they'll choose kotlin native for main programming language for their new "fuchia" platform 😛
    r
    n
    +5
    • 8
    • 14
  • a

    abatutin

    07/19/2017, 10:54 AM
    i've been able to compile library for iphone target and now i have a stupid question - can i use it inside obj-c or swift project? and how to link it properly?
    s
    • 2
    • 11
  • f

    ftomassetti

    07/20/2017, 4:12 PM
    Hi everyone, for those interested I wrote a small tutorial on Kotlin native. I would love to hear your opinion on it: https://superkotlin.com/kotlin-native/
    👍 2
    b
    n
    +2
    • 5
    • 19
  • o

    orangy

    07/20/2017, 5:08 PM
    #random on threads 😉
    n
    • 2
    • 2
  • y

    yperess

    07/22/2017, 2:21 AM
    Quick question (I hope) do annotations and annotation processing work for native?
    o
    • 2
    • 3
  • e

    evanchooly

    07/24/2017, 8:05 AM
    so one of the benefits of the JVM is automatic bounds checking on arrays. does kotlin-native compiled code still have that? or are arrays sufficiently abstracted by the language that they're not "true" JVM arrays to begin with?
    ➕ 3
    o
    • 2
    • 2
  • e

    egoscio

    07/24/2017, 8:15 AM
    Is there any projection as to if and when Kotlin will be able to work with Cocoa/Cocoa-Touch?
    :kotlin: 4
    o
    b
    +2
    • 5
    • 6
  • j

    jw

    07/24/2017, 10:35 PM
    can I implement a Kotlin interface in native code?
    ☝️ 1
    o
    • 2
    • 1
  • k

    kevinherron

    07/25/2017, 5:25 PM
    how much of the kotlin stdlib is usable in native?
    s
    t
    o
    • 4
    • 3
  • m

    marcoferrer

    07/26/2017, 4:16 PM
    kotlin-native-linux-0.3/bin/konanc led.kt -target raspberrypi -library pigpio.bc -linkerOpts "-L`pwd`/PIGPIO -lpigpio" -o led -verbose -g
    o
    • 2
    • 1
Powered by Linen
Title
m

marcoferrer

07/26/2017, 4:16 PM
kotlin-native-linux-0.3/bin/konanc led.kt -target raspberrypi -library pigpio.bc -linkerOpts "-L`pwd`/PIGPIO -lpigpio" -o led -verbose -g
o

olonho

07/27/2017, 9:08 AM
seems you have start.kt linked in twice in your code, so maybe the way pigpio.bc created is wrong (and you shall link with .klib, not .bc, in the first place)
View count: 1