1,197 reputation
59
bio website
location
age
visits member for 3 years, 11 months
seen 4 hours ago

4h
comment Polling more recent / active items more frequently
For each post have a list of "things" (people/members?) to notify if/when the post changes; and for each "thing" have a list of posts that have changed. Whenever a post changes, add the notifications to each "thing's" list. Whenever you need to send anything to a "thing", append its list of posts that changed to whatever you're already sending (and set the list to empty). No polling, no delays, no searching through thousands of posts to see what changed, no/minimal extra packets across the network.
Apr
21
comment How to spread awareness for generic programming among team members?
Some people are wise. When they want a cup of coffee they'll make a cup of coffee. Some people are "knowledgeable". When they want a cup of coffee they'll start building a fantastic machine capable of heating, cooling, brewing, carbonating and mixing any kind of beverage; but die of thirst before it's finished.
Apr
11
comment Is directly using Make considered obsolete?
@Darkslash: Once you start considering (hypothetical) alternatives it's like opening floodgates - you end up questioning everything (and end up with ideas like separation of semantics and syntax, and redesigning IDEs and tools and delivery as a set rather than individual pieces of the larger puzzle). More practical is to realise that tools like cmake only treat symptoms and can't cure the root cause/s; which makes it easier to accept the fact that you've got no choice other than to use tools that will probably never be close to "ideal".
Apr
11
answered Is directly using Make considered obsolete?
Mar
31
answered Ethicality of online license checks
Mar
8
answered what are the limits of the client server architecture
Feb
25
comment Is it reasonable to assume that any physical quantity can be represented by a 64-bit integer without overflow or underflow?
The funny thing about virtual addresses is that they're virtual. For example, I can have 1024 processes running where each process has it's own 128 TiB of virtual space, even though I don't have 128 PiB of RAM in my computer.
Feb
25
comment Should a “secret access code” use the same security as a normal password?
Would it matter if you did bcrypt the "secret access code", even if it's not strictly necessary?
Feb
22
comment How to respond to a rude bug report?
If a paid/professional QA tester wrote a rude bug report, have a "stern word" with them about their conduct. Otherwise, whoever wrote the bug report has spent time (finding, downloading, installing and learning your software) and then spent more time (reporting the bug, monitoring follow-ups, etc) just to do "QA tester" work for you. They're paying (with time not money) to improve your product. If they were rude, that's unfortunate, but it's also irrelevant.
Feb
3
comment Is a 1 < 10 comparison less expensive than 1 < 1000000?
For CSS, the overhead of converting text into an integer will depend on the number of digits being converted (where a 6 digit number like 1000000 may be approximately 6 times as expensive as a 1 digit number like 1); and this overhead may be orders of magnitude larger than the overhead of integer comparisons.
Jan
25
comment Looking for a DP algorithm for a specific packing problem
Erm. For the title, it's not obvious that "DP" stands for dynamic programming (or data packing, or dual processor, or double penetration, or any of many other alternative abbreviations).
Jan
17
comment Is my auto-update standard reasonable?
@Supuhstar: I'd also strongly recommend splitting it into 3 or more completely separate projects - one project to define and maintain an (open) specification (e.g. like WC3 does for HTML), one project to implement the "server side" parts of that specification (e.g. like Apache does for HTML), then one or more projects to implement the "client side" parts of that specification (e.g. like Mozilla does for HTML).
Jan
17
revised Is my auto-update standard reasonable?
deleted 4 characters in body
Jan
17
answered Is my auto-update standard reasonable?
Jan
12
comment When should I use event-based programming?
For "performance" I think we need to distinguish between single-threaded performance and scalability. Messages/events can be worse for single-threaded performance (but can be converted into function calls for zero additional cost and be no worse), and for scalability it's superior in virtually every way (e.g. likely to result in massive performance improvements on modern multi-CPU and future "many-CPU" systems).
Jan
12
comment When should I use event-based programming?
Also note that there are some languages (e.g. Erlang) built around the actor model where everything is messages (events). In this case the compiler can decide whether to implement the messages/events as direct function calls or as communication.
Dec
26
comment Are all magic numbers created the same?
@Ryan: For this specific case, I'd rather be militant about the adoption of standard units - KB is 1000 bytes or the code is wrong, and 1024 bytes is KiB or the code is wrong. This is the only way we're ever going to get past the "units are ambiguous" problem. Different people defining "magic constants" (like KB) differently won't help.
Dec
26
comment On-the-fly, random partition of a range of numbers [0,N] in groups of max M size
@nine: For small M it can be considered as O(N), and for large M (e.g. M = N*2) it can be considered O(1). Woot - it's O(1)! :)
Dec
25
comment Safety-critical software and optimising compilers
The GCC developers still do not understand that there's a massive difference between "technically allowed according to a literal reading of the C specs" and "sane in practice". The issue with GCC and signed integer overflow is that the C specs are bad (signed integer overflow should've been implementation defined from the beginning, and most implementations should've done wrapping to mirror the behaviour for unsigned integers and/or the target machine). "Undefined (by the spec) behaviour" does not exclude "defined by the implementation as wrapping".
Dec
23
answered Is embedding data in a executable considered a good practice?