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

    masted

    01/20/2017, 6:58 PM
    @kirillrakhman threads are here 🎉
    k
    3 replies · 2 participants
  • d

    dragas

    01/27/2017, 10:23 AM
    @dawidhyzy why not GSON? Java works nicely with kotlin and Retrofit already has converter for GSON and it looks much simpler than Moshi.
    d
    4 replies · 2 participants
  • m

    miha-x64

    01/27/2017, 10:25 AM
    Maybe because Gson is general-purpose, and Moshi is for Android.
    😸 1
    d
    1 reply · 2 participants
  • k

    kirillrakhman

    02/08/2017, 8:18 AM
    This is valid in Java 8 😱
    public class Foo implements Comparable<Foo> {
        @Override
        public int compareTo(Foo this, @NotNull final Foo o) {
            return 0;
        }
    }
    😯 1
    e
    5 replies · 2 participants
  • s

    sreich

    02/08/2017, 5:31 PM
    Sarcasm online is best performed with /s at the end
    m
    1 reply · 2 participants
  • m

    mg6maciej

    02/08/2017, 5:37 PM
    That's not who, that's what. A program that remembers all you write for eternity and will remind you what you said at the most inappropriate time.
    s
    3 replies · 2 participants
  • a

    aimozg

    02/11/2017, 12:03 AM
    class ArrayBuilder {
        @Suppress("UNCHECKED_CAST")
    	operator inline fun<reified T> get(vararg items:T):Array<T> = items as Array<T>
    }
    val array = ArrayBuilder()
    
    fun darkMagic() {
    	array[1,2,3]
    }
    😆 1
    5 replies · 1 participant
  • m

    mg6maciej

    02/11/2017, 11:56 AM
    The problem is most websites use light theme, and (my guess is) switching between dark and light is worse for eyes than using either of those.
    👍 1
    s
    1 reply · 2 participants
  • k

    kirillrakhman

    02/14/2017, 1:55 PM
    @miha-x64 hey, is that the kotlin lighthouse in your profile pic?
    👍 3
    m
    3 replies · 2 participants
  • m

    mikehearn

    02/16/2017, 9:39 AM
    @orangy imagine if the JVM could resize stacks on the fly as it garbage collects so millions of thread stacks wasn't unreasonable, and reify them onto the heap on demand. would there still be a need for language/frontend-compiler level coroutines?
    e
    k
    +3
    32 replies · 6 participants
  • k

    kenkyee

    02/18/2017, 1:03 PM
    Windows has come a long way... Wouldn't mind running it again if xcode worked on it
    👍 1
    m
    c
    +1
    8 replies · 4 participants
  • c

    codeslubber

    02/19/2017, 4:54 AM
    until the wheels came off the mac I could not care less about platforms, and frankly, it’s mostly intel’s fault
    s
    s
    6 replies · 3 participants
  • c

    cedric

    02/21/2017, 3:18 PM
    If you intend to be typing on a keyboard for many more years, using a straight keyboard is very likely to cause RSI in the future
    s
    d
    3 replies · 3 participants
  • c

    cedric

    02/21/2017, 3:54 PM
    When I see all my coworkers using this tiny white keyboard you see everywhere, I feel I’m looking at a generation of developers who will soon be in a lot of wrist pain
    j
    9 replies · 2 participants
  • d

    dayanruben

    02/23/2017, 1:21 PM
    https://security.googleblog.com/2017/02/announcing-first-sha1-collision.html
    😨 1
    u
    m
    +1
    4 replies · 4 participants
  • c

    cedric

    02/23/2017, 2:21 PM
    Going through the release notes of the latest version of Typescript, some features are real head scratchers:
    interface Config {
        [prop: string]: boolean;
    }
    
    declare const options: Config;
    
    // Used to be an error, now allowed!
    if (options.debugMode) {
        // ...
    }
    🍪 1
    a
    2 replies · 2 participants
  • m

    maksim.sidorenko

    02/25/2017, 7:03 PM
    its not me)
    v
    1 reply · 2 participants
  • k

    kevinmost

    02/25/2017, 11:18 PM
    I'd say Java's very good as a first language because it's just so simple. If they already know other languages, they should be fine picking up Kotlin. I think I've had issues getting people who have never written code, or are really bad at writing code, to use Kotlin though. There are a lot of language features, and paradigms like functional programming aren't very apparent to them
    👍 1
    s
    4 replies · 2 participants
  • g

    groostav

    02/25/2017, 11:51 PM
    alright gentlemen, new router, that means its time for an SSID name (wifi name), any suggestions? googles actually got some pretty good oens: https://www.google.ca/search?q=funny+SSID+names
    a
    t
    2 replies · 3 participants
  • m

    mg6maciej

    02/27/2017, 8:35 AM
    #random Is there anything I need to do so that IDE downloads and uses
    -sources
    in addition to dependency jar/ aar?
    o
    12 replies · 2 participants
  • c

    cedric

    02/28/2017, 2:52 PM
    Yeah of course, I was just hoping Kotlin would have fixed that in the
    stdlib
    . It's only been twenty years we've used that silly approach 😠
    👍 6
    g
    1 reply · 2 participants
  • e

    evanchooly

    02/28/2017, 3:00 PM
    it’ll be tremendous.
    💪 8
    g
    1 reply · 2 participants
  • s

    s.luhmirins

    03/01/2017, 2:51 PM
    Is there anyone from Riga (Latvia) in this chat?
    m
    2 replies · 2 participants
  • c

    cedric

    03/01/2017, 6:32 PM
    just used
    _
    as an unused parameter for the first time
    🎉 8
    🙃 3
    m
    1 reply · 2 participants
  • o

    orangy

    03/01/2017, 6:38 PM
    @kevinmost great to hear! we don’t want to have Swift fame 🙂
    :trollface: 10
    😈 2
    b
    1 reply · 2 participants
  • c

    cypher121

    03/01/2017, 7:02 PM
    are there any docs on how to create coroutines in release version?
    a
    2 replies · 2 participants
  • c

    cypher121

    03/01/2017, 7:02 PM
    last time I tried doing that,
    coroutine
    was still a keyword
    v
    e
    3 replies · 3 participants
  • l

    lnr0626

    03/03/2017, 5:07 AM
    I think if you use Any? as the 'instance' type, then it'll work for local delegates as Nothing? is a subclass of Any?, but I haven't tested this out
    ➕ 1
    k
    1 reply · 2 participants
  • s

    sreich

    03/05/2017, 7:02 PM
    Waffles sound delicious right about now
    v
    1 reply · 2 participants
  • o

    okkero

    03/09/2017, 12:26 PM
    Does anyone here know how the performance of Frege compares to Java?
    a
    3 replies · 2 participants
Powered by Linen
Title
o

okkero

03/09/2017, 12:26 PM
Does anyone here know how the performance of Frege compares to Java?
a

alex.hart

03/09/2017, 2:00 PM
It’s not a point of reference vs. Java but still an interesting Point of reference: https://www.reddit.com/r/haskell/comments/3igird/frege_faster_than_haskell_ghc/
o

okkero

03/09/2017, 2:26 PM
oh, wow. That's surprising
thanks for the link 🙂
View count: 2