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

store more unnecessary information in CodeInfo #31015

Merged
merged 4 commits into from
Feb 16, 2019
Merged

Conversation

vtjnash
Copy link
Member

@vtjnash vtjnash commented Feb 8, 2019

We've previously been pretty careful to only have useful information in CodeInfo. That's probably not really necessary though, since having the ability to expose extra information (slottypes, rettype, parent, min/max world) isn't too harmful, and is occasionally useful. Here we use it to close #29287.

@timholy
Copy link
Member

timholy commented Feb 9, 2019

Demo of @code_warntype output?

@vtjnash
Copy link
Member Author

vtjnash commented Feb 11, 2019

mysum(a) = let s=0; for x in a; s+=x; end; s; end

image

@vtjnash vtjnash force-pushed the jn/codeinfo-plus branch 2 times, most recently from 8d05c80 to 5064593 Compare February 11, 2019 21:09
Also store a few other unnecessary properties in CodeInfo,
which some users might be interested in having.
Not yet enabled, since we likely need to cache this more efficiently first.
also expose `optimize` flag, and set default to false

closes #29287
@vtjnash
Copy link
Member Author

vtjnash commented Feb 14, 2019

GTG? It's mostly NFC (since these field are essentially being added with an explicit "no warranty" clause)

Though to be clear, this isn't entirely NFC since it is changing the default of code_warntype to optimize=false (while adding the ability to change it), as I proposed in #29287. I think it's worthwhile trying this switch as an experiment (since it allows us to print variable names and is a bit closer thus to the original program), but have no strong opinion that it needs to stay that way if that turns out to be worse.

@JeffBezanson
Copy link
Member

I think that's a reasonable change.

@vtjnash vtjnash merged commit 68db871 into master Feb 16, 2019
@vtjnash vtjnash deleted the jn/codeinfo-plus branch February 16, 2019 09:29
giordano pushed a commit that referenced this pull request Oct 31, 2023
`sparam_syms` was removed in
#31015.

---------

Co-authored-by: Jameson Nash <vtjnash@gmail.com>
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.

code_warntype output has become unreadable
3 participants