5,960 reputation
1640
bio website
location Los Angeles, CA
age
visits member for 4 years, 1 month
seen 1 hour ago

I love strange shrimp.

eh, string stream.


Jul
4
comment Debugger for file I/O development?
Was the decoder implemented with assertions and unit tests? Does it work correctly on smaller files and test samples? Do you have access to a "reference implementation"?
Jul
4
comment Debugger for file I/O development?
My XML suggestion is only suitable for the higher-level overview of the file structure.
Jul
4
comment Debugger for file I/O development?
I'm sure there are Linux equivalents. Feel free to edit / add examples to my answer.
Jul
4
revised Debugger for file I/O development?
added 586 characters in body
Jul
4
answered Debugger for file I/O development?
Jun
20
awarded  Nice Answer
Jun
19
comment Are too many assertions code smell?
If an error condition or invalid argument condition can be caused by the user (caller) of the public interface, this should be given the full proper error-handling treatment. This means formatting an error message that is meaningful for the end-user, accompanied with error code, logging, and attempts to recover data or restore to a sane state. Substituting proper error handling with assertions will make the code less robust and harder to troubleshoot.
Jun
13
comment Is it ok to replace optimized code with readable code?
@Coder: if the native code will be called from a .Net environment, overuse of stack-based arrays (those that occupy large amounts of thread stack, i.e. esp) will make the code fragile, because .Net threads have a lower default per-thread stack size.
Jun
8
awarded  Caucus
May
27
comment random generator not good enough?
Kernel randomness (and/or hardware RNG) are used as feedstock for PRNG. (This is because Kernel random sources cannot provide random numbers at high bitrates.) correct me if i'm wrong
May
26
comment Is there a standard pseudocode for parallel algorithms?
+1: It depends on what level you need to reason about the code. For very high level expression of parallelizability, a parallel_for maybe be all you need. Then, control dependency and data dependency can be added. At the next level of detail, the data structures and mechanisms responsible for carrying out those dependencies are specified. Finally, the state transitions for each executable core is spelled out. After several more levels (communicating sequential process) you may be able to reason about the correctness of the code. (Disclaimer: I'm not a CS major, but is in a related field)
May
25
comment Parallel programming library? (+ some features)
Please add Intel Concurrent Collections (CnC) to the list. Overview: software.intel.com/en-us/articles/… What makes it different from existing libraries: it provides constructs to model both control dependency and data dependency. software.intel.com/file/42856
May
14
comment Data Structures usage and motivational aspects
You missed one: HashMap. If you're into parallel computing, some concurrent data structures (e.g. Blocking queue) are also essential.
Apr
18
comment Patterns for Handling Changing Property Sets in C++
Supporting newer types of properties would only be possible by defining a serialization to a known type (such as a string or a byte stream). Microsoft Structured Storage was one attempt to solve this universal problem, and you could have guessed the outcome: people are left with a binary file that can only be opened by "a COM class with GUID 0123-4567-89ab-cdef1023456..." and nobody know what DLL can decode that file. (The newer attempt is known as XML.)
Apr
18
comment Patterns for Handling Changing Property Sets in C++
regarding stackoverflow.com/questions/235376/c-dynamic-class-dynamic-hack, can you give the reasons of your dissatisfaction with the existing answers?
Apr
14
comment Generalize, or Fix The Problem?
possible duplicate of Writing robust code vs. overengineering
Mar
23
awarded  Nice Answer
Mar
22
comment Are there any tools that allow you to track and manage test cases and test execution?
does TestLink fall into this category?
Mar
11
comment Establish/meet deadlines when I am constantly working with unfamiliar platforms and frameworks
Time to talk to your supervisor. Depending on whether there's light at the end of the road, you may want to change to another job where there's more stability and time to learn.
Mar
11
comment What is beautiful code in C++, and why do most programmers care that much?
Good code and good API have a lot of things in common. Good OOP code should have an interface that looks exactly like a well-designed API.