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

Dec
23
answered If mutual exclusion is not implemented, how would we detect a race condition?
Dec
19
comment How to model an arbitrary number of types
It sounds to me as though you're afraid of your compiler. If you can partition your code, so that the behavior of your nucleotides is nicely encapsulated, then there's no reason not to recompile the capsule and link it with the precompiled rest of your program. At that point, you can use a SMALL program to prepare the guts of the capsule, working from a mini-language. LISP excels at this kind of things, but you can do it in other languages as well.
Dec
10
answered When was source control invented?
Dec
9
comment Does a GPL Bison grammar infect my application?
Bison generates parsers for LALR(1) languages. If your language is inherently LALR(1), there are probably some fairly serious crocks in it that make it difficult to USE as well as difficult to parse. You will probably get a lot more lift from simplifying your language enough that you can write a straightforward recursive descent parser (RDP) for it. RDPs tend to be significantly easier to write and maintain than LALR(1) grammars and parsing actions.
Nov
26
answered How strict should you be about indentation/white space?
Nov
24
awarded  Nice Answer
Oct
28
comment Variable declaration versus assignment syntax
If by type inference you mean implicit declaration of variables, may I refer you to the ALGOL committee's remarks? They roundly boxed Tony Hoare's ears when he suggested adding FORTRAN-style implicit declaration to ALGOL. This was before the (possibly apocryphal) story of a lost interplanetary probe from a typographical error combined with implicit declaration, that converted a FORTRAN DO-statement into a legal assignment statement.
Oct
26
awarded  Enlightened
Oct
23
comment Setter Validation can affect performance?
+1 for "Is it worse than bad data...".
Oct
21
comment Why do programming languages allow shadowing/hiding of variables and functions?
@Phil, excuse me for disagreeing with you, but the OP asked about "hiding / shadowing of variables or functions", and the words "parent", "child", "class", and "member" appear nowhere in his question. That would seem to make it a general question about name scope.
Oct
21
awarded  Nice Answer
Oct
21
comment Why do programming languages allow shadowing/hiding of variables and functions?
@ThiagoSilva: And then your language has to have a way to tell the compiler that this module IS allowed to access that module's "frammis" variable. Do you allow someone to hide/shadow an object he doesn't even know exists, or do you tell him about it to tell him why he's not allowed to use that name?
Oct
21
comment Why do programming languages allow shadowing/hiding of variables and functions?
Actually, no, it is NOT easier to implement hiding and shadowing. It is actually easier to implement "all variables are global". You only need one namespace, and you ALWAYS export the name, as opposed to having multiple namespaces and having to decide for each name whether to export it.
Oct
21
answered Why do programming languages allow shadowing/hiding of variables and functions?
Oct
21
revised Why does a proportional controller have a steady state error?
Expansion and correction
Oct
20
awarded  Fanatic
Oct
19
answered Why does a proportional controller have a steady state error?
Oct
13
comment Using Functions for Never-Repeated Code
@DonalFellows, if the window of market opportunity is perceived to be that short, your company probably should reconsider whether it should be competing in that niche.
Oct
13
answered Using Functions for Never-Repeated Code
Oct
11
answered How small is the footprint of a small C compiler?