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

Investigate compilation of Standard.Base library with Native Image #9774

Closed
JaroslavTulach opened this issue Apr 24, 2024 · 1 comment · Fixed by #9997
Closed

Investigate compilation of Standard.Base library with Native Image #9774

JaroslavTulach opened this issue Apr 24, 2024 · 1 comment · Fixed by #9997
Assignees
Labels
--low-performance -compiler p-medium Should be completed in the next few sprints

Comments

@JaroslavTulach
Copy link
Member

As an alternative approach to loading libraries via JVM while running the interpreter as native image binary

we could compile some Standard libraries into the native image Enso binary by default. Standard.Base is anyway closely coupled with the engine version, so having them both in a single binary shall not hurt much and the startup speed would increase in magnitudes.

What is needed?

  • find all polyglot java import statements in the library
  • register public method of such classes for reflection
  • make sure they are available in NI by writing a Feature

Slight drawback is related to #9129 - it is not going to be possible to pass instances of NI compiled library JARs to JVM loaded library JARs. The polyglot import would then be mostly internal, not exported.

@enso-bot
Copy link

enso-bot bot commented May 14, 2024

Jaroslav Tulach reports a new STANDUP for yesterday (2024-05-13):

Progress: - review abortJob: #9927 (comment)

@JaroslavTulach JaroslavTulach moved this from ⚙️ Design to 🔧 Implementation in Issues Board May 14, 2024
@JaroslavTulach JaroslavTulach moved this from 🔧 Implementation to 👁️ Code review in Issues Board May 16, 2024
@JaroslavTulach JaroslavTulach linked a pull request May 21, 2024 that will close this issue
3 tasks
@github-project-automation github-project-automation bot moved this from 👁️ Code review to 🟢 Accepted in Issues Board May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
--low-performance -compiler p-medium Should be completed in the next few sprints
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

1 participant