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
feed
  • g

    gammax

    06/23/2021, 7:59 AM
    Hey all 👋 Happy to share the latest episode of The Developers’ Bakery: 🚀  Apollo GraphQL with @mbonnin Martin has the opportunity to work full time for Apollo, probably the most popular GraphQL client for Android & Kotlin Multiplatform. In this episode Martin will tell us his experience with GraphQL, how he got involved with the project and how it is to work full time on a oss project. You can listen to it on the website here: https://thebakery.dev/13/ or on the major streaming platforms. As always, any feedback is more than welcome 🙏
    🎉 16
    p
    m
    9 replies · 3 participants
  • m

    marcinmoskala

    06/23/2021, 8:22 AM
    I am working on a series of articles and a book about Kotlin coroutines, and looking for reviewers. Active reviewers will be listed both in the book and at the bottom of each article. Anyone here willing to help?
    🆒 2
    :android-wave: 8
    h
    r
    3 replies · 3 participants
  • p

    Pratik Tandel

    06/23/2021, 4:09 PM
    I’m from Brex and we recently moved to using Kotlin for our backend services https://medium.com/brexeng/building-backend-services-with-kotlin-7c8410795e4b
    :kotlin-intensifies: 22
    j
    1 reply · 2 participants
  • m

    Marharyta Nedzelska

    06/28/2021, 8:02 AM
    Dear Kotlin geeks! This week we’re going to have a 2-days conference with 14 talks about different flavours of Kotlin https://www.kotland.org/ Will be so glad to see you there 😍
    ❤️ 5
    n
    2 replies · 2 participants
  • p

    pablisco

    06/29/2021, 8:22 AM
    I made a thread yesterday night 👇
    👎 4
    n
    t
    +1
    14 replies · 4 participants
  • a

    Alejandro Rios

    07/08/2021, 2:54 AM
    https://luisramos.dev/marrying-kmm-and-swift-with-sourcery
    👍 3
    s
    1 reply · 2 participants
  • a

    akuleshov7

    07/11/2021, 1:43 PM
    Hi all, I have just released a ktoml library (0.2.6) to Maven Central. It is a fully Kotlin native serialization library for TOML configuration language. It was requested by Kotlin community, but unfortunately I am developing this alone in my free time. I would like to ask for your help in testing/contributing to this project. Or at least give it a star to make it look more attractive for new contributors. Thanks! 🙏 I know that Kotlin community - is the best in the world and I appreciate your help ❤️
    👍 2
    👏 9
    :kotlin-intensifies: 3
    ⭐ 1
    c
    3 replies · 2 participants
  • j

    jmfayard

    07/13/2021, 8:06 PM
    I wrote about how to write command-line tools in Kotlin Multiplatform instead of Bash https://dev.to/jmfayard/how-to-write-a-command-line-tool-with-kotlin-multiplatform-45g2
    :kotlin-intensifies: 13
    🤔 4
    👍 11
    n
    m
    +1
    9 replies · 4 participants
  • m

    marcinmoskala

    07/19/2021, 11:22 AM
    https://blog.kotlin-academy.com/kotlin-dsl-buildsrc-product-flavors-flavor-icon-and-more-abf30c65e8fd
    :kotlin-intensifies: 4
    👍 4
    t
    j
    +1
    4 replies · 4 participants
  • m

    marcinmoskala

    07/20/2021, 6:03 AM
    Effective Kotlin Item 46: Avoid member extensions https://kt.academy/article/ek-member-extensions
    👎 1
    👏 3
    ❤️ 2
    t
    p
    +2
    11 replies · 5 participants
  • a

    alexandrepiveteau

    07/22/2021, 2:28 PM
    Hi folks ! I’m a CS student in the 6th semester at HEIG-VD. I’ve been working on my bachelor thesis for the last weeks, and thought it might be interesting to share, since it’s a Kotlin multiplatform (JVM + JS) project. I’ve made an online collaborative Markdown editor, using Kotlin/JS for the frontend and with a replication server in Kotlin/JVM. The editor uses some CRDTs to sync text across the clients. Messages are Protobuf-serialized with 
    kotlinx.serialization
    , and sent / received through websockets with Ktor. An interesting challenge was to design a nice abstraction layer around CRDTs with first-class support for coroutines and flows (in order, for instance, to collect editor state changes through a 
    StateFlow
    ). My thesis is ending soon, but I’d love to get some feedback on my work (especially if you’re interested in CRDTs and distributed systems) and my usage of KMM, so I can integrate it in the project ! The project is available on Github : https://github.com/markdown-party/mono Feedback (via email or Slack) : alexandre.piveteau@heig-vd.ch
    🤯 1
    👍 8
    n
    r
    7 replies · 3 participants
  • m

    marcinmoskala

    07/26/2021, 8:00 AM
    https://kt.academy/article/ek-factory-functions
    👍 8
    j
    2 replies · 2 participants
  • m

    marcinmoskala

    07/28/2021, 7:49 AM
    Today, we will explore how suspension works. We will also see how callback functions can be transformed into suspension functions, and how delay works. Enjoy 😉 https://kt.academy/article/cc-suspension
    👍🏻 1
    👍 4
    👍🏼 1
    :kotlin-intensifies: 6
    p
    4 replies · 2 participants
  • o

    oday

    07/28/2021, 12:01 PM
    so I’d like to share something, 3 weeks ago I was asked to apply for a position at Google, to see if there’s a match or not, took those 3 weeks to study for the phone screen, algorithms, data structures, the whole thing, and I did it all in Kotlin, I failed the exam but I used Kotlin for everything and on the exam itself, it never got in the way or caused me any confusion while working with it, just thought you’d know, great language
    ✨ 2
    r
    g
    3 replies · 3 participants
  • o

    oday

    08/01/2021, 6:53 PM

    https://youtu.be/FsAt_giaCSw▾

    👍 1
    👍🏼 1
    r
    b
    +1
    16 replies · 4 participants
  • b

    Big Chungus

    08/02/2021, 7:26 AM
    We're at exactly 5k kotlin libs on maven central after last night's kamp scan! Pop the 🍾 !
    👍 6
    🎉 13
    :kotlin-intensifies: 13
    e
    4 replies · 2 participants
  • t

    Tower Guidev2

    08/04/2021, 2:29 PM
    Hi, Im new to Kotlin and enjoying it so far 😉
    👍 1
    :kotlin-intensifies: 8
    r
    7 replies · 2 participants
  • k

    Katarzyna

    08/06/2021, 8:06 AM
    Hi there 🙂 Using traits for testing is a fairly popular pattern in Kotlin. To learn how it works read the article Traits for testing in Kotlin written by @marcinmoskala 👇 https://kt.academy/article/traits-testing
    👍 3
    🆒 2
    😒imple_smile: 1
    y
    r
    7 replies · 3 participants
  • e

    ESchouten

    08/06/2021, 6:27 PM
    Hi! I created a backend based on the Clean Architecture principles. Feedback would be very much appreciated! The application is separated into three modules: Domain, Usecases and Adapters • Domain module contains all entities, it's validation and repository interfaces • Usecases module performs actions on the domain entities and repositories and does authorization The domain and usecase modules do not have any external dependencies. • Adapter layer: each adapter is implemented as a standalone module, lowering dependence on specific frameworks and libraries and making them interchangable. The server module consumes all adapters (e.g. databases, (graphql) endpoints, authentication logic) GraphQL endpoints are auto-generated from the Usecases Used technologies: Ktor, JWT, Exposed, Flyway, KGraphQL/GraphQL generated endpoints. https://github.com/ESchouten/CleanArchitecture
    👍 2
    ➕ 1
    🤘 4
    j
    k
    +1
    22 replies · 4 participants
  • p

    pablisco

    08/13/2021, 8:16 AM
    I finally got around to updating my kotlin-benchmark mini project. I’m probably doing something wrong on how I run benchmarks, so any help will be more than welcomed 🙂 Also, looking for more ideas about what can be tested
    👍 3
    i
    3 replies · 2 participants
  • g

    gammax

    08/13/2021, 6:42 PM
    Hey hey 👋 Quick heads up that #detekt v1.18.0 just got released: https://github.com/detekt/detekt/releases/tag/v1.18.0 This release is coming with a lot of changes, new rules, evolution in the API and stability improvements. We want to take the opportunity to thank our contributors for testing, bug reporting and helping us release this new version of Detekt 🚀
    👍 6
    🎉 6
    c
    1 reply · 2 participants
  • y

    Yev Kanivets

    08/16/2021, 6:49 AM
    If you ever need an access to localized strings from your KMM modules: https://medium.com/xorum-io/simple-string-localization-in-kmm-beaffc5e7a17?source=friends_link&sk=3d6d3f62b7851ca412f09d49a03d89f7
    j
    a
    +1
    8 replies · 4 participants
  • a

    Andre Classen

    08/16/2021, 11:17 AM
    ComposeReorderable v0.6 is now also available for #compose-desktop https://github.com/aclassen/ComposeReorderable
    🎉 4
    r
    2 replies · 2 participants
  • y

    Youssef Shoaib [MOD]

    08/17/2021, 4:55 AM
    After an interesting discussion about a nice Java interop feature where you can allow Java callers to pass in
    null
    in place of default parameters to have the default values substituted in automatically, I went on and implemented that in a compiler plugin. This might be useful for someone (I guess), even as a starting stone into learning compiler plugins. Any feedback or criticism is very recommended 😄
    t
    2 replies · 2 participants
  • k

    Katarzyna

    08/18/2021, 7:55 AM
    Welcome back 😉 How do we start coroutines, what is structured concurrency and how does it work. Coroutine builders by @marcinmoskala https://kt.academy/article/cc-builders
    👍 4
    m
    p
    2 replies · 3 participants
  • e

    Eric Ampire [MOD]

    08/19/2021, 2:21 AM
    The Abstract Factory Pattern explained Hello, In this article I try to explain simply how we can use the Abstract Factory design pattern to create platform specific components with Kotlin. https://t.co/frJOkpWyFm
    👏 2
    👍 3
    p
    1 reply · 2 participants
  • o

    Ovsyannikov Alexey

    08/23/2021, 5:04 PM
    Hello :) I am from #tgbotapi , Telegram Bot API multiplatform wrapper framework, and today I have released version 0.35.6 with several minor updates: • Dependencies updates • Deprecation of old updates flows You are welcome in our channel 😊
    🤖 2
    🚀 1
    :kotlin-intensifies: 6
    y
    1 reply · 2 participants
  • j

    jmfayard

    08/24/2021, 11:11 AM
    Hello! refreshVersions helps Gradle users with the tedious manual work usually involved in adding and updating dependencies and their versions. Highlights from the CHANGELOG for the two last versions: • A task
    ./gradlew refreshVersionsMigrate
    now automates the initial migration • A configuration
    rejectVersionsIf { ...}
    to filter alpha/beta versions • Lots of dependency notations for AndroidX, Spring, Http4k, Kodein... • ... and you can now contribute your own! To give it a try, see https://jmfayard.github.io/refreshVersions/setup/
    🎉 6
    🚀 7
    :kotlin-intensifies: 6
    c
    2 replies · 2 participants
  • k

    Katarzyna

    08/25/2021, 8:57 AM
    How you doin'? 🙂 Here is a deep explanation of the coroutine context - the powerful data holder for coroutines. What is CoroutineContext and how does it work? written by @marcinmoskala https://kt.academy/article/cc-coroutine-context
    👀 1
    👍 2
    r
    m
    2 replies · 3 participants
  • k

    Katarzyna

    08/30/2021, 8:00 AM
    How inline functions work and why they can be so important for the performance of our application 🤔 Use inline modifier for functions with parameters of functional types by @marcinmoskala 👇 https://kt.academy/article/ek-inline-functions
    👍🏻 1
    👍 2
    k
    m
    2 replies · 3 participants
Powered by Linen
Title
k

Katarzyna

08/30/2021, 8:00 AM
How inline functions work and why they can be so important for the performance of our application 🤔 Use inline modifier for functions with parameters of functional types by @marcinmoskala 👇 https://kt.academy/article/ek-inline-functions
👍🏻 1
👍 2
k

Klitos Kyriacou

08/31/2021, 2:01 PM
Very good article. One thing I noticed was that it said that if the function is not inlined, arguments of functional type (i.e. lambdas) will have to be converted by the compiler into an instance of an anonymous class. I wonder how that statement is affected by the new feature of using invokedynamic for lambdas.
m

marcinmoskala

09/02/2021, 8:19 AM
Yes, I hope to investigate that in the future, but seems it is early for writing about it. AFAIK this feature is still experimental and not used by default. Also is will still produce a class, just a lighter one. https://kotlinlang.org/docs/whatsnew15.html#lambdas-via-invokedynamic
👍 1
View count: 3