-
Notifications
You must be signed in to change notification settings - Fork 129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feat] Scripting with instant startup #3127
Comments
This seems quite contradictory - on one hand you'd want instant startup, something that's only possible with either a hot jvm running in the background or a native binary. On the other hand you'd want this to be be free of native compilation overhead (unconstrained by native-image or scala-native) but also not to leave a running jvm behind. While I'd also want something like that, I don't think you can turn Scala into an interpreted language. |
There were two options I listed
You're right that No.2 contradicts my listed desire to not have a JVM running in the background. I have removed it as it probably makes sense to be its own separate issue. I've updated the OP to focus more on no.1 |
I get the feeling that there's at least 3 different feature requests listed in the discussion above:
For us to discuss those and potentially plan them (or more likely, allow an external contributor to pick them up), those would need to be raised as separate feature requests. Additionally, we may not be able to consider these things before the I'd advise to start a discussion on your use case before raising subsequent feature requests. |
Closing this for now, please re-raise the individual points separately (perhaps a discussion thread would be better first) |
Is your feature request related to a problem? Please describe.
I'd like to be able to write a scala-cli script which supports instant startup (via compiling to native binaries).
Currently scala-cli supports compiling to native binaries via scala-native or GraalVM native-image.
However:
scala-cli --power package --native-image my_script.scala -f -o my_bin
to generate the binary.Describe the solution you'd like
If we can make no.1 instant then we would've solved the instant start-up issue for scala-native binaries
Additional Context
In https://github.com/jatcwang/instant-scala, I have a bare-bones wrapper bash script which compares the cached and current hash of the script file and runs the cached native binary if they're the same.
The text was updated successfully, but these errors were encountered: