Reputation
13,601
Next privilege 15,000 Rep.
Protect questions
Badges
5 31 49
Newest
 Nice Answer
Impact
~490k people reached

Oct
20
comment How to write a very basic compiler
Mandatory declaration before use dates back to ALGOL. Tony Hoare got his ears pinned back by the ALGOL committee when he tried to suggest adding default type rules, similar to what FORTRAN had. They already knew about the problems this could create, with typographical errors in names and default rules creating interesting bugs.
Oct
20
comment How to write a very basic compiler
PASCAL was specifically designed with one-pass compilation and linking in mind. Wirth's compiler book mentions multipass compilers, and adds that he knew of a PL/I compiler that took 70 (yes, seventy) passes.
Oct
7
comment Modifying a GNU LGPL v 2.1 code and license
@BasileStarynkevitch, your comment really deserves to be made into an answer.
Oct
1
comment Why do programming languages allow shadowing/hiding of variables and functions?
@dylnmc, there's no hurry. We're only coming up on the movie's 50th birthday. It could be worse. We're less than 3 years away from the 50th anniversary of the first manned landing on the moon, which really ought to be celebrated by people ON the moon. (What's really bad is that we're about to celebrate the 50th anniversary of the departure from the lunar surface of the LAST men to walk on the moon, and that is an anniversary that in my opinion should NEVER be allowed to happen.)
Oct
1
comment Why do programming languages allow shadowing/hiding of variables and functions?
@dylnmc, I did not expect to live long enough to encounter a whippersnapper young enough not to get an obvious "2001: A Space Odyssey" reference.
Sep
28
awarded  Yearling
Sep
19
answered Writing your test assertions in your function comments (just before the code)?
Sep
16
comment Does anyone still use logic analyzers for debugging real time systems?
I'll add this. I'm starting to see mixed-signal digital storage oscilloscopes, that combine an 8- or 16-channel logic analyzer with a 2- or 4-channel digital storage scope. This sort of thing can be really useful for certain kinds of digital audio application.
Sep
10
comment Writing comments for some small code with rather large background
Some years back, I had to write a full printer page (some 60 lines) of comments, explaining continuation-passing style in C, to explain what was going on with a couple of three-to-five line routines. The comment text ended with a pointer to SICP.
Sep
9
awarded  Informed
Aug
17
comment COCOMO II SLOC count for web application development
@MichaelT: Can we agree that the same comment applies to Function Points, doubled and vulnerable? (Recall your comment about Function Points REQUIRING a high dollar consultant, which is where this discussion started.)
Aug
17
comment COCOMO II SLOC count for web application development
@MichaelT: If you swing a hammer, and you don't know how to swing it, the odds are good that you're going to hit your thumb. Same thing goes with software estimates.
Aug
17
comment COCOMO II SLOC count for web application development
@MichaelT: If your chosen tool can only be used with the help of a dedicated high-dollar consultant, you probably chose the wrong tool. As an alternative, consider Detailed COCOMO, which still uses SLOC, but allows you, among other things, to partition your estimate by, say, implementation language, do individual estimates for "subsystems" in each language, then roll up a final total estimate.
Aug
17
comment COCOMO II SLOC count for web application development
@MichaelT, "function points", last I looked, were not at all well-defined, and they are not at all amenable to post-construction counting. The reasons SLOC keeps winning these wars is that (a) SLOC are almost ridiculously easy to count, and (b) SLOC is very strongly correlated to everything else that has been proposed.
Aug
14
revised Program like NASA?: Margaret Hamilton's Three Primitive Control Structures
Add "(or more)" in first sentence.
Aug
14
comment Program like NASA?: Margaret Hamilton's Three Primitive Control Structures
"Scatter/gather" is a very generic term these days. In this case, I meant that the manager send some stuff to A and some other stuff to B, runs both A and B, and packages up the results from both of them. "Scatter/gather" traditionally meant to take a large parallelizable task divide it up iinto pieces, "scatter" the pieces among several processors, then "gather" the individual results into one large object. I know of no open-source project that implements these primitives, as this is work that was done in the mid-to-late 1960s.
Aug
14
reviewed Edit Program like NASA?: Margaret Hamilton's Three Primitive Control Structures
Aug
14
revised Program like NASA?: Margaret Hamilton's Three Primitive Control Structures
Correcting Or structure understanding - Thank you to whoever suggested it.
Aug
13
revised Program like NASA?: Margaret Hamilton's Three Primitive Control Structures
Correct paper title
Aug
13
answered Program like NASA?: Margaret Hamilton's Three Primitive Control Structures