Skip to content

1.10 update: reimplement toplevel analysis features #698

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

Merged
merged 29 commits into from
Apr 18, 2025
Merged

Conversation

aviatesk
Copy link
Owner

@aviatesk aviatesk commented Apr 3, 2025

  • Allow top-level analysis with concretized values [completion:: 2025-04-05]
@analyze_toplevel begin
    global sx::String = "julia"
    sum(sx)
end
  • Allow top-level analysis with non-concretized values [completion:: 2025-04-07]
@analyze_toplevel begin
    global sx::String
    sx = join(rand(Char,5))
    foo(s) = sum(s)
    foo(sx)
end
  • [-] Allow top-level analysis with untyped globals
@analyze_toplevel begin
    #=global=# xs = "julia"
    sum(xs) # should this be really reported?
end
  • Allow inference with non-concretized const [completion:: 2025-04-07]
@analyze_toplevel begin
   const sx22 = let xs =  rand(Char,5)
       println(xs)
       xs
   end
   sum(sx22)
end

Requires:

to be merged and backported to 1.12.

@aviatesk aviatesk force-pushed the avi/1.10-toplevel branch 3 times, most recently from ef4137a to 3956868 Compare April 10, 2025 17:15
@aviatesk aviatesk force-pushed the avi/1.10-toplevel branch from bda6a71 to a0e96eb Compare April 10, 2025 21:08
@aviatesk aviatesk force-pushed the avi/1.10-toplevel branch from 9e0587f to 43836a0 Compare April 15, 2025 17:11
@aviatesk aviatesk changed the title wip: 1.10 update: reimplement toplevel analysis features 1.10 update: reimplement toplevel analysis features Apr 18, 2025
@aviatesk aviatesk closed this Apr 18, 2025
@aviatesk aviatesk reopened this Apr 18, 2025
@aviatesk aviatesk merged commit fbf8cd8 into master Apr 18, 2025
2 of 10 checks passed
@aviatesk aviatesk deleted the avi/1.10-toplevel branch April 18, 2025 17:09
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.

1 participant