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

    maku

    05/26/2017, 12:45 PM
    Hey there, I'm researching Kotlin Native and I'm wondering if it's possible to build a library instead of an executable. And if so, how do you then make that library callable from another language (for example C)
    o
    • 2
    • 3
  • m

    maku

    05/26/2017, 1:38 PM
    I've experimented with
    -nomain
    parameter to
    konanc
    but it still expects a library to provide
    main
    function
    n
    o
    • 3
    • 2
  • s

    sksk

    05/29/2017, 7:33 PM
    i just saw that basic windows support landed on master, so i decided to give it a try but gradle fails: https://gist.github.com/Scellow/ff2375281ee077df5a92388c36e002af do i need to do something specific for windowd ? or it is too early to test ?
    s
    o
    t
    • 4
    • 8
  • s

    sksk

    06/01/2017, 1:40 PM
    sample code from https://www.rust-lang.org/en-US/ in Kotlin Native :kotlin: on windows FeelsGood man, kotlin syntax is 10000000000x better

    http://i.imgur.com/pP4WPrW.png▾

    👍 2
    :kotlin: 1
    e
    s
    • 3
    • 2
  • o

    orangy

    06/01/2017, 8:46 PM
    Hopefully you are not going to do it like
    println("${when(…) {…}}")
    😄
    m
    c
    • 3
    • 5
  • m

    marcinmoskala

    06/01/2017, 9:30 PM
    Yeah, this is what I mean in paragraph about Isolationism http://marcinmoskala.com/kotlin/2017/05/31/what-i-hate-in-kotlin.html
    e
    • 2
    • 2
  • o

    olonho

    06/02/2017, 10:54 AM
    we now support generation of Windows binaries (64-bit on 64-bit hosts for now), so if you're interested in testing Windows, feel free to try the current master. Contributions (for example cross-compilation from Linux) are welcome.
    🍷 2
    👍 3
    🔥 5
    🍾 23
    :kotlin: 10
    s
    h
    • 3
    • 4
  • b

    badlogic

    06/05/2017, 10:46 AM
    so who here is working on a Kotlin (Native) based cross-platform game framework engine? let me know, so I don’t have to.
    👍 8
    :kotlin: 11
    💥 11
    😻 7
    s
    o
    +2
    • 5
    • 11
  • l

    louiscad

    06/07/2017, 12:32 PM
    React with an Apple 🍏 if you demand iOS simulator support for Kotlin Native :kotlin-flag:
    🐧 1
    🤖 2
    🍏 18
    🍌 7
    :android: 10
    s
    o
    • 3
    • 2
  • c

    caffeine

    06/09/2017, 10:15 PM
    Can I use Kotlin-native for run on Arduino? 😃
    o
    • 2
    • 1
  • n

    nish

    06/09/2017, 11:38 PM
    No
    o
    • 2
    • 3
  • n

    napperley

    06/10/2017, 5:42 AM
    Is there additional information available on the Kotlin Native IDE? Need to know what desktop platforms (eg Linux, Windows, MacOS) the IDE will run on.
    o
    o
    • 3
    • 5
  • d

    dsgryazin

    06/10/2017, 7:25 AM
    Is there a way I could compile kotlin native and then use it in ios project as a dependency? Is there an instruction how to do it?
    o
    • 2
    • 1
  • o

    orangy

    06/10/2017, 9:33 AM
    But running is not enough 🙂 It needs to work with appropriate SDK, integrate with tools (like flashing), etc. I don’t think there is an open standard for everything, so that would take time and probably vendors coordination, or community effort. And this normally take a lot of time…
    n
    • 2
    • 4
  • t

    tunedal

    06/11/2017, 12:06 PM
    So, I'm attempting to run the Windows toolchain under Wine, which, aside from the DOS batch scripts having to be rewritten in bash, seems to work. At least for "hello world". But trying to build the bindings for a header file with cinterop, I get this error:
    nativelib-build\natives\cstubs.c:2220:21: error: always_inline function '_cvtsh_ss' requires target feature 'sse4.1', but would be inlined into function 'win32_kni__cvtsh_ss' that is compiled without support for 'sse4.1'
        return (float) (_cvtsh_ss((unsigned short)__a));
    ...meaning that Kotlin/Native on Windows requires SSE 4.1? It's apparently not supported on AMD processors made before 2011, like mine: http://www.cpu-world.com/Glossary/S/SSE4.1.html
    o
    • 2
    • 2
  • c

    caffeine

    06/12/2017, 7:31 PM
    will kotlin-native support reflection? where i can read about reflection in kotlin-native?
    o
    • 2
    • 1
  • s

    spierce7

    06/13/2017, 7:11 PM
    @olonho Is there anything planned around generating kotlin code for kotlin-native? I know annotation processors work for the jvm, but is anything being worked on for generating kotlin-native code? If not, are there any ways we can do static analysis of Kotlin code at compile time to make our own code generation plugin? I haven't found any resources on static analysis of kotlin code.
    o
    • 2
    • 3
  • g

    gimlet

    06/15/2017, 10:33 PM
    @orangy thanks. I mean on hardware without OS, some sort of 'kernel'. I can't find anything like that in his blog
    👍 1
    👏 1
    n
    o
    • 3
    • 6
  • s

    semoro

    06/16/2017, 12:31 PM
    @gimlet Not sure that all commited, but https://github.com/semoro/KOS

    https://kotlinlang.slack.com/files/semoro/F5U9VD4BT/screenshot_20170616_152843.png▾

    👏 8
    g
    • 2
    • 2
  • l

    lucasas

    06/19/2017, 9:18 PM
    Hi, I was wondering why is the constructor for Array inlined in Kotlin native. I looked up the source and it seemed to be using some annotations for "compiler magic". https://github.com/JetBrains/kotlin-native/blob/master/runtime/src/main/kotlin/kotlin/Array.kt
    o
    m
    • 3
    • 2
  • a

    aoriani

    06/20/2017, 12:17 AM
    Perhaps because of this https://docs.oracle.com/javase/tutorial/java/generics/restrictions.html#createArrays ?
    m
    • 2
    • 2
  • s

    sksk

    06/21/2017, 11:48 AM
    will the compiler be ported to kotlin native in the future ?
    o
    m
    r
    • 4
    • 6
  • o

    olonho

    06/22/2017, 1:36 PM
    for those, who is interested in coding for Android using Kotlin/Native, take a look at this sample: https://github.com/JetBrains/kotlin-native/tree/master/samples/androidNativeActivity
    💪🏽 3
    🎉 11
    👍 3
    :android: 7
    l
    • 2
    • 1
  • r

    russhwolf

    06/23/2017, 1:39 AM
    It looks like the v0.3 release didn't get tagged? Having trouble figuring out which commit the release corresponds to.
    o
    • 2
    • 1
  • z

    zeljko

    06/23/2017, 7:49 AM
    Which 3rd party libraries could be used with Kotlin Native? For example, if I want to write app that reads JSON from file and writes it to database, would I use Jackson and Hibernate or some C stuff?
    o
    j
    • 3
    • 3
  • k

    kyle

    06/23/2017, 1:58 PM
    trying to run the kotlin/native samples with the gradle setup and having some issues getting it to sync. Anyone seen this?
    Caused by: java.io.IOException: Cannot run program "/Users/kfowler/Development/Kotlin/kotlin-native/dist/dependencies/clang-llvm-3.9.0-darwin-macos/bin/clang++" (in directory "/Users/kfowler/Development/Kotlin/kotlin-native/common/build/macbook/hash"): error=2, No such file or directory
            at net.rubygrapefruit.platform.internal.DefaultProcessLauncher.start(DefaultProcessLauncher.java:25)
            ... 4 more
    Caused by: java.io.IOException: error=2, No such file or directory
            ... 5 more
    o
    • 2
    • 3
  • r

    redrield

    06/24/2017, 1:52 AM
    Are there any steps that I need to take to set up IntelliJ for Native?
    o
    n
    • 3
    • 3
  • n

    nish

    06/24/2017, 3:50 AM
    Are there any plans for unsigned primitive types in Kotlin native?
    o
    n
    • 3
    • 2
  • b

    bmsantos

    06/25/2017, 1:12 AM
    I have the interest of using Kotlin to provide native functions and expose them through node ffi
    n
    n
    +3
    • 6
    • 28
  • f

    fabianterhorst

    06/25/2017, 2:36 PM
    I have an question. Is it possible to generate an .dll from an library?
    o
    • 2
    • 1
Powered by Linen
Title
f

fabianterhorst

06/25/2017, 2:36 PM
I have an question. Is it possible to generate an .dll from an library?
o

olonho

06/25/2017, 2:50 PM
fabianterhorst: not from a klib, as they have completely different purposes. To generate dll from arbitrary Kotlin/Native code - it is feasible, but not currently supported mode of operations. We’re working on it.
👍 3
View count: 1