2,556 reputation
1015
bio website
location London, United Kingdom
age 43
visits member for 4 years, 2 months
seen 19 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.

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...
Jul
9
comment How meaningful is the Big-O time complexity of an algorithm?
Well, neither quicksort nor heapsort come with stability guarantees, so that (specific) issue shouldn't be a deciding factor between them.
Jul
1
answered is there any language that supports automatic evaluation of input expressions?
Jun
10
comment What are the differences between a while loop and a for loop?
@JörgWMittag Well, that depends on the for loop, now, doesn't it. Although one could argue that a C for loop is actually a while loop in fancy clothing.