940 reputation
511
bio website
location
age
visits member for 3 years, 6 months
seen 42 mins ago

May
2
answered Lexing: One token per operator, or one universal operator token?
Apr
21
comment long lines in git or svn
Subversion does not use a line-based diff in its storage, it uses xdelta (a binary diff algorithm). It is not necessarily true that longer lines will result in larger xdeltas.
Jan
17
comment Is there already a “Binder” data-structure?
Related: Gap buffer
Jan
8
awarded  Enlightened
Jan
8
awarded  Nice Answer
Jan
6
awarded  Yearling
Jan
2
answered “/*@null@*//*@out@*/” in C function declaration
Nov
2
comment Is it reasonable to null guard every single dereferenced pointer?
My guess is that @KristofProvost is talking about OSes that use overcommit, for which malloc always succeeds (but the OS may later kill your process if there isn't actually enough memory available). However, this is not a good reason to skip null checks on malloc: overcommit is not universal across platforms and even if it's enabled, there may be other reasons for malloc to fail (e.g., on Linux, a process address space limit set with ulimit).
Sep
17
comment Which is the better: a <= b or a < b+1
"the second parameter to range() isn't an upper bound, it's the number of values to generate". This is incorrect. The second parameter to range most definitely is an upper bound. Try range(5,10), for example.
Jun
28
awarded  Nice Answer
Mar
23
answered Why is Java boolean primitive type name not 'bool'?
Mar
21
comment Why is Java boolean primitive type name not 'bool'?
The Oak language specification (version 0.2, copyrighted 1994) also includes the boolean type. (Oak was later renamed to Java). That pushes the dates even closer, though I still see no definite evidence to show precedence, or influence, in either direction.
Mar
21
comment Why is Java boolean primitive type name not 'bool'?
According to Evolving a language in and for the real world: C++ 1991-2006, the bool type was introduced to C++ in 1993. Java included boolean in its first release in 1995, but the Java project itself was started in 1991. Without finding further sources of information, it's not clear to me which came first, or what (if any) influence they had on each other.
Mar
21
comment Why is Java boolean primitive type name not 'bool'?
"I think C++ had decided to use bool quite a bit earlier than Java decided to use boolean" Why do you think that?
Jan
6
awarded  Yearling
Dec
29
comment Is a day really 24 hours long?
@ChrisF: The day does not end at 23:59:59, that's just a limitation of our quantised time representation. 23:59:59 is a point in time, not a period of time one second long. The point of time 00:00:00 is exactly at the boundary of two adjacent days.
Dec
20
comment How do we differentiate between a computer and a calculator?
@ManojR: Recursion is a form of looping construct.
Dec
16
comment What is the reason behind the if syntax of CoffeeScript?
@RossPatterson: CoffeeScript also has unless.
Dec
6
answered Is there a purpose for using pull requests on my own repo if I am the only developer?
Nov
15
comment Do functional generics exist and what is the correct name for them if they do?
My understanding of the example code was that Person and Car are types. Probably best to wait for the OP to clarify or respond.