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

    Miguel A. Ruiz

    07/22/2019, 9:18 PM
    This is the error I get
    Sin título
    r
    • 2
    • 5
  • a

    addamsson

    07/24/2019, 1:22 PM
    @simon.vergauwen I think you've suggested Category Theory for Programmers the other day, am I right? Can you suggest something else for reading about FP? I've read the first 100 pages and I don't like it. It is too abstract and doesn't supply examples from which it would be easy to understand the concepts.
    s
    s
    • 3
    • 7
  • b

    Bob Glamm

    07/24/2019, 1:23 PM
    @addamsson Is that the Milewski book?
    a
    i
    a
    • 4
    • 79
  • p

    pakoito

    07/24/2019, 8:19 PM
    cc @addamsson!
    a
    • 2
    • 2
  • p

    pakoito

    07/25/2019, 2:25 PM
    and frequently it was learned through writing out the implementation
    s
    • 2
    • 1
  • a

    addamsson

    08/06/2019, 9:43 AM
    @pakoito @raulraja @Imran/Malic I'm back from vacation! What do you think about rewriting the internals of the persistent collections PR in the light of recent improvements to
    kotlinx.collections.immutable
    ?
    🎉 2
    p
    • 2
    • 17
  • s

    simon.vergauwen

    08/14/2019, 1:41 PM
    That’s a bug in Dokka and it’s flaky. I tried to reproduce it but was unsuccessful, I saw it randomly.
    m
    • 2
    • 1
  • i

    Imran/Malic

    08/16/2019, 9:45 AM
    Hey Guys, I was working on docs for
    Apply
    , but I am not sure of the practicality of
    Apply
    in
    Arrow
    , most functions etc, we use are build on top of
    Applicative
    or
    Functor
    . I could not find anything theoretically substantial to promote using
    Functor
    over
    Apply
    in some general use cases. Data types like
    Map
    have valid
    Apply
    instances, but no
    Applicative
    . Most of the typeclass machinery in Arrow is build on top of either
    Functor
    or
    Applicative
    . My question is: Can we delete Apply, because it may have instances for any DT that has an
    Applicative
    , but there is nothing we can do with an
    Apply
    , because the
    Functor
    has more to offer.
    r
    • 2
    • 3
  • i

    Imran/Malic

    08/28/2019, 9:51 AM
    @Rachel made this PR: I am not sure if @Igal Tabachnik is working on the PDF generation but both of you can discuss this here. https://github.com/arrow-kt/Category-Theory-for-Programmers.kt/pull/56 I am currently unavailable for that project.
    r
    • 2
    • 6
  • i

    Imran/Malic

    09/15/2019, 10:04 PM
    Does anyone know a random source code generator for Kotlin?
    r
    • 2
    • 3
  • r

    raulraja

    09/24/2019, 6:42 AM
    With this we may be able to rethink the retrofit integration to base it off suspend instead of callbacks https://twitter.com/JakeWharton/status/1176300676751798273?s=19
    s
    p
    j
    • 4
    • 14
  • s

    stojan

    10/10/2019, 9:21 AM
    Questions related to tech debt (probably) - Any reason Arrow is targeting Java7 bytecode? even Android moved to 8 😄 - Any reason Arrow is using
    compile
    instead of
    api/implementation
    g
    • 2
    • 11
  • i

    Imran/Malic

    10/14/2019, 7:51 AM
    Thank you for your persistence @Miguel A. Ruiz!! :arrow:💪🏽 https://github.com/arrow-kt/arrow/pull/1493
    m
    • 2
    • 2
  • t

    thanh

    10/15/2019, 9:22 AM
    and here is my implementation in `FunctorFilter`:
    . /**
       * Apply a filter to a structure such that the output structure contains all instances of specified class.
       */
      @Suppress("UNCHECKED_CAST")
      fun <A, B> Kind<F, A>.filterIsInstance(klass: Class<B>): Kind<F, B> =
        filterMap { a -> if(klass.isInstance(a)) Some(a as B) else None }
    i
    a
    p
    • 4
    • 25
  • i

    Imran/Malic

    10/15/2019, 9:53 AM
    A simple Gist is sufficient
    👍 1
    t
    • 2
    • 2
  • p

    pakoito

    10/17/2019, 11:15 AM
    which one of you wants the shirt the most? 😄
    a
    • 2
    • 2
  • b

    Bob Glamm

    10/17/2019, 12:30 PM
    TBH I am going to have very limited availability over the next 3-4 days, so as far as I'm concerned @kitttn, it's yours if you want it
    ❤️ 1
    k
    • 2
    • 5
  • a

    aballano

    10/17/2019, 1:11 PM
    @thanh not for now, there's a PR for having a Biofunctor IO that Paco started and I'm trying to help with
    p
    • 2
    • 3
  • t

    thanh

    10/20/2019, 12:31 PM
    Got it @raulraja. I actually finished my fake implement of
    ObservableZ<E, A>
    in my RxArrow when I was on the way home: https://github.com/lenguyenthanh/rxarrow/blob/master/src/main/kotlin/com/lenguyenthanh/rxarrow/ObservableZ.kt
    a
    • 2
    • 2
  • j

    Jannis

    10/25/2019, 10:18 PM
    Hey, in arrow the traverse method from the Traversable typeclass is usually (for collections) implemented using foldRight, but haskell's docs at http://hackage.haskell.org/package/base-4.12.0.0/docs/Data-Traversable.html state that travers is left to right. Is that a bug or a conscious decision? I am for changing that, because for infinite structures like sequence traverse would never compute anything and spend all its time forcing the sequence, whereas with a left to right manner it would actually compute stuff (and when used with IO can also abort whenever it wants)
    s
    • 2
    • 6
  • j

    Jannis

    10/25/2019, 10:25 PM
    Also just having a set order for everything and documenting that somewhere would be good so that this does not vary from type to type
    👍 1
    a
    • 2
    • 5
  • r

    raulraja

    10/28/2019, 8:21 PM
    We can add a safe version based on eval but it won't help in polymorphic functions already based of ap
    j
    • 2
    • 17
  • j

    Jannis

    11/06/2019, 7:21 PM
    Hi, I am finally getting around to finishing the
    Schedule
    datatype that will enable users to easily express all sorts of retry/repeat strategies and I am at the point of choosing where to add the retry/repeat methods. Since the whole thing involves delay I was thinking Async or above (using
    delay
    from coroutines), but then I saw the
    Timer
    interface which offers some sort of sleep method for
    Concurrent
    and some other implementations for rx2 and reactor. So the question is, where does this go in the typeclass hierarchy?
    r
    s
    • 3
    • 16
  • r

    rcd27

    11/12/2019, 3:29 PM
    [SOLVED - invalidate caches in IDEA] Pulling actual
    master
    -> trying to build ->
    Build SUCCESSFULL
    , however a lot of references are red in IDEA
    r
    • 2
    • 4
  • j

    Jannis

    11/25/2019, 7:50 PM
    Hmm, might be, I'll play around with it a bit and see what I need to do to get it working 👍
    👍 2
    r
    • 2
    • 9
  • r

    raulraja

    12/08/2019, 12:34 PM
    @Proof(Subtyping)
    inline fun <A> A.first(): Union4<A, Any?, Any?, Any?>
    p
    • 2
    • 8
  • s

    simon.vergauwen

    12/08/2019, 8:28 PM
    https://github.com/arrow-kt/arrow/issues/1796
    s
    • 2
    • 3
  • s

    Shady Selim

    12/16/2019, 6:38 AM
    Hi @here I will be heading a Kotlin summit in Egypt and am asking if you have Arrow resources or slides to share to introduce Arrow to the developers in MENA
    r
    • 2
    • 1
  • j

    Jannis

    12/20/2019, 4:26 PM
    https://github.com/arrow-kt/arrow/pull/1868 This is ready for review, it fixes a lot of issues with
    traverse
    . Apart from
    traverse
    now being left to right for (all?) functors, this should not affect any existing code.
    s
    • 2
    • 22
  • i

    Imran/Malic

    12/20/2019, 4:27 PM
    Does anyone get this error too, rebuild Arrow from master:
    Build file '/Users/ulti_mate/IdeaProjects/Arrow_with_Access/arrow/modules/benchmarks/arrow-benchmarks-fx/build.gradle' line: 16
    
    A problem occurred evaluating project ':arrow-benchmarks-fx'.
    > Failed to apply plugin [id 'me.champeau.gradle.jmh']
       > This version of the JMH Gradle plugin requires Gradle 5.5+. Please upgrade Gradle or use an older version of the plugin.
    s
    • 2
    • 13
