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

    Big Chungus

    06/22/2022, 7:26 PM
    klip@0.4.1 is out with the reworked persistence strategy that now works on the browser tests too! Give it a go if you've already upgraded to kotlin 1.7.0. WTH is klip you might ask? Well it's a test snapshot library for the entirety of KMP powered by a tiny kotlin compiler plugin. In short it lets you assert current state of your test output data vs some previously frozen version of it to ensure consistency and no changes. If you're familiar with jest snapshot testing - it's exactly that but for KMP.
  • s

    Shreyas Patil

    06/24/2022, 12:57 PM
    Just published "Combining StateFlows and transforming it into a StateFlow" Read: https://blog.shreyaspatil.dev/combining-stateflows-and-transforming-it-into-a-stateflow
    👍🏼 1
    👍 5
  • p

    Piotr Krzemiński

    06/24/2022, 9:02 PM
    Are you a GitHub action owner? Do you want to make your action more type-safe to use (e. g. through a Kotlin DSL) or simply better document your action's API? If so, we started working on a standardized way to document types for your action's inputs and outputs. If you want to be an early adopter, please head to https://github.com/krzema12/github-actions-typing and read the README to learn more. Looking forward to any feedback or questions! Feel free to also join #github-actions-kotlin-dsl
    👍 6
    :nice: 3
  • b

    Big Chungus

    06/27/2022, 7:15 PM
    message has been deleted
    :thank-you: 3
    🚀 3
  • s

    Slackbot

    06/28/2022, 9:35 PM
    This message was deleted.
    a
    a
    j
    • 4
    • 4
  • s

    Slackbot

    06/28/2022, 10:01 PM
    This message was deleted.
    :thread-please: 3
    l
    a
    +3
    • 6
    • 11
  • s

    Shreyas Patil

    06/29/2022, 12:21 PM
    Know about the real-time state of Android app permissions anywhere in the application with Kotlin Flow APIs. Library: https://github.com/PatilShreyas/permission-flow-android
  • m

    Michal Klimczak

    06/29/2022, 1:27 PM
    Just published an article about TestDispatchers. Let me know if you have encountered other fragile test cases or if you find any issues with the article. https://proandroiddev.com/testdispatcher-become-the-clock-master-300c13ca46c0
    🙌 5
    🕰️ 1
  • a

    Alejandro Rios

    06/30/2022, 4:01 AM
    Not mine, just wanted to share https://www.marcogomiero.com/posts/2022/improved-kmm-shared-app-arch/
    👀 3
    m
    • 2
    • 1
  • u

    user

    06/30/2022, 5:58 PM
    Kotlin DataFrame Library Preview TL;DR: We at the Kotlin team have developed a Kotlin library for data frames. Today we’re releasing its first public preview version. It provides a readable and powerful DSL for data wrangling and i/o via CSV, JSON, Excel, and Apache Arrow, as well as interop with Kotlin data classes and hierarchical data schemas. The library […]
    :nice: 11
    👀 2
    t
    j
    +2
    • 4
    • 5
  • j

    jmfayard

    07/03/2022, 7:26 AM
    Hello friends. If you prefer Kotlin to YAML, the library #github-actions-kotlin-dsl provides a type-safe alternative to write your GitHub workflows in Kotlin. We just released an IMHO pretty cool feature to make your GitHub expressions typesafe as well! https://krzema12.github.io/github-actions-kotlin-dsl/user-guide/type-safe-expressions/
    :kotlin-intensifies-purple: 5
    👍 2
    🎉 16
  • k

    Katarzyna

    07/06/2022, 9:59 AM
    One of the most useful applications of functional programming is collection processing. Let's learn about essential collection processing functions. That is also a start of a series of articles about functional collection processing functions written by @marcinmoskala. Part 1: 👇 https://kt.academy/article/fk-cp-basic
  • a

    Alexander

    07/07/2022, 2:59 PM
    Hi all! There were a lot of updates in a library witch I develop. It is an Elasticsearch search query builder: https://github.com/anti-social/elasticmagic-kt Now it supports Elasticsearch
    6.x
    ,
    7.x
    and
    8.x
    and also Opensearch. Dynamic templates and multi-search requests were added. All the API is strictly typed. Also I want to introduce a concept of
    query filters
    . They allow you to describe modifications of search queries in a declarative manner. Using them you can filter, sort, paginate and build facet filters for you data in a few lines of code. Just see an example: https://anti-social.github.io/elasticmagic-kt/query-filters/ Although it is in an alpha state but I successfully use it in several simple projects.
  • a

    Ayfri

    07/08/2022, 4:02 PM
    Kotlin 1.7.10 is out :> https://github.com/JetBrains/kotlin/releases/tag/v1.7.10
    :no_red: 2
    :kotlin-intensifies: 18
    :kotlin-intensifies-purple: 6
    v
    • 2
    • 2
  • n

    Nick

    07/09/2022, 5:20 AM
    Doodle 0.8.0 Released 3D Transforms Views can now have full 3D transformations via their
    transform
    property. This works because
    AffineTransform
    has been updated to support scale, rotation, and translations that involve x, y and z axes. The result is that Views can now be placed in a full 3D space by simply giving them a transform that has been modified accordingly.
    import io.nacular.doodle.drawing.AffineTransform.Companion.Identity
    import io.nacular.measured.units.Angle.Companion.degrees
    
    // Rotate this View around they y-axis (through its center) by 45°
    view.transform *= Identity.rotateY(around = view.center, by = 45 * degrees)
    Views can also now render in 3D, since
    Canvas
    also supports the new 3D transforms.
    view {
        render = {
            transform(Identity.rotateY(by = 45 * degrees)) {
                // ...
            }
        }
    }
    3D Perspective A realistic 3D space requires more than just affine transforms (which keep parallel lines parallel). Simulating this requires perspective transforms. Views now have a
    camera
    property, which gives them a perspective when combined with a 3D transform. The following allows the y-axis rotation to look more realistic.
    import io.nacular.doodle.drawing.AffineTransform.Companion.Identity
    import io.nacular.measured.units.Angle.Companion.degrees
    
    // Rotate this View around they y-axis (through its center) by 45°
    view.transform *= Identity.rotateY(around = view.center, by = 45 * degrees)
    
    // Position the View's camera to apply some realistic perspective warping
    view.camera = Camera(position = view.center, distance = 1000.0)
    Canvas also takes a
    Camera
    in its
    transform
    method to enable perspective.
    view {
        render = {
            transform(Identity.rotateY(by = 45 * degrees), camera = Camera(Origin, distance = 1000.0)) {
                // ...
            }
        }
    }
    Kotlin 1.7 Support Doodle now supports 1.7.10!! https://github.com/nacular/doodle/releases/tag/v0.8.0
    :kotlin-intensifies: 3
    👍 1
  • r

    Ruben Quadros

    07/09/2022, 10:48 AM
    Added full screen exoplayer with custom controls to my video games explorer sample app. Check it out! https://github.com/rubenquadros/Jetpack-Compose-Video-Games-Example
  • j

    jmfayard

    07/11/2022, 8:54 AM
    Bonjour! I just published on article on how Kotlin scripts powered by #github-actions-kotlin-dsl can rescue the world from the insane type-unsafe YAML programming 😈 that GitHub actions inflicted on us 🙂 https://dev.to/jmfayard/github-actions-a-new-hope-in-yaml-wasteland-1i9c
    ❤️ 11
    :kotlin-intensifies-purple: 14
    :kotlinnew: 2
    f
    p
    v
    • 4
    • 19
  • a

    Adam S

    07/11/2022, 4:22 PM
    I've written a library that will generate TypeScript interfaces based on Kotlinx Serialization annotated classes! https://github.com/adamko-dev/kotlinx-serialization-typescript-generator This is really helpful for writing TypeScript and Kotlin libraries that communicate via JSON messages. I'm particularly pleased with the sealed class generation - it creates really idiomatic code that's useful at both ends. • work in progress - there are still some rough edges! • It's on Maven Central • it's multiplatform (JVM and JS at the moment)
    👍🏾 2
    👍 3
    👍🏽 1
    👍🏻 1
    b
    j
    n
    • 4
    • 13
  • s

    Sascha Peilicke

    07/12/2022, 2:03 PM
    Well then, here’s a multiplatform Base64 encoder / decoder library supporting both URL-safe and standard formats: https://github.com/saschpe/Kase64
    👍🏻 1
  • s

    Sascha Peilicke

    07/12/2022, 2:06 PM
    Aand a lightweight multiplatform logging library with support for SLF4j: https://github.com/saschpe/Log4K
    k
    • 2
    • 1
  • d

    David Boney

    07/12/2022, 5:34 PM
    Meta just open-sourced an automatic differentiation framework for Kotlin! (https://diffkt.org/). It can compute higher-order and symbolic derivatives, supports user-defined types, and has compile-time shape checking. Examples include machine learning and physical simulations.
    :kotlin-intensifies-purple: 9
    🚀 1
  • k

    Katarzyna

    07/13/2022, 9:00 AM
    Folding stands behind nearly all collection processing functions. fold and reduce are our super agents, which we can use whenever we cannot find a more specific collection processing function. Learn more from the article written by @marcinmoskala. Part 2: 👇 https://kt.academy/article/fk-cp-fold
    👍 2
  • a

    Ayush Bansal

    07/14/2022, 9:32 AM
    Hey, We at CRED have open-sourced our NeoPOP library; the UI Kit that powers the entire CRED app’s NeoPOP design. Feedback and contributions are much appreciated! https://github.com/CRED-CLUB/neopop-android
  • s

    Slackbot

    07/14/2022, 8:52 PM
    This message was deleted.
    a
    g
    g
    • 4
    • 3
  • u

    user

    07/15/2022, 10:38 AM
    Kotlin News: KotlinConf, Build Reports, DataFrame Preview, and More Kotlin Developer Survey is Open Share your opinions about the language itself, IDEs, libraries, build tools, and subsystems. Your answers will help the Kotlin team make the language and tools even better and more convenient. Give your feedback KotlinConf is Back! KotlinConf is making a glorious comeback! It will take place in Amsterdam on April […]
  • u

    user

    07/15/2022, 11:08 AM
    A New Approach to Incremental Compilation in Kotlin In Kotlin 1.7.0, we’ve reworked incremental compilation for project changes in cross-module dependencies. The new approach lifts previous limitations on incremental compilation. It’s now supported when changes are made inside dependent non-Kotlin modules, and it is compatible with the Gradle build cache. Support for compilation avoidance has also been improved. All of these advancements decrease […]
    :kotlin-intensifies: 4
    :kotlin-intensifies-purple: 5
  • l

    louiscad

    07/15/2022, 2:36 PM
    Hello folks, if you're curious about how VectorDrawables and SVG work, and wonder if you could generate nice graphics with quite short Kotlin code, this article is for you! https://blog.louiscad.com/optimized-chessboard-pattern-vectordrawable-in-kotlin
    🆒 4
    👍🏾 1
    👍 7
    e
    • 2
    • 3
  • p

    PoisonedYouth

    07/15/2022, 6:51 PM
    Hey all, for all interested in developing Kotlin with SpringBoot, I've written a small example how to evolve a rest api example application: https://link.medium.com/IOFuwZXOGrb
    :kotlin-intensifies-purple: 3
  • g

    gammax

    07/17/2022, 2:24 PM
    Hey hey :android-wave: Happy to share that #detekt 1.21.0 stable is out 🎉 https://github.com/detekt/detekt/releases/tag/v1.21.0
    ❤️ 3
    🚀 5
    j
    • 2
    • 1
  • a

    Arjan van Wieringen

    07/17/2022, 2:51 PM
    Hi all, after asking a lot of questions in this Slack workspace about coroutines and compose, and getting excellent help, I finished my blog post on creating Conflict-Free Replicated Datatypes in Kotlin Multiplatform and making a workable example in Kotlin Compose for Web: https://avwie.github.io/creating-multiplatform-crdts I hope this is helpful for some people. I learned a lot by doing these kind of experiments.
    👍🏽 1
    👍 2
Powered by Linen
Title
a

Arjan van Wieringen

07/17/2022, 2:51 PM
Hi all, after asking a lot of questions in this Slack workspace about coroutines and compose, and getting excellent help, I finished my blog post on creating Conflict-Free Replicated Datatypes in Kotlin Multiplatform and making a workable example in Kotlin Compose for Web: https://avwie.github.io/creating-multiplatform-crdts I hope this is helpful for some people. I learned a lot by doing these kind of experiments.
👍🏽 1
👍 2
View count: 2