-
-
Notifications
You must be signed in to change notification settings - Fork 68
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(modules): reload modules and compilation cache #155
Conversation
Samy-33
commented
Dec 28, 2024
•
edited
Loading
edited
4342f7c
to
5379be0
Compare
/* While loading an object, if the main ns loading symbol exists, then | ||
* we don't need to load the object file again. | ||
* | ||
* Existence of the `jank_load_<module>` symbol (also a function), | ||
* means that all the required symbols exist and are already defined. | ||
* We call this symbol to re-initialize all the vars in the namespace. | ||
* */ |
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.
So this means that it'll be impossible, in jank, to:
- Load a module from an object file
- Change the source behind that module
- Try to require the module again, to reload it
- Get the updated source
What does Clojure do here?
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.
If the source is more recent than the object file, we will always load from source.
Clojure doesn't load from class
files, while reloading
in the repl.
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.
Let me know, if this makes sense?
Handles #139 : |