Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upLint unstable floating point computations #346
Comments
llogiq
added
E-hard
T-AST
L-lint
labels
Sep 23, 2015
This comment has been minimized.
This comment has been minimized.
|
Hi |
This comment has been minimized.
This comment has been minimized.
|
I'm fine with this being a separate lint, really Why does it need a database? |
This comment has been minimized.
This comment has been minimized.
|
The database contains cached expression replacements eg. |
This comment has been minimized.
This comment has been minimized.
|
We could probably use rust-phf to in-memory that database? figure out a hashable representation for it and go! |
This comment has been minimized.
This comment has been minimized.
|
Everyone is just collaborating here |
This comment has been minimized.
This comment has been minimized.
|
I think we should keep the database, using |
This comment has been minimized.
This comment has been minimized.
|
Isn't the discovery thing slow? Perhaps we could build up a good database by merging all the existing Haskell-Herbie stuff and running the slow rust-herbie on a ton of crates in the ecosystem? |
This comment has been minimized.
This comment has been minimized.
|
Currently I've only used the database from Haskell-Herbie but I plan to run it on “a ton of crates in the ecosystem” of course |
This comment has been minimized.
This comment has been minimized.
|
fyi you're getting some well-deserved publicity here |
gnzlbg
referenced this issue
Jan 14, 2018
Closed
Add lint for numerically unstable floating-point expressions #2351
This comment has been minimized.
This comment has been minimized.
|
I'd like this lint to be available in clippy; otherwise it just doesn't get used. Are there any other lints that could benefit from a dependency on |
llogiq commentedSep 23, 2015
Something along the lines of Herbie for Haskell, but without the auto-fixing – perhaps we can port the transformations to give (very) good suggestions.