Doing First Grade Math in Rust's Type System
fprasx.github.io
Doing First Grade Math in Rust's Type System
1–10 of 43 posts
Re: Doing First Grade Math in Rust's Type System
#2Re: Doing First Grade Math in Rust's Type System
#3Re: Doing First Grade Math in Rust's Type System
#4Can someone give an example of a useful application of this technique? Honest question, if it is just for fun that is fine with me.
Re: Doing First Grade Math in Rust's Type System
#5Can someone give an example of a useful application of this technique? Honest question, if it is just for fun that is fine with me.
https://doc.rust-lang.org/reference/items/generics.html#cons...
They came with 1.51: https://blog.rust-lang.org/2021/03/25/Rust-1.51.0.html
Re: Doing First Grade Math in Rust's Type System
#6"is much faster and the one you should probably use in practice" Where is this useful in practice? Exercises maybe. Like doing planks for example. I have never needed to plank "in practice" other than to exercise.
They came with 1.51: https://blog.rust-lang.org/2021/03/25/Rust-1.51.0.html
Re: Doing First Grade Math in Rust's Type System
#7Can someone give an example of a useful application of this technique? Honest question, if it is just for fun that is fine with me.
Here[1] is an example in C++ but given the article it seems you could do something similar in Rust.
[1]: https://github.com/tmolteno/template-fft/blob/master/fft_rea...
Re: Doing First Grade Math in Rust's Type System
#8"is much faster and the one you should probably use in practice" Where is this useful in practice? Exercises maybe. Like doing planks for example. I have never needed to plank "in practice" other than to exercise.
Re: Doing First Grade Math in Rust's Type System
#9"is much faster and the one you should probably use in practice" Where is this useful in practice? Exercises maybe. Like doing planks for example. I have never needed to plank "in practice" other than to exercise.
You need it every day to, you know, hold that meat on your carcass.
Re: Doing First Grade Math in Rust's Type System
#10Can someone give an example of a useful application of this technique? Honest question, if it is just for fun that is fine with me.
While not nearly as involved, I've seen similar-ish techniques used for FFTs and similar algorithms, in order to precompute constants. Here[1] is an example in C++ but given the article it seems you could do something similar in Rust. [1]: https://github.com/tmolteno/template-fft/blob/master/fft_rea...