OT: Leaving Rust gamedev after 3 years

monkyyy crazymonkyyy at gmail.com
Mon Apr 29 17:52:12 UTC 2024


On Monday, 29 April 2024 at 14:58:00 UTC, bachmeier wrote:
> Setting x to 0 is no better for correctness than setting it to 
> a random number. Either way, you're pretending the compiler 
> knows what it should be, and that's impossible.

> *no better*

trade offs and downsides do not imply relativism

"different countrys use different drinking ages, lol laws have no 
right answers, better legalize cannibalism"

0 is correct for sum, 1 is correct for products, random numbers 
are even ok; yes so there tradeoffs between any of these; but nan 
is a black hole specifically designed to break everything

For real time systems the end up making calls to gpus that do 
nothing with nans; all floating point math will have 1000's of 
math operations that will probably never have a type error or a 
crash where partial solutions such damping math break only for 
nans.


More information about the Digitalmars-d mailing list