337 reputation
28
bio website
location Israel
age
visits member for 2 years, 8 months
seen Jul 14 at 6:20

Jan
19
answered What is casting supposed to mean?
Dec
4
awarded  Notable Question
Nov
12
answered How do web servers enforce the same-origin policy?
Jul
8
comment Can compilers and interpreters have bugs, and what can we (as users) do to deal with them?
They can even have bugs which are not present in the source, as Ken Thompson presented
Apr
25
comment How to reject a code review that you believe is unnecessary?
Excellent point, but I fail to understand how the example at the bottom is related (I don't claim that it's unrelated, off course, just point out my lack of understanding of the relation).
Apr
3
comment UDP order of packets with direct connection
Most probably they'll arrive in order. But as Patrik says, it isn't guaranteed, so don't rely on it.
Apr
3
comment How to deal with warnings in a legacy project
Ignoring warnings on legacy code is good if this code is never touched. In this case, if it works, all is well. But if occasional maintenance is needed, you really want warning free code.
Apr
3
comment How to deal with warnings in a legacy project
@mattnz, Breaking the code while fixing the warning is indeed the main concern here. Yet, I think there's no other way - either fix them and treat future ones as errors, or ignore them (and occasionally find bugs, about which you were warned).
Apr
2
awarded  Nice Answer
Apr
2
awarded  Yearling
Apr
2
awarded  Teacher
Apr
2
answered How to deal with warnings in a legacy project
Mar
18
comment How to prevent my executable being treated from AV like bad or virus?
You could start removing functionality from your code, until AV is satisfied, or no code is left (whichever comes first). The part, whose removal made AV happy, should be checked.
Nov
20
comment What does it mean that “language A is written in language B”?
@OldCurmudgeon, and C is entirely written in C (I doubt if there's any C compiler not written in C, except K&R's first).
Jun
20
comment Why is x=x++ undefined?
You indeed show a case where my suggestion results in more machine operations, but it looks insignificant to me. And the compiler still has some freedom - the only real requirement I add is to store b before a.
Jun
20
comment Why is x=x++ undefined?
Very good explanation of the issue. I disagree about breaking legacy applications - the way undefined/unspecified behavior is implemented sometimes changes between compiler version, without any change in the standard. I don't suggest to change any defined behavior.
Jun
20
comment Why is x=x++ undefined?
@Secure, Your distinction is probably correct, but I don't think it matters much - this rule is a big source of misunderstanding. I do think the rule is hard to explain - the kind of thing a person understands when you explain, possibly remembers, and fails to connect with real code when it's relevant.
Jun
19
awarded  Popular Question
Jun
19
awarded  Nice Question
Jun
19
comment Why is x=x++ undefined?
@KonradRudolph, I keep hearing about optimizations, but can't see anything really convincing. The compiler can do lots of useful reordering even if the language mandates an order (e.g. a=3;b=5; can be flipped). Doing a few more reorderings within complicated expressions doesn't seem like a big deal.