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

    arocnies

    10/29/2018, 1:46 PM
    It is done: #introduce-yourself
    v
    l
    3 replies · 3 participants
  • s

    sksk

    10/30/2018, 5:59 PM
    they are miles ahead from the competition
    🐟 1
    :trollface: 6
    ➕ 1
    ❓ 1
    🐑 1
    t
    v
    +1
    16 replies · 4 participants
  • o

    orangy

    10/30/2018, 9:45 PM
    What was the effort to migrate? Including failed tests, etc 🙂
    g
    1 reply · 2 participants
  • j

    josephivie

    11/04/2018, 10:30 PM
    Opinion question: If you have a suite of libraries that are almost completely modular but can be used together very effectively, do you split them up across repositories and if so, how? I've been thinking about this for a bit. You might end up with sub-libraries that give you the ability to use two of them together. For example if you have a networking library and a serialization library, then you could use a third, really small library that adds networking functions that use serialization.
    l
    1 reply · 2 participants
  • l

    louiscad

    11/05/2018, 2:25 PM
    What do you do for
    fun
    , that is not work? Person A: I watch YouTube videos about stuff Person B: See…
    h
    o
    8 replies · 3 participants
  • o

    orangy

    11/05/2018, 3:01 PM
    Actually, it’s a nice question for #random 🙂 What’s your hobby? What do you do for fun that is not programming?
    👍 4
    t
    d
    +4
    10 replies · 7 participants
  • o

    orangy

    11/05/2018, 3:02 PM
    I play guitar and ukulele, love snowboarding and interested in game design (it’s kinda programming, but still)
    🎸 1
    🎮 1
    🏂 2
    1 reply · 1 participant
  • l

    louiscad

    11/05/2018, 8:52 PM
    Here's an abstract of my main hobbies: I like to imagine solutions to technical problems, or world problems. The biggest the potential impact, the more I'm interested in thinking about it, and talking about it too. Efficiency, and sometimes, crazy fun too, are at the heart of my imagination and thinking. I also try to act on it, by commuting efficiently for example (🚲), telling myself that every move counts, because it's the water drop that makes the vase overflow. I also like playing with Lego Technic at times (but am I more into playing into my mind now that it is trained). To sum it up, out of the box thinking is pretty much my all the time hobby. BTW, linking it back to
    fun
    , something I love with Kotlin is how it helps me make my imagination a reality quicker (compared to other programming languages, and compared to every non programming stuff).
    🤔 1
    o
    s
    +1
    12 replies · 4 participants
  • j

    josephivie

    11/06/2018, 12:47 AM
    I design video games every once in a while. Love the indie games and enjoy hacks of old games quite a bit. Hollow Knight is incredible, by the way, if you’re looking for a good single player game to get lost in.
    h
    t
    5 replies · 3 participants
  • t

    thomasnield

    11/06/2018, 2:39 AM
    This is disappointing. So if I inline an
    Int
    that is a factor of
    5
    , I can't enforce this due to private constructor not being allowed?
    h
    r
    +1
    8 replies · 4 participants
  • t

    thomasnield

    11/06/2018, 2:20 PM
    I know little about bytecode and compiler magic, but I am surprised compilation can't do an
    init { }
    using a simple static function like this:
    g
    a
    2 replies · 3 participants
  • o

    orangy

    11/06/2018, 8:38 PM
    What is this laptop with Android on it? https://twitter.com/ag_dubs/status/1059906357204201473
    k
    n
    +2
    10 replies · 5 participants
  • k

    karelpeeters

    11/06/2018, 10:34 PM
    Turns out you can omit the braces in `do {} while ()`:
    do step() while(true)
    n
    3 replies · 2 participants
  • v

    voddan

    11/07/2018, 3:47 PM
    Sorry, has anyone came across good Go Koans (like Kotlin Koans but for Go Lang)? All that I've found are unofficial and suck 😢
    g
    5 replies · 2 participants
  • e

    elizarov

    11/07/2018, 3:56 PM
    In Kotlin novices get puzzled by things like
    !!
    because it is not common and cannot be read. Avoiding notation altogether and going all English is utopia, though. You need some notation.
    💯 1
    s
    v
    23 replies · 3 participants
  • v

    ValV

    11/07/2018, 4:02 PM
    Novices (such as me) also could be confused with such terms as mutability and nullability (after C pointers and the world where everything is a number it's quite new)
    e
    2 replies · 2 participants
  • j

    janvladimirmostert

    11/07/2018, 4:54 PM
    Tiobe index is a very strange thing, Delphi is sitting in the top 20, VB is #20 and Cobol at 25 whereas Scala and F# only come in at 26 and 27. Fortran is more popular than Rust apparently
    t
    1 reply · 2 participants
  • v

    ValV

    11/07/2018, 4:58 PM
    Why do we need Rust?
    e
    g
    +2
    17 replies · 5 participants
  • n

    Nikky

    11/07/2018, 10:46 PM
    seems there really is just the german words markt and punkt that match
    h
    v
    2 replies · 3 participants
  • p

    pavel

    11/07/2018, 11:34 PM
    https://lotsofwords.com/*kt
    😁 2
    v
    n
    2 replies · 3 participants
  • s

    Shawn

    11/08/2018, 1:15 PM
    ugh I’m so glad I don’t have to sit in meetings assigning points to things anymore
    ➕ 6
    😂 1
    d
    e
    +1
    4 replies · 4 participants
  • k

    karelpeeters

    11/10/2018, 10:19 PM
    #33244c,#423393,#944c94,#FFFFFF,#423393,#FFFFFF,#944C94,#F88909
    v
    a
    +1
    4 replies · 4 participants
  • n

    napperley

    11/10/2018, 11:21 PM
    A Software Developer was asked a question on why they prefer PHP. Their answer is that they never learned another programming language 🤦‍♂️ 🤣 -

    https://youtu.be/7n3ROn3yABY?list=WL&t=220▾

    🤣 4
    a
    j
    +1
    3 replies · 4 participants
  • a

    ahanin

    11/12/2018, 8:02 AM
    Hey guys, we are running Kotlin in production for over a year now and chose it as a primary language for our distributed platform which's developers were coming from a background of having 5+ years of Scala, Go, Java. We are now recollecting the learnings about the language and its ecosystem, and how did it have (no?) advantage in respect to its features. I would love to ask you to participate and share your experience by filling in a simple form here: http://bit.ly/kotlin-learnings I will be writing up a blog post about the collected data and will share it here. Thanks a lot! :kotlin: 🚀
    v
    l
    +1
    6 replies · 4 participants
  • c

    ClaudiuB

    11/12/2018, 4:57 PM
    What's your favorite question?
    ❓ 3
    v
    n
    4 replies · 3 participants
  • a

    aarjav

    11/14/2018, 5:30 AM
    SomeoneWhoKnows_howtouseKotlinWELL
    👌 2
    :trollface: 2
    r
    o
    +1
    3 replies · 4 participants
  • h

    Hullaballoonatic

    11/14/2018, 8:35 PM
    if subscripts existed in code or as a mod key on keyboards (a la shift), would you prefer Bᵢ to
    B[i]
    ?
    🇳🇴 9
    s
    d
    +1
    3 replies · 4 participants
  • h

    Hullaballoonatic

    11/14/2018, 8:42 PM
    is mathematical interval notation inherently clashy with typical code syntax?
    [1,10)
    vs
    1 until 10
    ?
    d
    r
    +4
    17 replies · 7 participants
  • h

    hudsonb

    11/14/2018, 10:51 PM
    Tons of student interest in Kotlin! My course at SUNY Poly next semester filled immediately and my email has been flooded with requests from students asking to be let in. I’ve requested a larger lecture hall to accommodate!
    👍 15
    🎉 12
    🎓 2
    t
    k
    5 replies · 3 participants
  • t

    thomasnield

    11/15/2018, 9:29 PM
    This looks interesting. http://manifold.systems/
    d
    r
    11 replies · 3 participants
Powered by Linen
Title
t

thomasnield

11/15/2018, 9:29 PM
This looks interesting. http://manifold.systems/
d

dalexander

11/15/2018, 9:37 PM
Seems kind of neat. I’m curious how it actually works.
t

thomasnield

11/16/2018, 2:34 AM
Yeah the extension functions seem pointless, but the data structure stuff... I almost want a Kotlin plugin to do something like this. Would be enormously handy for data exploration.
r

robin

11/16/2018, 9:18 AM
Yeah the Type Manifolds look awesome, wondering how seamless it actually works in practice. Extension Classes, meh, already got that in Kotlin. Structural interfaces look interesting, not sure I really see the use case though.
@dalexander Seems like manifest provides a plugin to the Java Compiler that knows how to compile the additional features. Interesting approach, I'd like to see how it compares performance-wise
t

thomasnield

11/16/2018, 3:26 PM
To have a Kotlin plugin that reads a SQL, text file, or JSON data source and automatically structures types off them... that would be huge especially for data science-y workflows.
d

dalexander

11/16/2018, 3:41 PM
Does sound like it would be useful. Couldn’t we use manifold for that and access it’s output from Kotlin (at least to prototype?)
Although to be honest the things that seemed most useful from the plugin (for my needs) were the type enhancements.
Ohhh… If the javac ecosystem allows plugins like this, I wonder if it would change what is on the table for Kotlin language design (since they could write a javac plugin to support Kotlin features that would otherwise potentially be problematic).
r

robin

11/16/2018, 4:29 PM
Plugins for javac won't do anything for kotlin, as kotlinc already completely bypasses javac and compiles to bytecode directly, so even with plugins javac can't do anything kotlinc couldn't already be built to do.
d

dalexander

11/16/2018, 4:34 PM
No… It’s for improving compatibility of Java code with what kotlinc generates. There is frequently the question “You want to add this feature to Kotlin, so how does it interoperate with Java”? If there were a kotlin plugin for javac it could be an answer to some of those questions. So for a simple example it could make the fields of companion objects transparent to access from Java without
@JvmStatic
r

robin

11/16/2018, 5:06 PM
Ah, gotcha. That might work for mixed codebases, but would do nothing for library creators because they don't have control over whether client code is compiled with the necessary plugin, so to be as useful as possible they still need the additional overhead. And just for those mixed codebases it's not really worth it, imo, since mixed codebases that actually plan to suspend polyglot development for longer than an initial transition phase are probably quite rare.
View count: 2