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

    louiscad

    11/15/2018, 9:46 PM
    https://motherboard.vice.com/en_us/article/a3mgxb/the-internet-has-a-huge-cc-problem-and-developers-dont-want-to-deal-with-it
    k
    s
    • 3
    • 4
  • h

    Hamza

    11/16/2018, 3:10 PM
    I use it
    e
    • 2
    • 6
  • u

    ursus

    11/17/2018, 5:53 AM
    Anybody having experience with state machines design, specifically nested ones?
    l
    • 2
    • 1
  • l

    louiscad

    11/17/2018, 7:03 AM
    How come there's no #love channel in this Slack yet??? Even after Andrey Breslav talked about it at KotlinConf 2018… I need to externalize my Kotlin love now!
    :yes: 3
    v
    a
    p
    • 4
    • 7
  • u

    ursus

    11/17/2018, 7:24 AM
    If I have certain actions, which are allowed in certain state, where they dont change it state, however those actions are async, so need to change "some" state to pending, in order to avoid multiple calls until the async is finished i.e. I have call states, for example one of which is Activated, and I have actions like MuteMic, where this action is only allowed in Activated state but lets say MuteMic is heavy / or async, so I need to surround it with pending state, should that pending state be part of the call state hierarchy, i.e. on the same level as Activated is, or somehow nested inside it, or separate state machine?,
    when state == Activated
       when action == MuteMic
          state = ActivatedMuteMicPending
          effect(Effect.DoMuteMic)
          state = Activated
    sealed class State {
       object Activated,
       object ActivatedMuteMicPending
    }
    im not sure if this is good design
    l
    • 2
    • 2
  • s

    suresh

    11/18/2018, 6:52 AM
    JVM is finally getting support for continuations and fibers…

    https://www.youtube.com/watch?v=vbGbXUjlRyQ▾

    This is a game changer IMO. No need to distinguish between blocking and non blocking call. A fiber never issues thread-blocking operations. Any call to a blocking operation becomes fiber-blocking rather than thread-blocking.
    r
    u
    e
    • 4
    • 3
  • j

    janvladimirmostert

    11/19/2018, 6:46 AM
    i noticed on StackOverflow that Dart has icon next to it, how do we put an icon next to the Kotlin tag?
    i
    • 2
    • 4
  • s

    Shawn

    11/21/2018, 8:13 PM
    https://conemu.github.io/en/SettingsQuake.html
    👍 1
    v
    • 2
    • 1
  • o

    oshai

    11/21/2018, 9:00 PM
    Is it possible to embed runnable kotlin code in medium blog post?
    • 1
    • 1
  • j

    janvladimirmostert

    11/28/2018, 1:20 PM
    whoohoo, Kotlin finally has an icon on StackOverflow 😄
    😕 9
    🤨 1
    r
    e
    +4
    • 7
    • 21
  • s

    Shawn

    12/02/2018, 2:43 AM
    (which most folks know from the infamous Go “faux generics” post: https://www.reddit.com/r/rust/comments/5penft/parallelizing_enjarify_in_go_and_rust/dcsgk7n/)
    r
    • 2
    • 1
  • o

    orangy

    12/03/2018, 10:05 PM
    at least haircut 🙂
    l
    • 2
    • 1
  • h

    himrin

    12/03/2018, 10:13 PM
    Cool! Definitely share! I don’t think my wife will approve of any tech tattoos…
    a
    o
    +2
    • 5
    • 9
  • a

    adam-mcneilly

    12/03/2018, 10:16 PM
    (sarcasm) I'll get a Kotlin tattoo if the team gives me a free Kotlin conf ticket
    :kotlinconf: 4
    o
    m
    h
    • 4
    • 4
  • o

    orangy

    12/03/2018, 10:31 PM
    Seriously though, I want a car plate number with :kotlin: Unfortunately, in Russia we can’t have custom plate numbers.
    l
    d
    n
    • 4
    • 7
  • t

    thomasnield

    12/06/2018, 3:45 AM
    This is cool and wildly unsettling.

    https://youtu.be/ayPqjPekn7g▾

    d
    v
    • 3
    • 5
  • i

    itnoles

    12/06/2018, 6:21 AM
    What If Fuschia is going to replace Android?
    g
    • 2
    • 2
  • e

    elect

    12/07/2018, 4:50 PM
    I'd need to work most on A, but sometimes also on B
    g
    • 2
    • 5
  • a

    artemiy

    12/09/2018, 2:57 PM
    Speaking of NoSQL vs RDBMS, I'm currently maintaining a Mongo backend for a staffing service (people getting hired to do tasks), and I've been slightly frustrated with a couple of things, like having to use relatively complex and slow aggregations with for what I'd normally think should be a simple lookup (e.g. join 2-3 collections, apply a few filters, plus paging the results). Mongo was probably initially chosen to speed up development due to not having an explicit schema, but what I'm wondering is - is this a sign that an RDBMS would have been a better option, or am I just cooking Mongo wrong? Admittedly it did get a lot of useful features over the years...
    k
    t
    • 3
    • 3
  • o

    orangy

    12/11/2018, 8:33 AM
    📣 📣 Here at JetBrains we are currently looking at slightly longer perspective regarding Kotlin evolution, and on one topic we decided to ask you. The question is: “What do you expect from Kotlin 2.0?“. Note, that it doesn’t mean we are planning v2, or preparing breaking changes, or anything at all. It’s about setting expectations right and understanding that we (Kotlin Team) and you (our valuable community) understand things similarly. So if you can think for a while and write down few sentences about the topic we would be grateful. Thanks! (posted in #random on purpose, please don’t repost)
    0️⃣ 4
    2️⃣ 4
    :kotlin: 8
    😱 7
    t
    z
    +28
    • 31
    • 79
  • i

    itnoles

    12/11/2018, 11:53 PM
    https://9to5google.com/2018/12/11/aosp-fuchsia-sdk-device/ Oh Boy
    👍 2
    s
    g
    • 3
    • 8
  • r

    Ruckus

    12/13/2018, 12:40 AM
    One of the songs in our show this year:

    https://youtu.be/LXJ5bdJrPyg▾

    😲 1
    🤘 4
    v
    • 2
    • 1
  • e

    elect

    12/14/2018, 7:57 AM
    our application has almost 2GB of resources, which we rarely update. Which is the best strategy gradle-wise to have them extern?
    g
    • 2
    • 8
  • s

    Slackbot

    12/14/2018, 10:53 AM
    This message was deleted.
    k
    a
    • 3
    • 2
  • c

    corneil

    12/16/2018, 10:45 AM
    https://mailchi.mp/kotlinweekly/kotlin-weekly-124
    a
    • 2
    • 2
  • a

    Albert

    12/16/2018, 9:10 PM
    I was wondering something about messaging in microservices. What I see a lot on the internet when setting up microservices that use messaging through a message broker you will find a lot of articles/talks about using a solution like Kafka or RabbitMQ. In these articles if you have tens or hundreds of microservices they all need to implement a driver to communicate with that message broker. So the idea that I am playing with is to create a messaging service which internally could use something like Kafka or RabbitMQ. Also good to mention that the application I am working with doesn't require 100k+ message second. Creating a messaging service I see at least the following benefits: - Could create formats/flows which is more feasible for teams - Could create a protocol based on websocket which makes it easier to implement for services - Easier to switch to a different message broker - Could implement utilities, which could help teams I have only seen a couple of articles which describes this kind of approach. So my question is, why are most examples of services directly talking to the message broker? In those examples it would probably be a nightmare to switch to a different broker.
    👋 1
    a
    g
    • 3
    • 3
  • k

    karelpeeters

    12/17/2018, 7:15 PM
    That has to be some kind of record!
    l
    • 2
    • 3
  • g

    gildor

    12/20/2018, 2:48 AM
    Sorry people for multiple messagges, I got “text is too long” from Slack
    s
    • 2
    • 1
  • t

    thomasnield

    12/21/2018, 5:13 PM
    A colleague at work told me he was unaware Kotlin had any controversial features/lack of features. It got me thinking, JB should rebrand it as "Kotlin: A Controversy-Free Highly Opinionated Language for All" :trollface:
    a
    l
    • 3
    • 2
  • t

    thanksforallthefish

    12/21/2018, 5:17 PM
    union types as lack of feature? I saw the thread popping up few times already 🙂
    g
    • 2
    • 1
Powered by Linen
Title
t

thanksforallthefish

12/21/2018, 5:17 PM
union types as lack of feature? I saw the thread popping up few times already 🙂
g

gildor

12/22/2018, 8:34 AM
I don't think that it's really controversial, not so common feature in general, but may be useful for sure Also Kotlin has tagged union implementation (aka sealed classes)
View count: 3