8,485 reputation
11738
bio website
location
age
visits member for 3 years, 10 months
seen 6 hours ago

Jan
22
comment What are the different ATA modes?
I'm voting to close this question as off-topic because it's not about programming. The information you want would be in the ATA standard, which is maintained by T13.
Jan
22
comment Understanding the concept of “arguments” and “parameters” in C language as explained in K&R The C Programming Language
@user31782: If you don't know what a cast is, you need to read the rest of the book, or at least the next 20 pages.
Jan
20
comment Does Object Orientation require the concept of inheritance?
Kay also said that the Internet is possibly the only real object-oriented system in working order.
Jan
15
comment Curiosity: Unassembled asm in Windows Bootloader
That's not assembly, it's format strings for printf() that probably get used when something doesn't go right.
Jan
14
comment Are `switch` statements generally used wrong?
What is it about putting a break at the end of every case that makes it not OK? Your first example could be done with if statements, too.
Jan
13
comment What's the best way to synchronise an event over multiple processes?
I'd suggest that instead of trying to achieve "perfect" sync, you instead figure out a requirement for acceptable sync and work back from that. Humans start having subconscious problems with sync when the audio gets beyond about 20 milliseconds ahead of the picture or 40 milliseconds behind it, which leaves you an eternity of margin for error from a computing standpoint. Even if propagation times in a LAN environment are a few times worse than normal, you may find that sending two messages will get the job done. Measure that out before getting wrapped around the axle with anything fancier.
Jan
11
comment Should you test development features?
That depends: do you need those features to work correctly?
Jan
7
comment Why would a program require a specific minimum number of CPU cores?
Not to mention that a game that renders perfectly isn't much use either if it makes too many computational mistakes.
Jan
7
comment Why would a program require a specific minimum number of CPU cores?
@JimmyHoffa: I disagree. A race condition is still a race condition even when it's not causing undesired behavior. Core count can influence whether or not that behavior happens, which is what the questioner asked, but I didn't cite it as the sole variable.
Jan
7
comment Why would a program require a specific minimum number of CPU cores?
@Reek: Without intimate knowledge of how the program works, anything's a guess. Two cores to do just the DRM seems a little excessive to me.
Jan
7
revised Why would a program require a specific minimum number of CPU cores?
Typo
Jan
7
answered Why would a program require a specific minimum number of CPU cores?
Jan
6
comment Using macros to protect assignment to global variables
Related: programmers.stackexchange.com/questions/257541/…
Dec
29
comment How do I call a parameterless function pointer from within a class?
There are better ways to do this than storing a pointer in each instance of the class on top of storing a flag. Is there anything wrong with having a draw() method that checks the state of m_fill and invokes a private draw_outlined() or draw_filled() method?
Dec
24
comment Safety-critical software and optimising compilers
One question you should be asking is whether or not the object code actually needs to be optimized. If it runs acceptably with the optimization turned off, then there's no reason to turn it on. Lots of compilers have thorough test suites, and we still find bugs in them.
Dec
23
comment Hash function with uniqueness guarantees and controllable entropy
Better hash functions produce fewer collisions and will come closer to it, but nothing which produces a digest any smaller than the data being hashed can guarantee uniqueness.
Dec
23
comment Why is *declaration* of data and functions necessary in C language, when the definition is written at the end of the source code?
@user31782: Processors don't have any notion of return type.
Dec
23
comment Why is *declaration* of data and functions necessary in C language, when the definition is written at the end of the source code?
@user31782: It shouldn't. There's a prototype for foo(), so the compiler knows what to do with it.
Dec
23
revised Why is *declaration* of data and functions necessary in C language, when the definition is written at the end of the source code?
Overhaul to address questioner's other concerns.
Dec
23
comment Why is *declaration* of data and functions necessary in C language, when the definition is written at the end of the source code?
@JamesMcLeod: What you're suggesting is that the questioner go find the answer elsewhere before asking the question.