Should `min.(1,f)` be broadcasting as `broadcast(x->min(1,x),f)`?

So don’t redefine broadcast as I mentioned?

I hope you mean Vector first, but

  1. No it won’t be faster (if it is, it’s a performance bug).
  2. If you are just defining optimization, it is perfectly valid and you are not supposed to be able to observe the difference.

The high performance part of julia is a statically compiled language.

That’s exactly why we document and comment in all different places so that people don’t do this.