926 reputation
59
bio website
location
age
visits member for 3 years, 6 months
seen 14 hours ago

1d
comment Merge sort versus quick sort performance
Also note that once your data is larger than the CPU's cache, the "big O" figures mentioned here become worse than nothing (misleading) as they count "operations" (which aren't important) and not cache misses (which are far more important).
1d
comment How to leave my first job?
@TheRiddl33r: The reality is, people with good jobs rarely leave, and if they do their jobs get filled by people with experience. For bad jobs (e.g. employers that nobody likes) it's the opposite. The end result is that bad jobs are easy to find (and good jobs aren't, especially if you don't have much experience). This applies to all industries (including social service).
2d
awarded  Pundit
2d
comment Function guaranteed to never return the same value twice
Was it a trick question? For example, a function containing an infinite loop will never return the same value twice..
Nov
21
comment Why the question “give five things you hate about C#” is so difficult to answer during an interview?
@MainMa: It has nothing to do with hating (or not hating) some of the aspects of a programming language; and everything to do with going against your natural instincts and admitting it. When asked, the first thing you do is try to guess why the interviewer is asking, then you assume they don't want to employ someone who doesn't like C#, then you pretend you can't think of anything wrong with C# (even if it means lying).
Nov
21
comment Why the question “give five things you hate about C#” is so difficult to answer during an interview?
In a job interview, "Whoever gets the job will be using C#" followed by "List 5 things you hate about C#" is like asking people if they'd like to retract their job application.
Nov
20
comment Why do functional programs have a correlation between compilation success and correctness?
Better anology: Functional programming is like a help desk without customers - everything is wonderful (as long as you don't question the purpose or efficiency).
Nov
20
comment How to solicit new product recommendations from existing clients?
Have you considered asking people who are not current customers why they aren't current customers?
Nov
20
comment How to solicit new product recommendations from existing clients?
Interpreting silence. Possible interpretations include, "We don't care about your product", "We think your product is awesome exactly how it is now", "I don't have time for (what I've incorrectly assumed is) an annoying marketing pitch" and "My only suggestions are things you won't want to hear, like removing subscriptions".
Nov
19
comment Programming CPU Emulator Functional Style
This would work well, and has an additional benefit - on modern (2 GHz+) CPUs, it'd come quite close to emulating the performance of a (5 to 10 MHz) 8086. ;-)
Nov
18
answered What is the simplest human readable configuration file format?
Nov
8
comment Why is SQL's BETWEEN inclusive rather than half-open?
@BasilBourque: This may be due to infinite precision - e.g. lunch is between noon and 12:59:99.9999999999999....
Nov
3
awarded  Citizen Patrol
Oct
26
revised Algorithm to “de-rasterize” a voxel image of a polyhedron
Added more notes!
Oct
26
revised Algorithm to “de-rasterize” a voxel image of a polyhedron
Made "note 2" italics for consistency
Oct
26
answered Algorithm to “de-rasterize” a voxel image of a polyhedron
Oct
13
comment How do you solve issue of consistency in concurrent and distributed application (built around Bankers Dilemma)?
@Integralist: If this wasn't a distributed system; the same approach ("shared nothing, with messaging") still works fine; but there may be completely different approaches that have less overhead (possibly including shared memory and locks, and transactional memory). Of course a solution for a specific problem depends on the specific problem. For "banker's dilemma" and nothing else you'd probably just use an atomic variable (and a lock-less "compare and swap" style thing).
Oct
13
comment How do you solve issue of consistency in concurrent and distributed application (built around Bankers Dilemma)?
@Integralist: For distributed systems there is no global data and no shared memory at the lowest level, and it's a bad idea (for performance and fault handling) for lower levels to emulate shared memory for higher levels. Typically each piece of data has an owner (where the owner is a thread or process on a specific computer); and where threads/processes on different computers communicate via. messaging (and not shared memory).
Oct
13
comment How do you solve issue of consistency in concurrent and distributed application (built around Bankers Dilemma)?
@Integralist: The "banker's dilemma" is not about actual banking, in the same way that "dining philosophers" has nothing to do with dining or philosophers, and "baker's algorithm" isn't about baking. They are analogies used for reasoning about various concurrency issues and (like all analogies) not literal.
Oct
12
revised How do you solve issue of consistency in concurrent and distributed application (built around Bankers Dilemma)?
added 1044 characters in body