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

only run precompile workload when generating output #243

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sjkelly
Copy link

@sjkelly sjkelly commented Apr 19, 2024

otherwise we run code at module load each time.

otherwise we run code at module load each time.
@KristofferC
Copy link
Member

otherwise we run code at module load each time.

This is not really true, the toplevel code only runs during precompilation (or if you load the module and have turned off precompilation).

@StefanKarpinski
Copy link
Member

Seems like this change is desirable so that this code isn't run when recompilation is off though, no?

@sjkelly
Copy link
Author

sjkelly commented Apr 23, 2024

I should have clarified that the main rationale for this is to make Downloads work at using time with juliac. I am not sure if juliac's compilation model is broken, but I felt that regardless this would be a strict improvement.

I supposed backwards compat needs to be fixed as well.

@sjkelly
Copy link
Author

sjkelly commented Apr 23, 2024

Note that #242 is also required for juliac compatibility.

@KristofferC
Copy link
Member

This fails on earlier julia versions, I think you need to use the ccall to be compatible.

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

Successfully merging this pull request may close these issues.

3 participants