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

    user

    02/08/2022, 2:58 PM
    Preview of Kotlin 1.6.20 With Prototype of Context Receivers, Parallel Compilation on JVM, Incremental Compilation in JS, and More The first preview of the 1.6.20 release is out! Introducing Kotlin 1.6.20-M1! This preview includes: Defining context-dependent declarations in Kotlin/JVM with the prototype of context receivers. Faster builds with parallel compilation of a single module in the JVM IR backend. Faster development with incremental compilation in Kotlin/JS IR. Easier code sharing with hierarchical structure of […]
    :kotlin-intensifies-purple: 29
    :kotlinnew: 8
    🚀 17
    :kotlin-intensifies: 14
    t
    d
    • 2
    • 3
  • u

    user

    02/12/2022, 4:08 PM
    K2 컴파일러로 가는 길 새로운 K2 Kotlin 컴파일러를 개발해온 지도 꽤 오래되었습니다. 새로운 컴파일러는 새로운 언어 기능을 더 빠르게 개발하고 Kotlin이 지원하는 모든 플랫폼을 통합하며 성능을 개선하고 컴파일러 확장을 위한 API를 제공하는 데 목표를 두고 있습니다. Kotlin 컴파일러의 개발은 수년 전에 시작되었으며 그 후로 많은 것이 달라졌습니다. 예를 들어, Kotlin 1.0에는 Kotlin/Native 백엔드와 코루틴이 없었기 때문에 Kotlin 컴파일러 코드에서는 […]
    🤔 16
    👍 1
    t
    r
    +3
    • 5
    • 6
  • k

    Katarzyna

    02/14/2022, 8:55 AM
    Let's learn how can we flatMap flow with flatMapConcat, flatMapMerge, and flatMapLatest. Another chapter of the Kotlin Coroutines book by @marcinmoskala. 👇 Flattening flow: flatMapConcat, flatMapMerge and flatMapLatest (kt.academy)
    👍 1
    s
    m
    • 3
    • 2
  • r

    romtsn

    02/15/2022, 7:45 PM
    A new version of ktlint is available 🎉 https://github.com/pinterest/ktlint/releases/tag/0.44.0
    🎉 10
    👍🏼 1
    👍 5
    a
    • 2
    • 1
  • д

    Дмитрий Цывцын

    02/16/2022, 1:08 PM
    Hi guys! I created a simple Android lib to determine the location of the user https://github.com/KiberneticWorm/locsimple
    🙂 1
    😀 1
    t
    • 2
    • 1
  • j

    John Coleman

    02/17/2022, 3:57 AM
    Hi, would anyone be able to help me build a kotlin wrapper for PouchDb? I created some code using Dukat, but it's a bit messy. Be nice if that could be formalised into a proper wrapper project. Is it correct that once I do that then I can use PouchDb in the common code of a shared Kotlin KMM project?
    a
    • 2
    • 1
  • s

    Slackbot

    02/17/2022, 10:06 AM
    This message was deleted.
    a
    m
    • 3
    • 2
  • e

    Erik Dreyer

    02/18/2022, 2:21 AM
    Many companies are using microservices these days, but for many smaller companies, the complexity that comes with a distributed system is out of the question. However, one of the primary benefits of microservices, decoupling, can be realized in a monolith. I created the following project to bring some of the advantages of microservices to monoliths. I’ve called it “microlith”. It is my magnum opus of architectures. I’ve invented nothing here, but combined a number of interesting concepts in a way I think is novel. I’ve taken the concepts of Domain Driven Design, Functional Programming, Algebraic Data Types, CQRS, Hexagonal Architecture, Reactive Systems, etc, etc and combined them in an elegant way to create an architecture for backend applications that solves many of the issues that arise from traditional “pancake style” (web tier / services tier / repository tier) architectures. When used properly, this architecture provides better guardrails for “good developer behavior”, as well as providing a framework for moving various business invariants from runtime checks to compile time (thanks to ADTs). Please take a look. I’d love your feedback. https://github.com/edreyer/microlith Oh, and this is 100% kotlin. This architecture is, for all practical purposes, not possible in Java. Update: Thanks for the comments! A clarification: This is a monolith. Internally, the code is structured so that each Bounded Context (DDD) is segregated. Communication between contexts happens internally using some lightweight CQRS-like tooling, but does not use the network (e.g. no Kafka required).
    ❤️ 2
    👀 3
    a
    j
    +5
    • 8
    • 22
  • n

    nfrankel

    02/20/2022, 5:00 PM
    https://blog.frankel.ch/avoid-stringly-typed-kotlin/
    👍🏼 1
    👍 6
    r
    • 2
    • 2
  • s

    Slackbot

    02/22/2022, 7:33 PM
    This message was deleted.
    b
    k
    • 3
    • 3
  • t

    Tewogbade Oluwadamilare

    02/23/2022, 7:58 AM
    .
    k
    • 2
    • 2
  • p

    pablisco

    02/23/2022, 6:03 PM
    In case people didn’t know 🙂 🧵
    g
    e
    • 3
    • 15
  • a

    Ahmet Özcan

    02/24/2022, 6:40 AM
    I'm curious that when Kotlin mascot gets own name 🙂
    🤚 5
    o
    m
    • 3
    • 2
  • s

    Slackbot

    02/24/2022, 8:41 AM
    This message was deleted.
    :not-kotlin: 2
    e
    • 2
    • 1
  • e

    elye

    02/27/2022, 11:11 AM
    Made a Perlin Noise Interpolator for Jetpack Compose Animation.
    :not-kotlin: 2
    🆒 2
    t
    • 2
    • 2
  • d

    Dave Leeds

    02/28/2022, 7:14 PM
    Kotlin: An Illustrated Guide, Chapter 7 is finally ready! This one's about Lambdas and Function References. Hope you enjoy it! https://typealias.com/start/kotlin-lambdas/
    👍🏾 1
    ❤️ 8
    👍 2
    t
    z
    r
    • 4
    • 6
  • l

    LeHaine

    03/09/2022, 3:53 AM
    Version 0.2.0 of LittleKt has just been released. This includes a bunch of notable changes but the biggest is now supporting Android. Check out the reddit release post here.
    😂 2
    👏 3
    :kotlin-intensifies: 10
    🎉 10
    m
    • 2
    • 1
  • e

    elye

    03/10/2022, 7:41 AM
    Create this Poker Card flipping animation using Jetpack Compose 🙂
    :nice: 7
    👏 7
    💯 6
    👍🏾 1
    👍🏼 1
    ♣️ 6
    👍 15
    b
    • 2
    • 3
  • s

    Shreyas Patil

    03/10/2022, 1:53 PM
    https://blog.shreyaspatil.dev/promise-compose-compiler-and-imply-when-youll-change
    👍🏼 1
    👍 6
    ❤️ 6
    :frani: 1
    g
    • 2
    • 3
  • b

    Big Chungus

    03/17/2022, 10:24 PM
    We're at 8030 kotlin libraries on MavenCentral after last night's kamp.petuska.dev scan! An increase of 494 since 2022-02-01 (just over a month and a half ago). Apologies for the spam - over and out! :kotlin-intensifies: :kotlin-intensifies-purple:
    :kotlin-intensifies-purple: 7
    r
    a
    a
    • 4
    • 23
  • m

    mbonnin

    03/21/2022, 10:16 PM
    Hi everyone 👋 . If you're curious about GraphQL, @bod and I are doing an intro workshop to working with GraphQL in Kotlin tomorrow 9am PT. We'll cover the basics of GraphQL and build a small Android app using a GraphQL endpoint.
    👍 2
    :graphql: 5
    ❤️ 1
    🎉 5
    b
    a
    m
    • 4
    • 7
  • p

    Piotr Krzemiński

    03/23/2022, 6:01 AM
    Kotlin DSL for GitHub Actions workflows is getting more and more mature! Version 0.11.0 is out, with proper docs, ability to define custom attributes/inputs and more. If you use GitHub Actions and don't really like YAML, I encourage you to give it a shot. Any feedback greatly appreciated! https://github.com/krzema12/github-actions-kotlin-dsl/releases/tag/v0.11.0
    ⭐ 3
    🆒 3
    👏 2
    :plus1: 4
    m
    a
    m
    • 4
    • 5
  • t

    Toshihiro Nakamura

    03/27/2022, 2:41 AM
    Hello everyone. We have released Komapper v0.31.0, an ORM library for both JDBC and R2DBC. This version supports kotlinx-datetime. Try it out and let us know how it works for you. https://github.com/komapper/komapper
    👍 2
    j
    • 2
    • 2
  • s

    sam

    03/28/2022, 9:04 AM
    Open sourced my Spring-Actuator style library for Ktor https://github.com/sksamuel/cohort
    👍 2
    :kotlin-intensifies: 7
    :nice: 1
    :kotlin-intensifies-purple: 6
    👍🏼 1
    b
    r
    +2
    • 5
    • 10
  • a

    Ayfri

    04/02/2022, 4:42 PM
    Hey everyone, r/place is ongoing and it still doesn't have the Kotlin logo, let's draw it on the new Canvas they opened, I propose at 1200x750 (random coords where there is nothing) this logo (that uses colors from the website) :
    😁 1
    :kotlin-intensifies-purple: 14
    :kotlin-intensifies: 14
    :nice: 1
    r
    • 2
    • 3
  • a

    Ayfri

    04/04/2022, 7:00 AM
    https://github.com/JetBrains/kotlin/releases/tag/v1.6.20 Kotlin 1.6.20 released !
    🎉 6
    :kotlin-intensifies: 13
    🔥 18
    s
    a
    • 3
    • 2
  • k

    Katarzyna

    04/04/2022, 9:19 AM
    Dear Kotliners, We are so glad to inform you about the official release of the Kotlin Coroutines book by @marcinmoskala 🥳 The one and only up-to-date Kotlin Coroutines compendium. More information 👇 Kotlin Coroutines (kt.academy) Get it now on Leanpub 👇 Kotlin Coroutines by Marcin Moskała [Leanpub PDF/iPad/Kindle] We would love to get feedback from you. Have a nice reading 📘
    🎉 10
    🍾 2
    :kotlin-intensifies-purple: 2
    m
    r
    • 3
    • 4
  • k

    Konstantin Tskhovrebov

    04/05/2022, 12:16 PM
    We’ve updated the Kotlin Multiplatform Web-wizard a bit: • simplified source sets hierarchy when it’s possible • updated Kotlin/Gradle/Deps versions • simplified libraries selection UI • cleaning source code and added some cases to unit tests https://terrakok.github.io/kmp-web-wizard/
    :nice: 8
    h
    j
    +2
    • 5
    • 7
  • s

    sam

    04/13/2022, 2:18 AM
    Released Cohort 1.2.0, a spring-boot actuator style replacement for Ktor. This release adds support for Ktor2. https://github.com/sksamuel/cohort
    👍 5
    ❤️ 3
    m
    • 2
    • 2
  • t

    TheOnlyTails

    04/15/2022, 9:19 PM
    I just released my first Kotlin library, Ketex! this library allows you to create regexes using a fully idiomatic DSL. Available on maven central now, I really hope you give it a try! (requires enabling context receivers)
    r
    t
    • 3
    • 4
Powered by Linen
Title
t

TheOnlyTails

04/15/2022, 9:19 PM
I just released my first Kotlin library, Ketex! this library allows you to create regexes using a fully idiomatic DSL. Available on maven central now, I really hope you give it a try! (requires enabling context receivers)
r

Robert Jaros

04/15/2022, 9:38 PM
Any code sample?
t

Todd

04/15/2022, 9:56 PM
I was also curious. Looks like there’s some tests you can use as examples: https://github.com/TheOnlyTails/ketex/blob/main/src/test/kotlin/KetexTest.kt
t

TheOnlyTails

04/15/2022, 10:11 PM
I haven't written any proper docs yet, but I'll probably get it done until next week.
As todd has said, the tests are probably the best place to look right now
View count: 6