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

less jl_get_global reflection #53250

Merged
merged 2 commits into from
Feb 10, 2024
Merged

less jl_get_global reflection #53250

merged 2 commits into from
Feb 10, 2024

Conversation

vtjnash
Copy link
Sponsor Member

@vtjnash vtjnash commented Feb 8, 2024

The remaining ones I see are

  • Base.stdout
  • Base.DL_LOAD_PATH
  • Core._parse
  • Base._atexit
  • Base._postoutput
  • Core.ARGS
  • Base._start
  • Base.Libc.Libdl.dlopen
  • Base.task_done_hook
  • Base.wait
  • Base.CoreLogging.logmsg_shim
  • __init__
  • Base.register_root_module
  • Base.loaded_modules_array
  • Base.__toplevel__
  • Base.require
  • aspects of staticdata.c/staticdata_utils.c/precompile.c

(of these, the Base.register_root_module / Base.loaded_modules_array should probably be moved to C still, since it is a thread-safety issue / data-race / deadlock risk right now)

Some minor code codeup, since this is not supported or working.
Except for those used by staticdata, which uses reflection for
everything, this removes most of the remaining runtime callbacks,
although a couple also exist to `jl_get_module_binding` still as well.
@vtjnash vtjnash requested a review from gbaraldi February 8, 2024 17:07
@inkydragon
Copy link
Sponsor Member

This pr removes some export functions from julia.h, maybe it's worth adding a NEWS?

@vtjnash
Copy link
Sponsor Member Author

vtjnash commented Feb 8, 2024

We don't have a stable API promise for C code, including exports, so I don't think there is anything NEWS-worthy here; we change exports on every release and that is just what should be expected.

@gbaraldi
Copy link
Member

gbaraldi commented Feb 8, 2024

Isn't the yeild thing important if someone is embedding julia?

@vtjnash
Copy link
Sponsor Member Author

vtjnash commented Feb 8, 2024

They probably shouldn't call yield either, since that is highly sus even if you aren't embedding Julia and just writing "regular" code

@gbaraldi
Copy link
Member

gbaraldi commented Feb 8, 2024

Makes sense, that question aside LGTM

@vtjnash vtjnash added the status:merge me PR is reviewed. Merge when all tests are passing label Feb 8, 2024
@vtjnash vtjnash merged commit f3d6904 into master Feb 10, 2024
6 of 8 checks passed
@vtjnash vtjnash deleted the jn/less-get-global-reflection branch February 10, 2024 03:01
@oscardssmith oscardssmith removed the status:merge me PR is reviewed. Merge when all tests are passing label Feb 10, 2024
fingolfin added a commit to fingolfin/julia that referenced this pull request May 24, 2024
It was removed in PR JuliaLang#53250 but this bit stayed by accident.
fingolfin added a commit that referenced this pull request May 28, 2024
It was removed in PR #53250 but this bit stayed by accident.
DilumAluthge pushed a commit that referenced this pull request Jun 3, 2024
It was removed in PR #53250 but this bit stayed by accident.
lazarusA pushed a commit to lazarusA/julia that referenced this pull request Jul 12, 2024
It was removed in PR JuliaLang#53250 but this bit stayed by accident.
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.

None yet

4 participants