5,795 reputation
521
bio website
location
age
visits member for 1 year, 7 months
seen 2 days ago
stats profile views 184

Mar
7
comment How does a concurrent garbage collector deal with variables?
@ratchetfreak: No, such flag wouldn't help. I assumed it would exist when I wrote the comment. It's kind of obvious that it would have to. The problem is that the fewer objects are in the queue, the higher the chance that some thread will add a new one. So unless the mutators are stopped for at least a short while, the queue never drains completely. That is also assuming that threads actually execute in parallel rather than time-multiplexed, but even mobile phones already have multi-core CPUs, so the threads do actually execute in parallel in most cases.
Mar
6
comment How does a concurrent garbage collector deal with variables?
@ratchetfreak: That would likely be slow as molasses. And could easily starve the collector, because mutators are reading something all the time, so when the queue would be nearing empty, some mutator would push more stuff in.
Mar
6
comment Building automated unit tests for tools which don't have an xUnit implementation
The most important point is how can you interface those tools.
Mar
6
revised How does a concurrent garbage collector deal with variables?
Explain why short phase with stopped mutators is needed.
Mar
6
comment How does a concurrent garbage collector deal with variables?
@lorus: I don't think that a completely parallel garbage collector exists. The only parallel (parallel with mutators) algorithm I know of needs a brief phase with mutators stopped when it scans objects that were modified during the main scan. In this regard local variables are considered modified and thus scanned in this phase.
Mar
6
revised How does a concurrent garbage collector deal with variables?
added 121 characters in body
Mar
6
comment How does a concurrent garbage collector deal with variables?
@lorus: I believe that you have to scan the local variables during the brief stop-the-world-and-scan-the-modified-objects phase, but I am not completely sure.
Mar
6
comment How does a concurrent garbage collector deal with variables?
@lorus: If a thread loads something into register, the register is it's local variable. Whether it was mentioned in high-level source or added by the compiler does not matter. You just treat it as local variable.
Mar
6
answered How does a concurrent garbage collector deal with variables?
Mar
6
comment Should I Use an ORM only when dealing with Data Model objects?
I am not working with those regularly, so I can't say for sure, but I am quite confident it's not a best practice. If the framework can do some work for you, than best practice is to use it.
Mar
5
comment What are the best algorithms out there to retrieve data from a file system?
The operating system may schedule head stops a bit more efficiently, but it may also colossally screw up. Depends on the operating system.
Mar
5
revised Building an RPC framework
added 46 characters in body
Mar
5
comment Building an RPC framework
@davidk01: I've added some more specific keywords (specific protocols that implement some of the options).
Mar
5
revised Building an RPC framework
added links to specific protocols
Mar
5
comment Building an RPC framework
@davidk01: I also forgot to mention that the discovery and the transport are almost completely orthogonal, making it even more reasonable to take existing transport and work just on the discovery.
Mar
5
answered Building an RPC framework
Mar
5
comment strongest free c++ user password storage encryption/hashing library?
The close votest were split between off-topic and not constructive. You might get better luck on security.se, but you should try to provide more context too. There is no generally "more secure", you need to have at least some idea what are the use-cases and what are the risks.
Mar
4
comment Why do most issue tracking systems have only single status field?
I think issue tracker is the right tool to solve this, even on it's own. Just don't view it as development tool but project management tool; the project manager does much more work with it than developers. And don't expect it to do work for you; the project manager has to maintain it based on customer feedback.
Mar
4
comment Why do most issue tracking systems have only single status field?
If you are making product for specific customers, verifying fixes by customer works well, because after each upgrade they will report what open problems they have, so you know what to close. If you are making product for the public, it usually does not work, so you close when it gets to a release and give the reporter option to reopen it if they disagree.
Mar
1
comment Why shouldn't a GET request change data on the server?
You may also never get the GET because it happens to be cached somewhere along the way.