https://kotlinlang.org logo
Join SlackCommunities
Powered by
# helios
  • t

    thanh

    09/12/2019, 5:53 PM
    Not sure what should I do now, can anyone help me on this?
  • a

    AdrianRaFo

    09/12/2019, 5:55 PM
    I'll restart it asap no worry about that
  • t

    thanh

    09/12/2019, 5:57 PM
    thanks!
  • p

    pakoito

    09/12/2019, 6:21 PM
    did 0.10 regress it?
  • p

    pakoito

    09/12/2019, 6:21 PM
    OMG
  • a

    AdrianRaFo

    09/12/2019, 6:24 PM
    Benchmarks can change but if continue failing I will take a deeper look
  • a

    ambrusadrianz

    11/07/2019, 11:37 AM
    Hi, found a pretty significant issue with helios today. The string encoding implementation currently does not escape any characters, so the encoding of a JSON that contains a multiline string would result in an invalid JSON. @AdrianRaFo Do you accept PR’s for this issue?
  • a

    AdrianRaFo

    11/07/2019, 11:40 AM
    Sure, go for it
  • a

    ambrusadrianz

    11/07/2019, 11:49 AM
    https://github.com/47deg/helios/pull/129
  • a

    ambrusadrianz

    11/07/2019, 11:49 AM
    Also have a pending PR, could we maybe discuss this one?
  • s

    simon.vergauwen

    11/07/2019, 11:52 AM
    Oh right, that’s on me. I just got back from vacation this week, I’ll check it out tonight!
  • a

    ambrusadrianz

    11/07/2019, 11:53 AM
    Thanks a lot 👍
  • s

    simon.vergauwen

    11/08/2019, 9:19 AM
    Hey @ambrusadrianz, I checked out the PR and left 2 comments. Looking great! If you have any questions I’d love to help you out 🙂
  • a

    ambrusadrianz

    11/08/2019, 9:20 AM
    Hey! Sure, I will address the comments, if there’s a question I’ll let you know.
    👍 1
  • a

    ambrusadrianz

    12/03/2019, 8:37 AM
    Hi @AdrianRaFo, can you help me out with something regarding my PR? How could I write a semigroup with extension function to JsNull?
  • a

    ambrusadrianz

    12/03/2019, 8:37 AM
    since it’s an object
    a
    s
    • 3
    • 2
  • a

    ambrusadrianz

    12/03/2019, 8:42 AM
    Also I’m not sure if we should implement Semigroup’s for all these classes, since they could be combined multiple ways (add, subtract, divide etc. for numbers).
  • a

    ambrusadrianz

    12/03/2019, 8:43 AM
    We also shouldn’t implement a generic JsonSemigroup because how would you combine a JsDecimal(“1.33”) with a JsString(“abc”)?
    a
    • 2
    • 15
  • s

    simon.vergauwen

    12/03/2019, 12:44 PM
    We typically expose a default instance which is
    add
    for numbers and
    concatenate
    for Strings
  • s

    simon.vergauwen

    12/03/2019, 12:45 PM
    The idea is that user can always provide their own strategies since it’s all just a parameter in the function. With typeclasses support and the compiler can automatically provide them you can still do a local override or manually pass another instance.
  • s

    Satyam Agarwal

    02/14/2020, 12:57 PM
    Hei. When can we expect to have another release in helios, as the currently released version is pointing to 0.9.0.
  • p

    pakoito

    02/14/2020, 1:02 PM
    @simon.vergauwen!
  • s

    Satyam Agarwal

    02/14/2020, 1:34 PM
    Another question, arrow has another module in incubation
    arrow-integrations-jackson-module
    , is that ingration for Helios like Retrofit example on the website ? In most webapp frameworks like ktor, spring, usually there are 2 places where one registers encoders and decoders. 1. While intercepting an incoming request, to convert the json payload into data classes, and outgoing response to covert data classes to json strings 2. http clients, where basically same thing happens. Would Helios in the future provide any support for these scenarios with types and apis, like retrofit? Also I see that Helios uses Either for parsing return type, are there plans to use IO/BIO in future?
  • s

    simon.vergauwen

    02/14/2020, 1:38 PM
    Hi Satyam, We currently don’t have a lot of focus on Helios, it’s completed logic wise but we’re not happy with the current
    Encoder/Decoder
    solution since we cannot generate them at compile time at the moment. Later this year with Kotlin 1.4 that would change, and we could automatically provide all of them and guarantee it at compile time.
  • s

    simon.vergauwen

    02/14/2020, 1:39 PM
    Another question, arrow has another module in incubation
    arrow-integrations-jackson-module
    , is that ingration for Helios like Retrofit example on the website ?
    Not sure what the jackson modules contains, would need to check
  • s

    simon.vergauwen

    02/14/2020, 1:40 PM
    To answer your 1/2 question, this could be the same as what people do today for KotlinX serialization or seemingless where no user-code is needed but a compile error would be provided if the configuration could not be satisfied.
  • s

    simon.vergauwen

    02/14/2020, 1:41 PM
    Also I see that Helios uses Either for parsing return type, are there plans to use IO/BIO in future?
    Either
    is a more generic type, and the code in
    Helios
    is pure, or in other words it does not throw. You could easily lift it into
    IO
    or
    BIO
    if you want to run the parsers as an effect on a certain context.
    IO { Json.parse… }
  • s

    Satyam Agarwal

    02/14/2020, 1:45 PM
    Awesome. Thank you so much. Then it makes sense to wait a little. I can surely use it anyway in my own projects. But would be nice to introduce it when it’s more seamless.
    👍 1
  • s

    sahil Lone

    10/08/2020, 9:23 AM
    @raulraja Pointed me here to get some help
    r
    • 2
    • 3
  • m

    Marius Kotsbak

    11/10/2020, 1:02 PM
    Is this project half dead? It is broken using Kotlin 1.4.x: https://github.com/47degrees/helios/issues/141
    r
    • 2
    • 2