Julia: Remove at-fastmath from base

Created on 11 Jun 2020  路  1Comment  路  Source: JuliaLang/julia

Ref. comments from issue, which echo my feelings as well:

Getting rid of @fastmath might be good, not because of this issue, but because it's too loosely defined. People use it for all sort of different reasons (which all make code run "fast"). But before doing/evaluating that the replacement should go in first. e.g. #31862 and from the way people would like to use these this is certainly not trivial, and it'll likely always involve authors of the math function to do the right thing.
@yuyichao

There are other issues: @fastmath operates syntactically which can cause unexpected reults (#26828); --math-mode=fast doesn't do syntactic rewriting, instead just enables the compiler optimizations, which leads to other bizarre behavior (#30073). ..... Both are giant footguns.
@simonbyrne

It seems like this could only go in 2.0

maths

Most helpful comment

We could make it a no-op pre 2.0 though since code would still work.

>All comments

We could make it a no-op pre 2.0 though since code would still work.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

manor picture manor  路  3Comments

omus picture omus  路  3Comments

sbromberger picture sbromberger  路  3Comments

TotalVerb picture TotalVerb  路  3Comments

iamed2 picture iamed2  路  3Comments