Replace typesafe config for sconfig for Pekko 2.0.0 #2186
Replies: 10 comments 51 replies
-
lightbend/config recently released a 1.4.4 patch release - I wouldn't call it unmaintained - just in maintenance mode, where only serious bugs get fixed I know we are making breaking changes in 2.0.0 but I'd like to keep them limited and I don't see switching away from lightbend/config as being all that important (i.e. not worth the disruption). |
Beta Was this translation helpful? Give feedback.
-
I don't think we should remove it, as Akka is still using it, sconfig is great, but it's still a one-man part-time job. |
Beta Was this translation helpful? Give feedback.
-
Open-sourcing is about collaboration, not forking, if we can fix a bug in a fork, we can fix it in the upstream project too. |
Beta Was this translation helpful? Give feedback.
-
Let me please add from user perspective, running a landscape of services and libraries with Pekko / Typesafe, that migrating to sconfig - even if low effort necessary - would create an additional burden to migrate to v2.0.0. |
Beta Was this translation helpful? Give feedback.
-
I guess the key thing is that sconfig has a Scalafix conversion so the effort shouldn't be too much. I guess we could try to generate a PR and see what it looks like. |
Beta Was this translation helpful? Give feedback.
-
Similiar discussion in Play repo recently: |
Beta Was this translation helpful? Give feedback.
-
If both answers are no I would vote for keeping lightbend config. |
Beta Was this translation helpful? Give feedback.
-
In my opinion, ideally every core feature – such as config – should be internal or depend only on ASF projects, meaning both Typesafe Config and sconfig are problematic in that regard. So the three solutions I see are:
|
Beta Was this translation helpful? Give feedback.
-
We can add a DSL-based configuration method, but I don't recommend removing support for HOCON, as it's already widely accepted by the community. I also don't recommend a major fork from Akka. We might produce a better design, or even a less polished one in some areas. Maintaining similar functionality and user experience will allow users to easily choose between the two frameworks. After all, some commercial projects are forced to use Akka due to supply chain requirements. I think this will benefit both projects. I don't recommend investing effort here because I believe that as an open source project, our resources are limited, at least not full-time, so we should focus on more creative endeavors. If we could compile Pekko to Scala Native or Scala JS, I think that would make sense, but we already use a lot of MethodHandles and VarHandles, so the cost is a bit high. As a Java developer, as are most employees at Alibaba. I simply want to improve performance and optimize the Java API experience. |
Beta Was this translation helpful? Give feedback.
-
I can maybe chime in here. Recently, we have been working on making sure We have in the latest release work by @kastoestoramadus adding the ability to format HOCON code which would also allow a We also have also added I have maintained this for about 7 years but I am not opposed to ASF or Scala Center or some other more permanent home. The Scalafix could be used for another package change if needed. Does Apache currently have Scala cross platform code? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
This was brought up some time ago but I want to raise this again, basically moving from lightbend config to sconfig. Currently Pekko uses typesafe config as its main configuration library however there are many issues with it
@raboof @pjfanning @raboof Thoughts?
EDIT: A pull request is now ready, see #2187. Turns out that while the changeset is large, 99% of it is just renaming imports and removing/adding
()
in relevant parts of Scala source code.Beta Was this translation helpful? Give feedback.
All reactions