Open patrick-nicodemus opened 2 months ago
This reminds me of #1567, although in that case it was eventually suggested to use a command for the repl and futhark literate
instead of an attribute. I do think it makes sense to have a formatted trace though.
And it should probably be the same formatting language. The #[trace]
attribute is a little trickier, because we need to generate C code for it.
If my variable is less than 10^-8 or so, then the #[trace] attribute just prints:
It would be helpful if it was available in scientific notation. I would like to see the value of the number out to so many significant digits. At the least I would like to know whether the value is zero.