sbt-native-image
LogoRRR
Our great sponsors
sbt-native-image | LogoRRR | |
---|---|---|
5 | 4 | |
245 | 91 | |
1.2% | - | |
3.4 | 8.9 | |
5 months ago | 6 days ago | |
Scala | CSS | |
- | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
sbt-native-image
-
Scala.js AWS Lambda, using Scala 3
Take a look at sbt-native-image or sbt-native-packager for building the native image.
-
GraalVM native-image with Scala 3 reflection hell
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:
-
Is Scala and Play Framework dying?
Sbt plugin: https://github.com/scalameta/sbt-native-image
-
Native Image Compilation for A Purely Functional Example Application
IIRC, the sbt-native-image plugin can abstract that away, too: https://github.com/scalameta/sbt-native-image#nativeimagerunagent https://github.com/scalameta/sbt-native-image
-
SBT error when running package application: java.lang.RuntimeException: No main class detected.
Assembly, however, has some disadvantages so you may also want to look into other alternatives like sbt-native-packager. You may even want to produce a binary using sbt-native-image (which uses GraalVM under the hood) so your users do not need to install anything at all, not even a JRE.
LogoRRR
- Announcement: LogoRRR 24.1.0
-
JavaFX Links Of The Week of November 18, 2022
Robert Ladstätter, creator of LogoRRR, is looking for help: "How can you extract time instant information from log files".
-
JavaFX Links of the Week of October 21st, at jfx-central.com
A new release 22.3.0 of LogoRRR - log file viewer - has been announced.
-
JavaFX links of the week as posted on jfx-central.com
The LogoRRR releases can be found on GitHub.
What are some alternatives?
sbt-native-packager - sbt Native Packager
graalnative4s - Employ Scala for serverless applications
zio-microservice - ZIO-powered microservices via HTTP and other protocols.
PeriodicTable - A simple periodic table app for chemistry lovers
sbt-assembly - Deploy über-JARs. Restart processes. (port of codahale/assembly-sbt)
MyDevoxxGluon - The official “Devoxx” mobile app
aws-sdk-scalajs-facade - A complete set of Scala.js type facade for aws-sdk-js
dynamoit - A simple AWS DynamoDB viewer
Finatra - Fast, testable, Scala services built on TwitterServer and Finagle
jfxcentral-data - The data repository for the JFXCentral website
feral - Feral cats are homeless, feral functions are serverless
my-photo-timeline - A simple command-line app to organize your local photos by dates (year/month) on your local file system, for those who don't store photos in the cloud