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
random
  • e

    elect

    07/20/2022, 2:51 PM
    https://9to5google.com/2022/07/19/carbon-programming-language-google-cpp/
    👍 3
  • k

    Klitos Kyriacou

    07/21/2022, 1:15 PM
    Another company using a logo that looks suspiciously like Kotlin's: https://twitter.com/GoKantata
    😂 3
    r
    • 2
    • 2
  • t

    Tudor Luca

    07/21/2022, 4:10 PM
    https://news.ycombinator.com/item?id=32181020
  • j

    juliocbcotta

    07/22/2022, 9:51 AM
    I am facing a weird problem... AS does not recognise the method
    addMenuProvider
    when it is being added from a kotlin class, but it does recognise it when it comes from a java class... I tried to reproduce it in another project... but I failed 😞 The compilation works just fine and I did try to invalidate caches, restarting the computer and praying... but the red line is still there... Any ideas of what I could do?
    • 1
    • 1
  • j

    Joost Klitsie

    07/22/2022, 11:16 AM
    Hi all, does Android Studio (Android Studio Chipmunk | 2021.2.1 Patch 1) also automatically start syncing while editing *.gradle.kts files for anyone? The setting
    Reload project after changes in the build scripts
    is unchecked. It is rather annoying...
  • y

    Youssef Shoaib [MOD]

    07/24/2022, 9:33 PM
    TIL that Kotlin has
    do { } while ()
    loops
    😄 2
    e
    s
    • 3
    • 2
  • r

    rdhruva

    07/26/2022, 4:18 PM
    hey folks, can someone point me to where I can get help for the intellij idea new UI? (i understand this is not the slack for it, but i hope it's ok to ask in random) I had tried it back when 2022.2 was EAP. I had since uninstalled the plugin. However, just right now, my IDEA updated from 2022.1 to 2022.2, and now I'm forced into the new UI again -- and seemingly no way to opt out of it 🙂
    j
    • 2
    • 3
  • r

    Ruckus

    07/26/2022, 5:41 PM
    Question regarding JetBrains Academy. I decided to check it out to see how it works, and when clicking the "Solve in IDE", it generates a project that Gradle doesn't like. I see this error:
    Could not set unknown property 'destinationDir' for task '...' of type org.jetbrains.kotlin.gradle.tasks.KotlinCompile
    Is this a known problem and (if so) what is the correct work around to ensure integration still works?
    t
    • 2
    • 6
  • u

    ursus

    08/04/2022, 1:55 PM
    Hi, what is this popup called? Can I configure it to display successful build as well? Currently it only shows fails (This is in AppCode)
    l
    o
    • 3
    • 2
  • p

    PoisonedYouth

    08/04/2022, 5:07 PM
    List of Kotlin related articles I've written. Additional articles will be added regularly: https://medium.com/@inzuael
  • m

    mcpiroman

    08/11/2022, 8:41 AM
    I prefer kotlin but also I don't think the given example could be much better than it is in python.
    j
    • 2
    • 2
  • e

    Ellen Spertus

    08/13/2022, 1:37 AM
    I'm going to use Kotlin in a new Intro Programming course with 100+ students this fall at Mills College in Northeastern. Any suggestions of fun libraries that are well-maintained and well-documented to use in assignments? One I'm looking at is #tornadofx. I think Android development would be too ambitious.
    o
    y
    +2
    • 5
    • 18
  • s

    Slackbot

    08/16/2022, 7:00 AM
    This message was deleted.
    l
    • 2
    • 1
  • b

    Big Chungus

    08/21/2022, 6:12 PM
    Does anyone feel that naming .klib as .kar and giving it a crow logo was a missed opportunity? Or is it just me?
    x
    • 2
    • 3
  • c

    Colton Idle

    08/21/2022, 6:20 PM
    Anyone use proguard or r8? According to https://firebase.google.com/docs/crashlytics/get-deobfuscated-reports?platform=android I have to add this for crashlytics to work. But if I "keep file names" doesn't that mean that obfuscastion isn't performed?
    -keepattributes SourceFile,LineNumberTable        # Keep file names and line numbers.
    -keep public class * extends java.lang.Exception  # Optional: Keep custom exceptions.
    y
    r
    z
    • 4
    • 7
  • a

    Alex

    08/22/2022, 5:21 PM
    Does your course cover using jetpack compose?
    a
    • 2
    • 1
  • m

    mp

    08/23/2022, 9:11 AM
    hi there do we have String equivalent of IntArray\LongArray in std lib? thx
    k
    s
    • 3
    • 3
  • w

    waghanza

    08/25/2022, 1:49 PM
    Hi everybody, Is someone interested to participate in a benchmarking project => https://github.com/the-benchmarker/web-frameworks. We already have several
    kotlin
    server-side frameworks
  • u

    ursus

    08/25/2022, 5:21 PM
    When in Android Studio at function declaration, if I start typing name
    us
    as in user, then it gives me suggestion for
    user: User
    which is exactly what I want and it is great I do the same in AppCode, and no luck any idea if this is a setting or a feature or something?
  • e

    ephemient

    08/28/2022, 7:44 PM
    private suspend fun SequenceScope<DocumentFile>.walk(root: DocumentFile) {
        yield(root)
        if (root.isDirectory) {
            for (child in root.listFiles()) {
                walk(child)
            }
        }
    }
    fun DocumentFile.walk() = sequence {
        walk(this@walk)
    }
    p
    • 2
    • 4
  • p

    Paul Woitaschek

    08/30/2022, 6:18 PM
    I’m scheduling our visit to the Kotlin Konf. How was the schedule the last time? I can only find the talks: https://kotlinconf.com/2019/talks/ But not the general schedule. When do sessions start and end? Is there some kind of after-konf-party usually?
    k
    • 2
    • 1
  • p

    PoisonedYouth

    09/02/2022, 6:49 PM
    I wrote an article regarding using multiple datasources with your SpringBoot application, trying Exposed and finally JPA. https://link.medium.com/rQZ3CAy7Zsb
  • g

    Giorgos Makris

    09/02/2022, 9:38 PM
    Is there a project like this https://github.com/tcdi/pgx but for kotlin native?
    n
    • 2
    • 2
  • a

    andylamax

    09/04/2022, 4:33 AM
    what directory structure do you trully preffer? 1️⃣
    src/common/main
    2️⃣
    src/commonMain
    e
    a
    +2
    • 5
    • 6
  • u

    ursus

    09/04/2022, 9:54 AM
    hey, I noticed in android studio Darcula looks a bit different than AppCode/IntelliJ darcula .. what gives? can I export the AS one somehow?
  • y

    Youssef Shoaib [MOD]

    09/05/2022, 5:03 PM
    Has anyone configured a Windows Terminal profile for
    ki
    yet? I think it might be a cool way to have a more-powerful Kotlin playground and be able to experiment with it directly from Windows Terminal
  • x

    xxfast

    09/07/2022, 1:34 PM
    is there a png for this 😒uspend: anywhere on the official docs? i need to use this in a markdown and i prefer link it to somewhere permanent?
    e
    r
    k
    • 4
    • 4
  • e

    elect

    09/09/2022, 6:12 PM
    is there any tool to convert java to kotlin programmatically?
    b
    e
    l
    • 4
    • 3
  • l

    Laurent Laborde

    09/14/2022, 7:41 PM
    i’m writing some rule for my simulation (some “law of nature”), most of them were suggested or autocompleted by github copilot. some of them are weird or useless but overall i’m still amazing by it. eg (copilot suggestion between []) :
    // collision between creatures [are resolved by a fight]
    // if creature that are fighting [are of the same species, they reproduce]
    • 1
    • 3
  • r

    Ruckus

    09/14/2022, 11:04 PM
    Proposal: The stdlib shall henceforth be called "Canonical" By extension • Everything under the
    kotlinx
    package shall henceforth be called "Apocryphal" • Third party libraries shall henceforth be called "Fan Fic"
Powered by Linen
Title
r

Ruckus

09/14/2022, 11:04 PM
Proposal: The stdlib shall henceforth be called "Canonical" By extension • Everything under the
kotlinx
package shall henceforth be called "Apocryphal" • Third party libraries shall henceforth be called "Fan Fic"
View count: 3