Skip to content
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

Reimplement kscript in kotlin #36

Closed
holgerbrandl opened this issue Aug 11, 2017 · 1 comment
Closed

Reimplement kscript in kotlin #36

holgerbrandl opened this issue Aug 11, 2017 · 1 comment

Comments

@holgerbrandl
Copy link
Collaborator

holgerbrandl commented Aug 11, 2017

2 Problems would need to be solved

  1. How to overcome JVM startup delay? Either by using kotlin-native or by using a virtualizaiton model such as avian (see https://github.com/ReadyTalk/avian and https://blog.plan99.net/kotlin-native-310ffac94af2)
  2. How to mimic process substitution? Currently by using exec we replace the kscript process with the actual jvm process at the end is really nice. Not sure how to do this from within the JVM.

Alternatively we could also reimplement in Go-lang

By rewriting it in Kotlin we pay with 120ms per launch but we gain a lot of stability, cleaner code and portablity.

@holgerbrandl
Copy link
Collaborator Author

Fixed with v2.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant