-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Remove localize_vars. Serialize global values under Main. #19594
Conversation
#11228 already seemed to be fixed on 0.5. At least I couldn't see a timing difference between the two examples. |
Looks good so far. On this branch, let's also (1) remove the localize_vars machinery completely, (2) fix globals, so we have a complete fix. |
Have removed
Need some help here. Tried to follow the serialization process via debug statements. They are represented as |
|
If any packages are calling these, we should probably deprecate them instead of deleting immediately. |
It is safe to remove. On the serialization of globals topic, the scenario where we are only sending an identifier for previously sent anonymous functions has yet to be handled. In this case |
b85aea6
to
6d623e9
Compare
Yes, also remove the code in macroexpand.scm. |
3ed5cea
to
e839fc6
Compare
Serialization of globals has been implemented as follows:
|
dfd0399
to
6aba11e
Compare
Ready for review. Will update NEWS and add a section to the manual after review. cc: @JeffBezanson , @vtjnash |
6aba11e
to
91e8f77
Compare
@@ -0,0 +1,11 @@ | |||
// Place your settings in this file to overwrite default and user settings. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
did you intend to commit this? better to keep local and add to gitignore?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops! Will remove it. Thanks for catching it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe a good addition to contrib in a separate PR, if vscode can be made to look at settings files in different locations?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this still needs to be deleted
Bump @JeffBezanson @vtjnash for a review. |
Bumping again. We should really get this in in 0.6 . Will address a wide range of parallel issues. |
I took a crack at resolving the conflict here by just keeping everything from the PR and master. |
@@ -0,0 +1,11 @@ | |||
// Place your settings in this file to overwrite default and user settings. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this still needs to be deleted
2fed2d9
to
154dbb7
Compare
Squashed and rebased. @JeffBezanson can you give it one more look-over and merge? |
OSX error in |
MacOS failure might be a timeout? It's a bit hard to tell. |
Restarted the job. Old log at https://gist.github.com/amitmurthy/1f4597802dd08720e962fb92b0d9ca0e |
@JeffBezanson, this just needs you to take one last look and merge. |
Is it possible to test julia with this commit in v0.5? |
It should merge cleanly onto 0.5 - at least the files in |
Changes related to PR #19594
Changes related to PR #19594
Changes related to PR #19594
…1034) Changes related to PR JuliaLang#19594
Closes:
#11228
#8591
Fixes #2669 (comment)
The following can now be fixed by automatic serialization of globals (as mentioned in issue #19000) :
#5930
#12367
#14399
#6760
This helps in removing some of the scoping issues w.r.t. parallel macros. A strategy to track and automatic serialization of globals should help in removing the rest.
Till automatic serialization of globals is in place, this will break existing code that would work with globals due to the transparent
localize_vars
call.We can discuss and merge this now or wait till we have a strategy to deal with globals and merge them together. A reason for delaying a merge would be to preempt issues being reported of globals not being serialized.