utahplt / TrackedFloats.jl

Julia library providing tracking of floating point errors through a program resources
https://juliahub.com/ui/Packages/FloatTracker/dBXig/1.0.0
MIT License
27 stars 3 forks source link

Guidance + tooling around handling functions that dispatch on a particular type #22

Open ashton314 opened 1 year ago

ashton314 commented 1 year ago

See feedback from RxInfer.jl#116 and their datavars comment.

During the development of FloatTracker we ran into lots of functions like floatmin, eps, one, etc. (see TrackedFloat.jl for more examples, search "Type-based functions") that we had to wrap specifically to handle the TrackedFloatN types.

We should

  1. Improve the docs on handling functions like this in third-party code
  2. Maybe provide some tooling to make that work easier/more automatic for users of FloatTracker