Reputation
13,355
Next privilege 15,000 Rep.
Protect questions
Badges
5 30 46
Newest
 Nice Answer
Impact
~428k people reached

Oct
13
answered Using Functions for Never-Repeated Code
Oct
11
answered How small is the footprint of a small C compiler?
Oct
4
comment Is it OK to use same variable to store similar stuff sequentially?
Yes, @DocBrown, some of us really do. It helps us remember that those variable are SHORT-TERM, and it helps the compiler do live-variable analysis for register allocation.
Oct
4
comment Making some methods mostly contain method calls, while others doing “the lowest level” work
@k3b: True. If you're going to insist on doing C++, or some other allegedly object-oriented language, and you insist on organizing things into classes, then layers are disjoint sets of classes. (Sets of classes, as opposed to single classes, because you want to organize things at each layer. Disjoint, because layers are not allowed to overlap.)
Oct
3
answered Making some methods mostly contain method calls, while others doing “the lowest level” work
Oct
3
comment What is the most orthogonal programming language?
@Kheldar, no programming language can prevent management f***ups like the one that was responsible for the Ariane V failure. You should do your homework on this one.
Sep
30
answered Optimizing code generation for expressions in a compiler
Sep
28
comment Can compilers check whether certain axioms hold for a user defined type?
Actually, in most cases, they can. This is what static analysis is all about. I recently spent a couple of days in training on a new static analysis tool, for C. I'd previously (late 1970s) spent time on a research project on formal verification. The static analysis tool was doing a lot of what the verification tools did, over 30 years ago, and the old tools did a much better job.
Sep
28
comment Can compilers check whether certain axioms hold for a user defined type?
Key word "all". In MOST cases, on REAL code, it is trivial to determine that the code will or will not terminate, and that it does or does not meet the specification.
Sep
28
awarded  Yearling
Sep
26
revised Drawing a biggest possible circle inside a polygon - JSXGRAPH
fix typo
Sep
26
answered Drawing a biggest possible circle inside a polygon - JSXGRAPH
Sep
23
awarded  Enlightened
Sep
23
awarded  Nice Answer
Sep
23
answered Why normalization improves numerical precision?
Sep
19
answered Are there any valid use-cases for eager boolean evaluation?
Sep
18
answered Path to learning compiler design
Sep
18
comment In what situations does it make sense to use an enumeration when writing object-oriented code?
It is interesting to note that, when Nicklaus Wirth tackled object-oriented programming, in his Oberon language, enumerations were one of the things he dropped from the language, because he couldn't find an acceptable way to allow "derived objects" to extend the enumeration.
Sep
16
comment Is it ever OK to commit non-working code?
@ThomasOwens, with all due respect, if your DVCS admin set your system up so that local repositories or branches are not backed up, your DVCS admin is an idiot and needs to find a new job more suited to his talents ("Would you like fries with that?"). If your DVCS admin did it that way because your IT guys told him to, that goes for your IT organization as well. If anything, this is arguably an indictment of the entire DVCS concept: committing code to VCS should BY DEFINITION mean committing it to automatic backup.
Sep
15
revised Why is this syntax convention?
Add fair-use quote from interview, rework remainder of answer.