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

more precise inference of splatnew #35976

Merged
merged 1 commit into from
May 26, 2020
Merged

more precise inference of splatnew #35976

merged 1 commit into from
May 26, 2020

Conversation

JeffBezanson
Copy link
Sponsor Member

This allows constant-folding NamedTuple constructors, in turn allowing constant prop through keyword arguments.

This might make the compiler very slightly slower, but fortunately I don't see a significant effect, maybe half a second building Base. The extra type info definitely seems worth it.

@JeffBezanson JeffBezanson added the compiler:inference Type inference label May 21, 2020
@YingboMa
Copy link
Contributor

I wonder if we can have the ability to disable constant folding for a few arguments. This will help the compile time for functions with default arguments.

This allows constant-folding NamedTuple constructors, in turn
allowing constant prop through keyword arguments.
@ChrisRackauckas
Copy link
Member

Can this make it into v1.5 or is that unsafe?

@JeffBezanson JeffBezanson added status:triage This should be discussed on a triage call backport 1.5 labels Jun 4, 2020
ChrisRackauckas added a commit to ChrisRackauckas/julia that referenced this pull request Jun 15, 2020
I think JuliaLang#35976 is a pretty big deal since it makes all of SciML suddenly infer a lot better, and probably another big library that's splatting keyword arguments. So I added a note to the compiler/runtime improvements.
JeffBezanson pushed a commit that referenced this pull request Jun 15, 2020
I think #35976 is a pretty big deal since it makes all of SciML suddenly infer a lot better, and probably another big library that's splatting keyword arguments. So I added a note to the compiler/runtime improvements.
JeffBezanson added a commit that referenced this pull request Jun 18, 2020
This allows constant-folding NamedTuple constructors, in turn
allowing constant prop through keyword arguments.

(cherry picked from commit 7124472)
@StefanKarpinski StefanKarpinski removed the status:triage This should be discussed on a triage call label Jul 16, 2020
simeonschaub pushed a commit to simeonschaub/julia that referenced this pull request Aug 11, 2020
This allows constant-folding NamedTuple constructors, in turn
allowing constant prop through keyword arguments.
simeonschaub pushed a commit to simeonschaub/julia that referenced this pull request Aug 11, 2020
I think JuliaLang#35976 is a pretty big deal since it makes all of SciML suddenly infer a lot better, and probably another big library that's splatting keyword arguments. So I added a note to the compiler/runtime improvements.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler:inference Type inference
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants