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
announcements
  • f

    felix

    11/22/2017, 10:23 AM
    I would use Guice, I feel it is simpler to configure. Dagger is more performant, but requires code generation AFAIK.
    g
    2 replies · 2 participants
  • d

    dragas

    11/22/2017, 11:34 AM
    I agree that building the DI graphs in cumbersome and the boilerplate to integrate them is verbose, but I do find them useful when writing unit tests. Instead of rewriting your project in test form, you just swap dependencies with mock ones and don't really think about it.
    r
    1 reply · 2 participants
  • p

    poohbar

    11/22/2017, 6:12 PM
    yes, I am.. and so what? why should a user that needs more than 1 kotlin library be greeted with this message and no suggestion for a fix?
    a
    1 reply · 2 participants
  • e

    elect

    11/22/2017, 7:14 PM
    it looks like Kotlin has all except the Form Feed, http://www.javacodex.com/Basic-Java-Examples/Java-Escape-Sequences
    o
    7 replies · 2 participants
  • m

    mersan

    11/22/2017, 8:22 PM
    I know this question maybe already questioned before but looking for answer from experienced developers, can we share business logic between iOS and Android using Kotlin Native or it will bring more trouble than helping saving time?
    k
    2 replies · 2 participants
  • s

    Shawn

    11/22/2017, 8:45 PM
    this time with a “Maintenance is in progress…” message and a throbber to go along with it
    m
    1 reply · 2 participants
  • k

    keturn

    11/23/2017, 7:00 AM
    there’s this bundle of O’Reilly books on Java at Humble Bundle this week: https://www.humblebundle.com/books/java-books are there any of those you’d particularly recommend to those of us coming to Kotlin without a Java background?
    d
    3 replies · 2 participants
  • d

    dh44t

    11/23/2017, 11:16 AM
    No joking, someone in Lynda.com has a Kotlin course. It covers funKTionale... I saw the video trailer and the guy is just reading the Wiki :troll:
    🎉 2
    😂 2
    e
    v
    +1
    6 replies · 4 participants
  • s

    sveri

    11/23/2017, 7:15 PM
    Hi, I have a question about the idiomatic usage of maps. I have a map and want to retrieve a value. Before doing so I call containsKey. Afterwards I call get:
    val planetHasNumberOfSettlers = mutableMapOf<Number, Number>()
    val nrOfSettlers: Number = if (planetHasNumberOfSettlers.containsKey(closePlanet.id)) {
                        planetHasNumberOfSettlers[closePlanet.id]
                    } else 0
    Now the compiler emits an error: Type mismatch Required Number Found Number? I get why that is, but shouldnt kotlin be able to infer that I make sure that the item is existent?
    c
    a
    +1
    7 replies · 4 participants
  • s

    sveri

    11/23/2017, 7:20 PM
    That happens all inside one function, the map is created there and destroyed
    c
    i
    5 replies · 3 participants
  • s

    sxtanna

    11/24/2017, 8:05 AM
    Is there any reason you can't link to a specific function using kotlin documentation...
    g
    2 replies · 2 participants
  • n

    Natsuki(开元米粉实力代购)

    11/24/2017, 8:53 AM
    thank you, I give up, I’ll use a
    (Foo)->Unit
    instead 😁
    g
    1 reply · 2 participants
  • t

    Torbilicious

    11/24/2017, 10:23 AM
    wouldn’t it be nice to also have a copy method for deep copies?
    d
    1 reply · 2 participants
  • l

    louiscad

    11/24/2017, 6:34 PM
    Kotlin 1.1.61 is coming!
    n
    1 reply · 2 participants
  • s

    stefano.maffullo

    11/25/2017, 3:19 PM
    Hello everyone, how can I create a data structure for example with two different types like ArrayList<Double, String>
    j
    k
    +1
    13 replies · 4 participants
  • c

    cedric

    11/25/2017, 5:53 PM
    @karelpeeters Missed opportunity there, should have been called "bang bang"
    ‼️ 4
    😅 2
    👍 1
    k
    h
    2 replies · 3 participants
  • f

    forcelain

    11/26/2017, 11:05 AM
    how do I check if a map contains a certain entry?
    c
    k
    9 replies · 3 participants
  • a

    Abdo Tarek

    11/26/2017, 7:21 PM
    that is my first time ask iam civil Engineer work with Excel sheets with macro is that possible to use kotlin with Excel without visual basic🙂
    k
    2 replies · 2 participants
  • a

    alexcouch

    11/27/2017, 4:50 AM
    @Shawn yeah you're right it just bugs me that I try to be objective about new languages and they just flat out dismiss them because it's not C++ or it doesn't have new features that benefit them or something. But I've read a post by the CEO of JetBrains that making kotlin go native is a bad idea and he gave a few big reasons why. Not trying to pull an appeal to authority fallacy but if the guy who leads kotlin development disagrees with making it native then maybe that says something but like you said, it's still early in development so I'm still waiting to see what it becomes in the future. I doubt it's gonna be anything like rust, unless there's reason to believe it can compete against rust but whom knows. And in the past I've only been able to find a few blog articles about native and it seems promising but from what I've been hearing from some others and from what I've been reading, it just seems like a lost cause to port kotlin to llvm. But again I don't know that much about kotlin native I'm gonna have to look through it more if I can find some official documentation revolving around how it works and how it's staying as kotlin while switching to a completely new backend
    g
    2 replies · 2 participants
  • c

    cedric

    11/27/2017, 6:09 AM
    And speaking of back ends, I'd love for Kotlin to support a fourth one: Web Assembly. Rust just added support for it and a "Hello world" program is around 200 bytes (!). Much better than going through Javascript
    ➕ 1
    g
    o
    4 replies · 3 participants
  • a

    alexcouch

    11/27/2017, 7:21 AM
    I just looked back at what I was referencing but I guess I don't know the staff of jetbrains well enough lol what I read was from Alexey not Andrey nor Maxim. I think you know what I'm talking about
    o
    3 replies · 2 participants
  • a

    alexcouch

    11/27/2017, 7:26 AM
    Now one thing that I am having trouble with is getting the kotlin native plugin for CLion. I have searched for it in the plugin dialog but to no avail. I installed the latest update so I don't know why I can't find it. Do I have to manually download it to install it or what?
    g
    1 reply · 2 participants
  • m

    Mathew xu

    11/27/2017, 7:32 AM
    hey, guys, I have some questions recently, I wonder:is possible android framework written in Kotlin in the future?
    g
    1 reply · 2 participants
  • l

    leodeng

    11/27/2017, 12:21 PM
    from one of my gradle projects, it seems that kotlin-stdlib-jre8 1.1.61 is dependent on kotlin-stdlib-jre7 1.1.51, and also kotlin-stdlib-jre7 1.1.61 is dependent on kotlin-stdlib 1.1.51. so in order to use 1.1.61 for all of them, i have to write 3 lines instead of just one line. is this intentional?
    h
    3 replies · 2 participants
  • l

    louiscad

    11/27/2017, 12:47 PM
    @leodeng You don't need to add the dependencies yourself, gradle should figure out them itself from the
    .pom
    files
    l
    1 reply · 2 participants
  • s

    snrostov

    11/27/2017, 1:05 PM
    Discussion was here https://blog.jetbrains.com/kotlin/2015/03/follw-up-new-class-object-syntax/ …
    r
    j
    6 replies · 3 participants
  • n

    neworldlt

    11/27/2017, 7:48 PM
    Does somebody know, why kotlin can’t extend Groovy class, while Java can? It is a bug or feature? https://discuss.kotlinlang.org/t/extending-groovy-class-from-kotlin/1675
    k
    c
    9 replies · 3 participants
  • g

    g4sarma

    11/27/2017, 8:27 PM
    Doesn't work it just says Error:(16, 19) Kotlin: Unresolved reference: ListeningExecutorService
    i
    1 reply · 2 participants
  • j

    jchannon

    11/27/2017, 10:26 PM
    @orangy thanks. Will try it. As I said above I'd like to expose public T MyClass.Get<T>()
    s
    o
    5 replies · 3 participants
  • d

    Doug

    11/28/2017, 12:58 AM
    Hello all, I’m currently picking up Kotlin. I’m looking for interesting OSS projects to contribute to, to help me better learn it. Any suggestions?
    👍 1
    e
    2 replies · 2 participants
Powered by Linen
Title
d

Doug

11/28/2017, 12:58 AM
Hello all, I’m currently picking up Kotlin. I’m looking for interesting OSS projects to contribute to, to help me better learn it. Any suggestions?
👍 1
e

elect

11/28/2017, 8:57 AM
Interested in 3d graphics? https://github.com/kotlin-graphics/
A guy is working on adding the DirectX format support in assimp, I'd be very happy to have other supports implemented if you want 🙂
View count: 2