3,541 reputation
519
bio website
location Netherlands
age 40
visits member for 3 years, 4 months
seen 2 hours ago

Apr
4
comment Is there are problem holding large numbers of open socket connections for lengthy periods of time?
Windows itself doesn't have an issue with async callbacks. It won't create a backlog if your responses are quick enough. I'd blame your C# code. In native code, it would be quite efficient: copy async input to async output, big array to manage state, done. As for "broadcasting protocol ... TCP ... dropped", you'd better read up on protocols. TCP doesn't drop packets, HTTP on top of TCP doesn't, HTTP on top of UDP does. (which is why HTTP by defult runs on TCP port 80)
Apr
4
comment Colons in internationalized UI
Filling in parameters is one heck of a task. Not from the programming side, mind you. Russian may have some complex rules on plurals, but they're still better than the requirements written by a typical manager. Translators just don't understand parameters.
Apr
4
comment Why isn't there parallel reduction in the Standard Template Library?
Doesn't that imply that the argument is a 2^N element range? Other STL algorithms all work on any input, even std::accumulate on an empty range.
Mar
31
comment Why is CPU cache memory so fast?
SRAM in caches generally is 6T, not 4T. Also, SRAM (certainly the 6T variant) is more energy efficient. The real power draw in DRAM is the refresh cycle, and SRAM just doesn't need that. SRAM transistors draw power when switching, the DRAM capacitor leaks all the time. If you replace the leaky cap of DRAM, you end up with EEPROM but that's not fast: if it's hard for the charge to leak out, it's also hard to get it out the normal way.
Mar
18
answered Building a serverless p2p CMS/System
Mar
13
comment What is meant by “native support for a feature” in a programming language?
@JeremyHeiler: It appears that "raw types" are fundamental, non-composite, non-library types. For instance, C does have a string type (char[]), and even string literals. Not all "raw types" need to have matching literals , pointers in C for instance do not. (NULL can only be converted to int*)
Mar
13
comment Can the author of code licensed under CC-NC-ND use it in commercial closed-source software?
If you've assigned the copyright, you (in most jurisdictions) have done so rather explicitly. Often even on paper, spelling out the terms. So, the second sentence should be, "If you have assigned the copyright to someone else, see that contract". It is certainly not unusual to retain a private-use non-transferable license.
Mar
11
answered Optionally Using GPL Library via System API in Closed-Source Application
Mar
11
comment Optionally Using GPL Library via System API in Closed-Source Application
@anderas: I know it can't (the law doesn't work that way), I believe the FSF knows this, but Bart apparently reads the GPL differently than I do. I believe only Microsoft can make Word violate the GPL, and then only under rather specific conditions.
Mar
11
comment Optionally Using GPL Library via System API in Closed-Source Application
No, the FSF doesn't take that extreme a position. Imagine that I use the OS API's to run GPL code in the process of an unaware victim program. That cannot make the victim program GPL by infection. Mere execution in the same process simply isn't enough. And by the same logic, the mere existence of a third-party GPL implementation of an API cannot make your program using that API suddenly GPL. Consider ReactOS, which implements Windows API's. That cannot make Microsoft Word, a user of those API's, open source.
Mar
11
comment How can you decompose a constructor?
I don't think that the list of values is a SRP problem; most of them are probably intended for base class constructors. Each class in the hierarchy can have a single responsibility. Enemy is just the class that targets the Player, but their common base class Combatant needs the fight stats.
Mar
11
comment When an interpreter executes code: Is there a “chain of interpretations” down to the lowest level?
@NPElover: Yes. Your example is executing a variable declaration instruction, and your VM knows this.
Mar
10
comment Demonstration of garbage collection being faster than manual memory management
@supercat: Well, it's certainly not O(1) as your last sentence in the first comment states.
Mar
10
comment Disadvantages of scoped-based memory management
@delnan: capture-by-reference lambda's very intentionally have that [&] syntax. Any C++ programmer already associates the & sign with references and knows about stale references.
Mar
10
comment Disadvantages of scoped-based memory management
Not really convinced. Most of the described uses of memory are essentially values, where you don't care about ownership. Here I have a string, I pass the thing, just as easy as an integer. The string doesn't have complex ownership internals (typically one private buffer, unshared) and in turn the string owner probably owns it outright (on stack, member, unique_ptr)
Mar
10
comment When an interpreter executes code: Is there a “chain of interpretations” down to the lowest level?
@NPElover: Your interpreter is a real, though unusual VM. As a rule of thumb, anything with a notion of an "instruction pointer" (currently executing instruction) is a VM if not a real CPU. Your interpreter keeps track of what statement is executing top-level, the JVM keeps track of which Java instruction is executing, and the CPU below keeps track of which assembly instruction is running. Usually there's no 1 to 1 mapping here. And all is multiplied by the number of threads, of course.
Mar
10
comment Demonstration of garbage collection being faster than manual memory management
@supercat: free can also collect batches. (And of course removing all items meeting a criterion is still O(N), if only because of the list traversal itself)
Mar
5
answered Why do all <algorithm> functions take only ranges, not containers?
Feb
25
comment How did separation of code and data become a practice?
@MichaelPaulukonis: And putting it in a database is a fake solution. Changes needed for Dutch? Zero (not even a DB change). Changes needed for French/German? At least ISO-8859-1 support. (More than DB). Changes needed for Greek/Russian? Unicode support (more than DB). In fact, I can't think of any language where that DB is of any help.
Feb
25
comment Member functions vs. Non-member functions for math operators
Sorry, there's very little solid fact in your reasoning. There's no difference in ease of use between your two transpose examples. The main reason C++ ie easier is because copy and assignment semantics actually work. A = B may compile in C but probably does the wrong thing.