Skip to content

register atexit hook on module _init_#242

Open
sjkelly wants to merge 1 commit intoJuliaLang:masterfrom
sjkelly:sjk/init1
Open

register atexit hook on module _init_#242
sjkelly wants to merge 1 commit intoJuliaLang:masterfrom
sjkelly:sjk/init1

Conversation

@sjkelly
Copy link
Copy Markdown

@sjkelly sjkelly commented Apr 19, 2024

These hooks are usually registered at module __init__,
partially to make the code easier to reason about. Though
this now has greater significance with improved static
compilation techniques, since the __init__ is the module
entry and anything outside will be discarded from what
I can tell.

These hooks are usually registered at module `_init_`,
partially to make the code easier to reason about. Though
this now has greater significance with improved static
compilation techniques, since the _init_ is the module
entry and anything outside will be discarded from what
I can tell.
@KristofferC
Copy link
Copy Markdown
Member

Yeah that makes sense. The previous behavior feels broken...

@DilumAluthge
Copy link
Copy Markdown
Member

@sjkelly Are you still interested in moving this PR forward? If so, can you rebase on the latest master, and fix the merge conflicts? I will then try to recruit someone to review this PR.

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