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

    manlan

    08/20/2020, 6:38 PM
    Is Kotlin always dependent on Java? I mean it has a lot of wrappers around Java's libraries e.g. collections. Can it grow independently on the JVM?
    n
    s
    +4
    • 7
    • 55
  • h

    hinst

    08/21/2020, 1:54 PM
    don't want to be a party pooper but Gradle is absolutely the worst. Replacing one obscure language (Groovy) with another obscure language (Kotlin DSL kts) didn't do any favors. Now it's near impossible to google an quick solution to a problem because the chances are that the author of the tutorial used a different version of definition language or a different version of Groovy. Or a different version of Kotlin.
    ➕ 3
    g
    c
    p
    • 4
    • 8
  • j

    jaguililla

    08/21/2020, 2:14 PM
    I like Gradle... but I wanted to ask about Maven. Do anyone here knows about a Maven plugin to run a task watching for changes on the filesystem and rerunning it on this event? (like Gradle
    --continuous
    option)? Thanks!
    m
    • 2
    • 3
  • m

    Marc Knaup

    08/24/2020, 1:03 AM
    I forgot to mention that it’s a library. So I cannot rely on files.
    n
    • 2
    • 7
  • m

    manlan

    08/26/2020, 3:56 AM
    Go is said to be good for distributed systems. (Compiling to binaries, concurrency primitives etc). I hope Kotlin is equally suitable. What can make it the lesser favourite?
    g
    m
    e
    • 4
    • 11
  • u

    ursus

    08/29/2020, 12:20 AM
    however I noticed when using the real usb-c cable from my phone charger in this port, the apks deploy noticeably faster
    s
    h
    g
    • 4
    • 14
  • c

    Colton Idle

    08/29/2020, 5:32 AM
    Upgraded to latest Kotlin Plugin in intellij and noticed this is changed all the time now:
    <option name="PACKAGES_IMPORT_LAYOUT">
            <value>
              <package name="" alias="false" withSubpackages="true" />
              <package name="java" alias="false" withSubpackages="true" />
              <package name="javax" alias="false" withSubpackages="true" />
              <package name="kotlin" alias="false" withSubpackages="true" />
              <package name="" alias="true" withSubpackages="true" />
            </value>
          </option>
    Did that happen to everyone?
    d
    • 2
    • 4
  • n

    Nikky

    08/30/2020, 7:43 PM
    message has been deleted
    o
    n
    c
    • 4
    • 3
  • f

    frogger

    09/15/2020, 12:38 PM
    Totally unrelated to kotlin - but what is best API documentation you know (as an API consumer/client?) We want to level up ours and I’m looking for great examples!
    t
    • 2
    • 2
  • j

    javier Aravena

    09/17/2020, 12:40 AM
    Not really kotlin-related, but what would you use if you wanted to share a small amount of data (say, a couple of strings under 1kB) across an otherwise shared-nothing cluster? Everything I think of (various key-value store, zookeeper) seems overkill.
    d
    t
    +2
    • 5
    • 6
  • m

    manlan

    09/21/2020, 2:15 PM
    Where can I get a list of ideas/projects that I can implement to improve my backend skills? Any language is fine, I just need ideas so I can implement them on my own in Kotlin.
    y
    c
    e
    • 4
    • 4
  • e

    elect

    09/23/2020, 8:30 AM
    just updated Idea, I get this:
    10:27 File type 'ANSI Aware'/'Log' conflict found
    File pattern '*.log' was reassigned to 'Log'
    Revert to 'ANSI Aware'
    Edit 'ANSI Aware'
    Edit 'Log'
    what is this? What shall I choose?
    s
    • 2
    • 1
  • s

    Shawn

    09/23/2020, 2:40 PM
    I guess ANSI Aware would be the “safest” choice, only because I’m not sure how the “Log” highlighting works (unless there’s like a standard format that would make sense to pick for a generic Log handler)
    e
    • 2
    • 1
  • c

    Colton Idle

    09/24/2020, 2:04 AM
    What is it called when you have a dependency on B because your actual dependency of A relies on it? e.g. I rely on Okhttp, and okhttp internally uses okio. Is that an inherent dependency, or intrinsic dependency or something else?
    z
    • 2
    • 2
  • e

    elect

    09/28/2020, 10:34 AM
    looking for a new monitor since I'm gonna mostly remote soon, I have at the moment a Dell u2715h, a 27" 2560x1440. Given some restrictions at home (kids), multi-monitor setup is probably out of the question, so I'm gonna stick with a single monitor. 2560 pixel-width is at the moment barely enough for two vertical-splitted windows (two are totally fine for me), therefore I'd like something more.. and I think >= 3k pixels would be more than enough for me Vertically 1440 for 95% of the times are fine, but still I wouldn't dislike some more area also in that dimension. My biggest doubt is the monitor form though: curved or flat. Because I have the feeling that starting at 32" and more, the curvability may gonna help, but I wish some feedbacks about this, all resources online are almost for gaming, nothing for coding. What do/would you like more, guys, a 32" flat or curved (4k) or a 34 ultra wide (always curved, 4k/5k -at 5k a triple windows is possible-)? Also, how many of you are using built-in monitor features for reducing the blue light for the eye strain and/or using some eye friendly theme, such as Solarized (light in my case)?
    y
    s
    k
    • 4
    • 16
  • s

    stephanmg

    09/28/2020, 2:26 PM
    hi guys, are there any recommendations of recent books software engineers should read? I’d like to boost my knowledge in my spare time.
    y
    e
    • 3
    • 28
  • l

    LeoColman

    09/28/2020, 7:12 PM
    https://blog.jetbrains.com/blog/2020/09/28/code-with-me-eap/
    🔥 7
    e
    • 2
    • 1
  • e

    elect

    10/09/2020, 9:43 AM
    anyone following the case Google vs Oracle over copyrighted API? https://arstechnica.com/tech-policy/2020/10/googles-supreme-court-faceoff-with-oracle-was-a-disaster-for-google/ I wonder if Oracle might win, what the consequences will be
    j
    i
    n
    • 4
    • 4
  • m

    Marc Knaup

    10/15/2020, 12:50 AM
    Uhm… okay?
    t
    • 2
    • 2
  • f

    Foso

    10/15/2020, 7:14 PM
    Does someone know a good (Kotlin or Java) library that can parse Javascript files and converts it to an AST. I want to generate new code based on that.
    👀 1
    l
    g
    m
    • 4
    • 3
  • j

    jose96043

    10/15/2020, 9:22 PM
    does anyone know how i can create a queue in kotlin multiplatform for ios? I am trying to do something like this and i keep getting a generic error and not sure what its complaining about
    dispatch_queue_create("background.queue", dispatch_queue_serial_t())
    not sure if there is a kmm channel here
    m
    • 2
    • 2
  • m

    Marc Knaup

    10/16/2020, 1:26 PM
    Idea: A Chrome plugin that automatically adds all my relevant IDEA, Kotlin & system information to YouTrack issues that I create 😁
    w
    l
    • 3
    • 2
  • m

    Marc Knaup

    10/19/2020, 6:35 PM
    More funny errors 😄
    😀 5
    a
    • 2
    • 1
  • b

    bjonnh

    10/21/2020, 3:55 PM

    https://www.smbc-comics.com/comics/1535025762-20180823.png▾

    😁 3
    n
    m
    d
    • 4
    • 3
  • u

    ursus

    10/24/2020, 1:05 PM
    When a db commits a update, its hypotetically just 1 bit changed in the actual disc? or the whole thing rewritten again to disc -- Im evaluating if I should use sqlite db or 1 protobuf file to persist app data (I'd only consider sqlite in a regular project, this however if very modular, so FKs cant work, since :foo cannot see :user and at that point..what the point of sqlite if there are no ref. integrity and cascade deletes etc)
    g
    m
    • 3
    • 7
  • l

    louiscad

    10/30/2020, 9:03 PM
    :kotlin-intensifies:
    :kotlin-intensifies: 22
    🤯 1
    💫 3
    👍 10
    e
    • 2
    • 1
  • c

    ck

    10/31/2020, 5:42 PM
    Been working with kotlinx.atomicfu for a while now and always wondered what the "FU" part stands for in the name.
    l
    c
    • 3
    • 7
  • d

    dephinera

    11/02/2020, 8:59 PM
    Should threads in Kotlin's slack channel be called coroutines?
    🇳🇴 1
    😂 4
    :blob-thinking-upside-down: 1
    s
    • 2
    • 2
  • g

    groostav

    11/02/2020, 10:57 PM
    oh my gosh, so this is a bit of a rant. I just listened to the talking kotlin episode on a GRPC target for kotlin. This reminded me of my (bad) GRPC project. I dug up that code
    fun <M, R> sendAndAwaitResponse(func: KFunction2<M, StreamObserver<R>, Unit>): suspend (request: M) -> R = { request: M -> sendAndAwaitResponse(func, request) }
    
    // sends a message, and converts the response observer to kotlin suspension (and exception) semantics
    // assumes a unary call (that is, a call with one value given to the response observer)
    suspend fun <M, R> sendAndAwaitResponse(func: KFunction2<M, StreamObserver<R>, Unit>, request: M): R {
        val source = RuntimeException("server replied with error on call to ${func.name} with $request")
    
        return suspendCoroutine<R> { continuation ->
            func(request, object: StreamObserver<R> {
                var result: ResponseState<R> = ResponseState.NoValue
    
                override fun onNext(value: R) {
                    //...
                }
                override fun onError(thrown: Throwable) {
                    //...
                }
                override fun onCompleted() {
                    //...
                    continuation.resumeWith(result)
                }
            })
        }
    }
    
    // "idiomatic" usage:
    sendAndAwaitResponse(grpcService::someUnaryServiceMethod)(RequestDTO.newBuilder()....)
    One of the things I was hailing kotlin for is that you dont often (ever?) end up with functions-returning-lambdas as is sometimes convention in Scala --typically to help the scala type inference engine. Well here I am doing exactly that
    fun <M, R> sendAndAwaitResponse(func: KFunction2<M, StreamObserver<R>, Unit>): suspend (request: M) -> R = { request: M -> sendAndAwaitResponse(func, request) }
    is doing. tl;dr kotlin > scala; if you're using grpc try the new kotlin GRPC target. Suspend funs are good.
    • 1
    • 3
  • m

    Marc Knaup

    11/04/2020, 2:29 PM
    After using Kotlin CSS for a while I can’t stop writing
    123.px
    without a
    .
    before the
    px
    even if I’m not writing Kotlin code 😄
    😄 1
    l
    • 2
    • 2
Powered by Linen
Title
m

Marc Knaup

11/04/2020, 2:29 PM
After using Kotlin CSS for a while I can’t stop writing
123.px
without a
.
before the
px
even if I’m not writing Kotlin code 😄
😄 1
l

louiscad

11/04/2020, 3:00 PM
Kotlin CSS, what's that? Any link?
m

Marc Knaup

11/04/2020, 3:01 PM
https://github.com/JetBrains/kotlin-wrappers/tree/master/kotlin-css
✨ 2
❤️ 1
View count: 4