11,979 reputation
12555
bio website
location Seattle, WA
age 58
visits member for 3 years, 11 months
seen 8 hours ago

Sep
12
comment Lead Programmer or What?
If I'm interviewing you and I see "Lead Programmer" on your resume. I'm going to ask you questions like "How big was your team?" and "What were your major accomplishments as lead?". If it then comes out that that you were really the only programmer on the project, I'm going to then assume that you are a resume padder, and heavily discount the rest of your resume. That's just me, but I suspect a lot of other folks feel similarly. I get that you need to portray yourself in a positive light, but this is getting close to misinformation.
Sep
4
comment Why aren't we building and using parallel processors *meant* for general computation?
But is your task on the server CPU bound or IO bound? Having many processors won't help your throughput much if all of the processors are twiddling their thumbs waiting for the network or the disk to respond.
Sep
2
comment Why aren't we building and using parallel processors *meant* for general computation?
@HighPerformanceMark, well sure, but there we're talking about 2-6 cores. GPU and systems like the phi use thousands of cores simultaneously.
Sep
2
comment Why aren't we building and using parallel processors *meant* for general computation?
We are: see en.wikipedia.org/wiki/Xeon_Phi, for example. As Telastyn suggests ordinary consumers just don't have much use for them.
Aug
31
comment Algorithm to generate N random numbers between A and B which sum up to X
@svick, thats a solution to a different problem, not a solution to the stated problem. The elements of the quintuple are going to be strongly correlated, not IID as the stated problem requested.
Aug
29
comment Where is the 'this' variable stored?
It is calculated at runtime, just like any other address. Are you familiar with the & operator?
Aug
29
answered Where is the 'this' variable stored?
Aug
28
comment Scrum: how to integrate work done by an overachieving developer out of band?
Wait, I thought the mantra of agile development was "people, not process"?
Aug
24
comment Algorithm to generate N random numbers between A and B which sum up to X
The trouble is that your problem as stated simply doesn't have a solution! There are an infinite number of choices for the first three numbers where no choice for the second two numbers will give a sum of 1 (-0.9, -0.8, -0.7 for example). The headache is your requirement that each of the numbers comes from the same range, but that they have a fixed sum. Because of the fixed sum, as soon as you pick a number you are changing the feasible range of the following numbers, so you have contradictory requirements.
Aug
24
comment Algorithm to generate N random numbers between A and B which sum up to X
The numbers can't be simultaneously completely random and guaranteed to add up to 1. You could pick 5 random numbers between -1 and 1, and then normalize their sum to 1 after the fact. That is, divide each of the 5 random numbers by their sum before returning them.
Aug
10
comment C/C++: Which conversion warnings make sense in practice?
It's impossible to reduce this to a rule, it depends on the circumstances. For example, I work in bioinformatics and warnings about signed vs. unsigned comparisons have to be taken very seriously, because strings larger than 2^32 are common, and your loop would cause a runtime error when i overflowed. time, Casts are useful as a form of documentation to let future readers know that you are aware of the conversion, and are doing it deliberately, and not just being feckless.
Aug
8
answered Is the inconvenience about merging in SVN prior to v1.5 obsolete by now when lack of metadata isn't the case anymore?
Aug
7
revised In C++11 can Auto be used to get around mis-casting of void * parameters in functions?
added 171 characters in body
Aug
6
revised In C++11 can Auto be used to get around mis-casting of void * parameters in functions?
added 3 characters in body
Aug
6
revised In C++11 can Auto be used to get around mis-casting of void * parameters in functions?
added 593 characters in body
Aug
6
revised In C++11 can Auto be used to get around mis-casting of void * parameters in functions?
added 29 characters in body
Aug
6
answered In C++11 can Auto be used to get around mis-casting of void * parameters in functions?
Aug
6
comment Where are C variables declared
@floopdagoop, -shrug- it's a popular convention not a language specification. My editor can jump to a declaration in a key stroke. I still find that more distracting then looking up a couple of lines. There is also the matter that the shorter the lifetime of a variable, the less chance there is that your code is manipulating it somewhere off the current screen. Out of sight, out of mind.
Aug
6
revised Learning but then forgetting
added 3 characters in body
Aug
6
comment Where are C variables declared
The reason the standard changed was because the consensus was that declaring variables as near as possible to their first use made code more readable. Consider: you are looking at an assignment to 'foo'. Which do you think would be more disruptive to your train of thought: looking up two lines to see that 'foo' is an int, or scrolling up a screen and a half for the same information?