Powered by Linen
Title
i

Imran/Malic

12/20/2019, 4:27 PM
Does anyone get this error too, rebuild Arrow from master:
Build file '/Users/ulti_mate/IdeaProjects/Arrow_with_Access/arrow/modules/benchmarks/arrow-benchmarks-fx/build.gradle' line: 16

A problem occurred evaluating project ':arrow-benchmarks-fx'.
> Failed to apply plugin [id 'me.champeau.gradle.jmh']
   > This version of the JMH Gradle plugin requires Gradle 5.5+. Please upgrade Gradle or use an older version of the plugin.
s

stojan

12/20/2019, 4:43 PM
I did the PR that updates that: https://github.com/arrow-kt/arrow/pull/1840 CI passed, 3 times
¯\_(ツ)_/¯
caching issues maybe?
but then... this maybe -> https://github.com/arrow-kt/arrow/blob/d5fa8fc1966b3f335e84338a08a99443dfefe227/build.gradle#L213 I have no idea what it does
maybe it can be removed?
i

Imran/Malic

12/20/2019, 4:47 PM
I changed the version to 6.0.1 and it looks good so far. Thank you for your answer
s

stojan

12/20/2019, 4:48 PM
I have never used it before, so maybe it's not needed 🤔
i

Imran/Malic

12/20/2019, 4:48 PM
We might want a PR for that, but @pakoito needs to approve if that issue is just a local issue on my computer or it makes sense to create a PR. If yes I can do the PR.
I can approve that it works when the wrapper version is at 6.0.1 just as in our gradle wrapper properties.
This is something I observed after unsuccessful rebuilding a couple of times in
benchmarks
s

stojan

12/20/2019, 5:27 PM
never seen that before 🤔
@Imran/Malic are you using Java8?
i

Imran/Malic

12/22/2019, 4:41 PM
Yes 🙂
View count: 1