Earlier quoted context omitted.
I learned Math in a french-system school and yes, that's definitely a much better notation in my opinion. The difference between [] and () is not immediately clear, whereas [a,b] versus ]a,b[ makes it obvious that one includes a and b while the other does not. It also makes it easy to remember "open" and "closed" and what they mean in terms of whether or not the interval bounds are included or excluded
I don't know if it's very intuitive given that a and be are still inside the ][. Maybe a]..[b would make it clearer?
Cryptic genetic variation in software: hunting a buffered 41-year-old bug
21–30 of 50 posts
Re: Cryptic genetic variation in software: hunting a buffered 41-year-old bug
#22Earlier quoted context omitted.
I learned Math in a french-system school and yes, that's definitely a much better notation in my opinion. The difference between [] and () is not immediately clear, whereas [a,b] versus ]a,b[ makes it obvious that one includes a and b while the other does not. It also makes it easy to remember "open" and "closed" and what they mean in terms of whether or not the interval bounds are included or excluded
I don't know if it's very intuitive given that a and be are still inside the ][. Maybe a]..[b would make it clearer?
Re: Cryptic genetic variation in software: hunting a buffered 41-year-old bug
#23That was a really interesting read, and very well written. I wonder if anyone can clear this up though... I find the terminology of open and closed intervals contradictory to their meaning. Does anyone know why they are described like this? `Closed` makes me think shut or not-including - however it includes its endpoints. `Open` makes me think inclusive - yet does not include its endpoints.
From a real analysis standpoint... the definition of a 'closed set' in an N-dimensional metric space (of which Euclidean space, i.e. normal space, is an example) is as follows: a set C is 'closed' if and only if, given any sequence of elements (x_n) converging on x, such that (x_n) is a subset of C, it follows that x is also in C. Under this definition, 'closed' makes sense in the larger context, since in mathematics…
Re: Cryptic genetic variation in software: hunting a buffered 41-year-old bug
#24I wonder about the resolution: was snorm() reimplemented correctly, or was an RNG with the 'wrong' interval supplied?
Re: Cryptic genetic variation in software: hunting a buffered 41-year-old bug
#25Earlier quoted context omitted.
From a real analysis standpoint... the definition of a 'closed set' in an N-dimensional metric space (of which Euclidean space, i.e. normal space, is an example) is as follows: a set C is 'closed' if and only if, given any sequence of elements (x_n) converging on x, such that (x_n) is a subset of C, it follows that x is also in C. Under this definition, 'closed' makes sense in the larger context, since in mathematics…
Out of curiosity, do you have any examples or references to something with examples of sets that are neither open nor closed?
Re: Cryptic genetic variation in software: hunting a buffered 41-year-old bug
#26That was a really interesting read, and very well written. I wonder if anyone can clear this up though... I find the terminology of open and closed intervals contradictory to their meaning. Does anyone know why they are described like this? `Closed` makes me think shut or not-including - however it includes its endpoints. `Open` makes me think inclusive - yet does not include its endpoints.
Re: Cryptic genetic variation in software: hunting a buffered 41-year-old bug
#27Re: Cryptic genetic variation in software: hunting a buffered 41-year-old bug
#28Re: Cryptic genetic variation in software: hunting a buffered 41-year-old bug
#291) Algorithm FT says:
1. Generate u. Store the first bit of u
as a sign s (s=0 if u=1/2).
and yet the C code implements if ( u
2) I can't be sure of the following w/o access to doc. But i4_uni() says a uniform distribution over (1, 2147483562)
which, offhand, is suspicious. A distribution over positive integers would probably want to use all available values in a 32-bit signed int, so it would most likely end at 2^31 -1 which is 2147483647, and not the value given.Re: Cryptic genetic variation in software: hunting a buffered 41-year-old bug
#30That was a really interesting read, and very well written. I wonder if anyone can clear this up though... I find the terminology of open and closed intervals contradictory to their meaning. Does anyone know why they are described like this? `Closed` makes me think shut or not-including - however it includes its endpoints. `Open` makes me think inclusive - yet does not include its endpoints.
From a real analysis standpoint... the definition of a 'closed set' in an N-dimensional metric space (of which Euclidean space, i.e. normal space, is an example) is as follows: a set C is 'closed' if and only if, given any sequence of elements (x_n) converging on x, such that (x_n) is a subset of C, it follows that x is also in C. Under this definition, 'closed' makes sense in the larger context, since in mathematics…