Plugin to generate native-image binaries with sbt
The reason seems to be Scala 3's new encoding for lazy vals, where a reflective access to a variable called bitmap takes place. To demonstrate this, I took the http4s g8 template, set it up with Scala 3.1.0, added sbt native-image, started the nativeImageRunAgent and ran a single request against GET /joke. After stopping the server, the native-image run agent generated the reflective configs that are required for this path of execution. Comparing the generated Scala 2.13 with the Scala 3 configs, yields a bloated version for Scala 3 that contains these additional rules:
Showcase of GraalVM native-image's configuration bloating up with Scala 3
Here is the sample code, based on the http4s g8 template: https://github.com/taig/scala-3-lazy-reflective-access
Deliver Cleaner and Safer Code - Right in Your IDE of Choice!. SonarLint is a free and open source IDE extension that identifies and catches bugs and vulnerabilities as you code, directly in the IDE. Install from your favorite IDE marketplace today.
The Scala 3 compiler, also known as Dotty.
See https://github.com/lampepfl/dotty/issues/13985, maybe the graalvm reflection config format could be enriched to support wildcards if it doesn't already?
How do i stop git bash from showing the time taken for each command
1 project | reddit.com/r/git | 10 May 2022
Eval 0.1.0 released
4 projects | reddit.com/r/scala | 28 Mar 2022
Issues setting up Scala 3 on Windows w/Coursier
3 projects | reddit.com/r/scala | 14 Mar 2022
Is there any way to have a curried function with generic parameters?
1 project | reddit.com/r/scala | 5 Mar 2022
[Scaladoc, Scala3] Question about special character in URL in new Scaladoc in Scala3
2 projects | reddit.com/r/scala | 2 Mar 2022