Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Eric K Richardson
    @ekrich
    @olafurpg Room and a Repo - https://github.com/ekrich/sconfig
    Ólafur Páll Geirsson
    @olafurpg
    🎉
    Eric K Richardson
    @ekrich
    @olafurpg Hey, I have a few questions if you have a few minutes.
    Ólafur Páll Geirsson
    @olafurpg
    Hey @ekrich
    Eric K Richardson
    @ekrich
    You have a couple of minutes?
    I was thinking of getting JVM 2.11 and 2.12 working first and make that a 0.7.0 then Native for 2.11 version0.8.0 then js could be 0.9.0
    Ólafur Páll Geirsson
    @olafurpg
    It's up to you, I don't think it's a lot of work to get it working with JS if it already works for Native
    Eric K Richardson
    @ekrich
    Do you think that sounds OK, since we are not starting from scratch - need some smaller steps as I am pretty new at this - if it goes fast it goes fast - JVM first means at least it could get tried out.
    Ólafur Páll Geirsson
    @olafurpg
    Either way is fine
    Eric K Richardson
    @ekrich
    @hepin1989 I have a chat over here too.
    Eric K Richardson
    @ekrich
    New releases for Scala 2.13.0-M5 and RC1 - https://twitter.com/ekrich/status/1116004843150176256
    Eric K Richardson
    @ekrich
    @/all New release 0.8.0 that supports Scala Native 0.3.9 https://twitter.com/ekrich/status/1120794962465939456
    kerr
    @hepin1989
    :clap:
    Eric K Richardson
    @ekrich
    @/all We are up to version 1.0.0 now with JS support minus resolved variables - we need IdentityHashMap which is in the pipeline scala-js/scala-js#3721
    Eric K Richardson
    @ekrich
    I have a discord area now as it seems people are abandoning gitter - https://discord.gg/XSj6hQs
    Eric K Richardson
    @ekrich
    @/all Support for Scala.js 1.0.0 has been released https://github.com/ekrich/sconfig/releases/tag/v1.2.1
    Eric K Richardson
    @ekrich
    @/all We are working on Scala 3 Scala.js support - waiting for some updates. We are down to one issue on Scala 3 support on JVM - lampepfl/dotty#9881
    The latest version fixes a bug in the Scala.js 1.x support - https://github.com/ekrich/sconfig/releases/tag/v1.3.3
    Brandon Elam Barker
    @bbarker
    Hello, I'm wondering how one can load conf files in scala.js :ConfigFactory.load() and related methods don't seem to work due to PlatformThread not being implemented in Scala.js, as yet
    Eric K Richardson
    @ekrich
    If you are trying to use the library from Scala.js I recommend reading into a string from your app somewhere or via and ajax call to the server. It is a link from the main README - https://github.com/ekrich/sconfig/blob/main/docs/SCALA-NATIVE.md
    If you come up with some nicer ideas for Scala.js I can add them to the README.
    Eric K Richardson
    @ekrich
    @bbarker Let me know how it goes.
    Brandon Elam Barker
    @bbarker
    Thanks! I was thinking along those lines as well - writing alternative implementations for the code that calls ConfigFactory for JS and JVM as this is a cross build; the JS version would be the interesting one
    Eric K Richardson
    @ekrich
    In Scala Native, I was thinking looking in cwd, user.dir, tmpdir something like that but in JS not sure. The other thing that rears its ugly head calling via other code paths is URL which is not supported on JS or Native so any code paths or trying to use url in the files will bonk out.
    Brandon Elam Barker
    @bbarker
    in Scala 3, it might be wortwhile to have a macro to automatically translate such calls to inlining at compile time ... but it could be argued that would be overkill
    Eric K Richardson
    @ekrich
    I try and avoid macros honestly - I haven't spent time learning when I could use them.