2,592 reputation
1015
bio website
location London, United Kingdom
age 44
visits member for 4 years, 6 months
seen 17 hours ago
Quite boring, really. Have faffed about with computers since the mid-80s, have worked as a network engineer, unix sysadmin and (occasionally) developer.

May
1
comment Why is negative zero important?
If the particular example is "1 / 0.0" / "1 / -0.0", 0 is a branch cut for 1/x and the limit depends on if you approach it from below or above.
Feb
19
answered c++11 random: why different range of int and real?
Dec
27
answered How did programming work when programmers used punchcards?
Dec
1
answered Is generating a large random number more unique than generating each digit in that number?
Nov
11
revised Reference counting & GC in LISP
added 46 characters in body
Nov
11
comment Reference counting & GC in LISP
It only can with weak references, which is a higher cognitive load on the programmer.
Nov
11
revised Reference counting & GC in LISP
Added atomic refcount update to the list of concerns.
Nov
11
comment Reference counting & GC in LISP
But that means you need to have two types of references, where a single type of reference would have sufficed, with a more advanced (and not necessarily any slower) GC. Remember that updating a reference count MUSt be lock-protected, so any "reference or de-reference any other object" is suddenly a lock acquisition, instead of amortised at GC time.
Nov
10
answered Reference counting & GC in LISP
Nov
4
comment Undefined behavior, in principle
Or even "may produce different results in consecutive runs of the same binary, resulting from a single compilation".
Oct
24
revised C Linked List Implementation Pointer vs. Pointer-to-Pointer Consistency
Expanded on one option
Oct
23
answered C Linked List Implementation Pointer vs. Pointer-to-Pointer Consistency
Oct
21
comment Robustness and pointer safety in C++
I agree that code is vastly more likely, but even in the face of perfect code...
Oct
21
comment Robustness and pointer safety in C++
Well, at large enough scale, you will have bits flipping unintentionally in RAM.
Oct
12
awarded  Custodian
Oct
12
awarded  Yearling
Sep
24
awarded  Autobiographer
Aug
1
comment What would the register-machine bytecode for this code look like?
@GregHewgill Or for proper abominations, MOV EAX, 5 followed by LEA EAX, [EAX*2 + 1]
Jul
29
comment When is a number a magic number?
@DaniellDinnyes Exactly. It would have been much easier to read if I'd used "HoursPerWeek" instead of 168 (which is the right number, but not a constant most people recognize on sight).
Jul
29
comment When is a number a magic number?
Not to mention return 168 * weeks...