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
arrow-contributors
  • d

    dnowak

    06/10/2020, 12:50 PM
    Hi guys, have you considered keeping
    Try
    ?
    'Try<out A>' is deprecated. Try will be deleted soon as it promotes eager execution of effects, so it's better if you work with Either's suspend constructors or an effect handler like IO
    I do not think that its existence promotes eager execution of effects. This is how
    Try
    works and simetimes it is what you want. I tried to replace it with
    Either.catch
    but then I have to run it with
    runBlocking
    and it looks strange.
    👍 1
    🙏 1
    r
    • 2
    • 1
  • r

    raulraja

    06/10/2020, 2:42 PM
    IO is also a bad abstraction in Kotlin
    s
    • 2
    • 5
  • r

    raulraja

    06/10/2020, 2:43 PM
    We also want to remove many methods like map and flatMap from many data types and move them to a type class modules because the new computation blocks like
    either
    eliminate the need to ever map or flatMap and Either so it’s one operator vs 15 to learn for a beginner
    t
    • 2
    • 1
  • d

    dnowak

    06/10/2020, 3:00 PM
    I assume that it will be released after Kotlin 1.4.
    r
    • 2
    • 1
  • r

    raulraja

    06/10/2020, 7:51 PM
    MVar is now called ConcurrentVar
    s
    • 2
    • 1
  • r

    raulraja

    06/10/2020, 7:53 PM
    They no longer depend on F
    p
    s
    • 3
    • 2
  • s

    stojan

    06/22/2020, 7:30 PM
    is it time to deprecate
    CallK
    from the retrofit integrations? With Retrofit's native
    suspend
    support it's not needed anymore. Creates a bit of confusion: https://github.com/LordRaydenMK/Android-Fx-Examples/issues/8
    s
    • 2
    • 1
  • t

    tavish pegram

    07/18/2020, 6:03 PM
    Hey all, I’m interested in getting involved and contributing in arrow. Apologies if I missed some documentation explaining any first steps but most things seemed to point toward reaching out via slack or twitter. Is there anything I could pick up to start contributing that is newbie friendly, or any documentation I should be reading? Thanks! Big fan of y’alls work and have been using arrow more and more at work (while also getting into FP)
    ❤️ 5
    r
    s
    r
    • 4
    • 15
  • p

    pablisco

    07/19/2020, 12:04 PM
    I’m testing auto-module (my own plugin) on the incubator project to see if it would make our life easier 🙂 https://github.com/arrow-kt/arrow-incubator/pull/122 If people like it and find it useful I’ll happily propagate it to other repos. I have a new feature on the works for AM that will also streamline the use of composite builds and I was planning to use that to simplify the current build stack… but probably for after v1.0
    👏 1
    🎉 1
    a
    r
    • 3
    • 6
  • p

    pablisco

    07/19/2020, 5:55 PM
    @simon.vergauwen Do we have something like
    callbackFlow
    for
    Streams
    ? 🙂
    a
    • 2
    • 2
  • t

    tavish pegram

    07/21/2020, 1:55 PM
    First try at nullable
    mapN
    https://github.com/arrow-kt/arrow-core/pull/189 Would appreciate any feedback!
    ❤️ 6
    a
    • 2
    • 2
  • p

    pablisco

    07/23/2020, 9:54 AM
    I’m investigating doing android bindings with Stream. Would there be any objection in creating a repository called
    arrow-android
    where we can put all android related libs? and slowly move things like
    arrow-fx-android
    and similar over there. It will help with discoverability as well as remove Android build dependencies from other repositories (which can cause minor build time increases)
    a
    s
    • 3
    • 6
  • j

    Jannis

    07/25/2020, 9:16 AM
    Guessing from the documentation the recommended way to check compatibility with other arrow-repos and operate over local changes in those is to use
    installAllWithLocalDeps
    . This is pretty nice, but for me it fails on the
    arrow-android
    module because of a missing sdk. Can we change this method to skip failure rather than full on crash? Building anything with
    arrow-android
    as a dep should still fail, but at least one can build anything else without problems. This will mean
    buildAllWithLocalDeps
    will still fail, but
    buidWithLocalDeps
    shouldn't, which I think is preferable.
    r
    r
    • 3
    • 4
  • p

    pablisco

    07/29/2020, 9:07 AM
    Need one review on this one: https://github.com/arrow-kt/arrow/pull/2182 PS: thank you @Rachel 😃
    a
    r
    • 3
    • 4
  • p

    pablisco

    07/29/2020, 9:38 AM
    Anyone else experienced this? https://github.com/arrow-kt/arrow-fx/issues/234
    a
    • 2
    • 2
  • p

    pablisco

    07/31/2020, 7:34 PM
    So, regarding this There are several options, I’m interested on knowing what you all think 🙂 1️⃣ Create a new repository called
    arrow-extras
    and create a module called
    arrow-smash
    2️⃣ Create a sole repository called
    arrow-smash
    with
    Can
    ,
    Smash
    and
    Wedge
    from this hackage 3️⃣ Create a module inside
    arrow-core
    called
    arrow-core-extras
    (to be moved along to
    arrow-datatypes
    when we untangle
    arrow-core
    4️⃣ Something completely different (please comment) Thank you all
    r
    • 2
    • 6
  • j

    Juan Antonio Breña Moral

    08/17/2020, 11:12 AM
    hi @simon.vergauwen, is published the dependency in Maven?
    s
    • 2
    • 1
  • j

    Jannis

    08/29/2020, 12:11 PM
    Hey, I am currently looking at adding a few benchmarks to various things (for my stm pr first and later delimited continuations) and I've been wondering if we have a common setup/already set up benchmarks to look at. The
    arrow-benchmarks-fx
    module in
    arrow-fx
    seems like a good start but it does not have
    fx-coroutines
    benchmarks as far as I can tell (do we even have some and if so where?) so I am not sure if that package is still supposed to be used... Also does it make sense to automate running benchmarks and show results in prs if any relevant code changes? (Could be a manual task as well but just having a way to compare performance for a pr and visualize the changes if we have benchmarks set up would be nice). Any ideas? I'd love to do some groundwork here so that adding benchmarks throughout other arrow repos becomes a more straightforward process...
    r
    r
    • 3
    • 7
  • t

    tavish pegram

    09/04/2020, 2:23 AM
    If anyone has a chance I have a small PR in arrow-core that needs a second reviewer. Thanks! https://github.com/arrow-kt/arrow-core/pull/227
    🙌 3
    r
    • 2
    • 4
  • t

    tavish pegram

    09/07/2020, 5:26 PM
    If anyone is free at all I’d like to solicit some advice on https://github.com/arrow-kt/arrow-fx/pull/279. I’m trying to add
    parMapN
    up to arity 9 but I’m running into some issues 1.
    ParTupledN
    has a huge amount of lag for me in intellij once I kind of scaffolded out the new functions. To the point it’s basically impossible to use intellij to edit that particular file. I haven’t been able to find a solution for that on my own (looks like the the kotlin plugins type checker freaks out when code analysis runs, so anytime anything is edited on the page). I don’t know if its just me, but if it isn’t, is this code new enough that I can split it into multiple files (it’s getting a bit big anyway). I would hope that might help, but its just a guess. 2. Many of the arrow coroutine tests hang indefinitely for me when running the tests locally (though they appear to work in the builds on the PR, such as https://github.com/arrow-kt/arrow-fx/actions/runs/243281626 ) Is this another me problem or is there something weird happening? 3. I’m adding some tests for parMapN for arity 2 and 3 (since it already exists), but it looks like arity 3 was failing one of the tests
    "parMapN 3 cancels losers if a failure occurs in one of the tasks"
    . When messing with the test I found that putting the winner in the third position always caused a hang, so I updated
    parMapN 3
    to use
    parMapN 2
    instead of the existing implementation of
    parMapN(ctx, fa, fb, fc, f)
    and it appears to have fixed it. Is that correct or is there a reason to definitely be using the stand alone implementation of N = 3 instead of composing with N = 2? Any suggestions appreciated! Thanks!
    p
    r
    • 3
    • 7
  • t

    tavish pegram

    09/07/2020, 7:19 PM
    ^ Heres a PR for this https://github.com/arrow-kt/arrow-fx/pull/279 I’m rebuilding after it failed on a stream Cancellation test (and confirmed it passes locally) so it’s either flaky or there is a bug for a particular input. I don’t think that failure is related to my changes because I didn’t see
    parMapN
    being used in
    parJoin
    but I didn’t dig through it exhaustively. https://github.com/arrow-kt/arrow-fx/pull/279/checks?check_run_id=1082708601
    r
    • 2
    • 4
  • t

    tavish pegram

    09/11/2020, 4:30 PM
    ^ wanted to bump this https://github.com/arrow-kt/arrow-fx/pull/279 when anyone gets the chance! Thanks!
    r
    • 2
    • 4
  • s

    Satyam Agarwal

    09/13/2020, 8:49 PM
    I just made an extension function to replace it locally.
    inline fun <reified A, reified B> Either<Throwable, A>.product(f: () -> Either<Throwable, B>): Either<Throwable, Tuple2<A, B>> {
        return this.flatMap { a -> f().map { b -> a toT b } }
    }
    r
    • 2
    • 10
  • s

    stojan

    09/16/2020, 7:14 AM
    if someone can help with setting up a new module/repo, I am happy to start working on this one: https://github.com/arrow-kt/arrow-core/issues/238
    r
    • 2
    • 5
  • p

    pablisco

    09/18/2020, 6:43 PM
    Hey Arrows! (Is that a term?) I've added an issue to discuss arrow and Gradle. Any feedback from any fellow Gradle nerds will be more than welcomed 🙂 https://github.com/arrow-kt/arrow/issues/2220
    r
    • 2
    • 1
  • s

    stojan

    09/19/2020, 9:33 AM
    I created the module and moved
    Option
    there. At first I made
    arrow-option
    depend on
    arrow-core-data
    (
    Option
    need
    Show
    ,
    Predicate
    ,
    Either
    and a few other utilities from core-data). However arrow-core-data also needs
    Option
    .
    MonadLogic
    ,
    Monoidal
    ,
    Semigroup
    ,
    Travers
    etc... use it internally or in a public API. Since
    Option
    was marked for deprecation, I assume removing the
    Option
    usages from arrow-core-data is the way to go, right?
    r
    • 2
    • 5
  • t

    tavish pegram

    09/21/2020, 4:25 PM
    Hi all anyone able to review? Thanks and happy monday! https://github.com/arrow-kt/arrow-fx/pull/279
    👍 1
    r
    • 2
    • 1
  • s

    stojan

    09/26/2020, 10:47 AM
    Ready for a review whenever someone has the time... thanks https://github.com/arrow-kt/arrow-core/pull/239
    p
    • 2
    • 9
  • p

    pablisco

    09/28/2020, 5:15 PM
    Literally a 1 char change: https://github.com/arrow-kt/arrow-fx/pull/286/files If anyone is feeling lucky 😎
    c
    r
    k
    • 4
    • 19
  • p

    pablisco

    09/29/2020, 1:45 PM
    What’s our strategy on the time API? Do we keep on using arrow’s Duration for new APIs or do we use
    kotlin.time
    instead? I’m asking as it requires opt-in 🙂
    s
    • 2
    • 4
Powered by Linen
Title
p

pablisco

09/29/2020, 1:45 PM
What’s our strategy on the time API? Do we keep on using arrow’s Duration for new APIs or do we use
kotlin.time
instead? I’m asking as it requires opt-in 🙂
s

simon.vergauwen

09/29/2020, 2:53 PM
We were kind of waiting for
kotlin.time
to stop being experimental, but it seems that's taking much longer than we expected 😕 What is Jetbrains stance on using
kotlin.time
? Are they suggesting to move ahead with it and just annotate it? They seem to have non
kotlin.time
available APIs in KotlinX next to their
kotlin.time
APIs.
p

pablisco

09/29/2020, 4:24 PM
I guess, the more user friendly option may be to offer both alternatives. One that takes Arrow’s Duration and another one that forces the user to use the opt in annotation
Which should make it easier to deprecate once kotlin.time is final
s

simon.vergauwen

09/30/2020, 7:27 AM
Makes perfect sense!
View count: 3