24,332 reputation
350107
bio website
location
age
visits member for 3 years, 5 months
seen Mar 31 at 8:20

Status: angry.


Mar
12
comment A good schema to represent integer numbers from 0 to infinity, assuming you have infinite linear binary storage?
fNek: There is no upper limit. For example, if you need 513 bytes for the number, the byte sequence is [255,b0,...,b255,255,b256,...,b511,2,b512,b513]
Feb
5
awarded  Nice Answer
Jan
5
awarded  Popular Question
Nov
21
awarded  Good Answer
Nov
6
comment Why is heap size fixed on JVMs?
cmorse: I can only guess. Maybe Java is targeted at large servers, where many applications share resources and strictly enforced limits are desirable, while .net is rather made for PCs and smaller, more dedicated servers.
Oct
28
awarded  Yearling
Oct
2
comment Can I use open source libraries in my project which is released into the public domain?
The GPL explicitely lists "Public Domain" as a compatible license (see gnu.org/licenses/license-list.en.html#PublicDomain ) so there is no need to license the whole work under the GPL.
Aug
5
awarded  Good Answer
Jul
12
awarded  Necromancer
Jul
8
awarded  Good Answer
Jul
1
awarded  Nice Answer
Jun
6
awarded  Popular Question
May
21
awarded  Popular Question
Mar
18
awarded  Enlightened
Mar
18
awarded  Nice Answer
Feb
20
awarded  Caucus
Feb
13
comment As a minor, how can I make programming profitable?
dave: true, but lesderid explizitely asked "how to earn some money", not "how to learn an important lesson".
Feb
13
comment How do you unit test an encoder?
Aside from carefully reading the standard and creating a test case for every rule, there is hardly a way to avoid that both an encoder and a decoder contain the same bug. For example, let's assume that "ABC" must be translated to "xyz" but the encoder doesn't know that and your decoder also wouldn't understand "xyz" if it ever encountered it. The handcrafted testcases do not contain the "ABC" sequence, because the programmer wasn't aware of that rule, and also a test with encoding/decoding random strings would incorrectly pass because both encoder and decoder ignore the problem.
Jan
29
awarded  Nice Answer
Jan
26
comment Is Ken Thompson's compiler hack still a threat?
An evil compiler that only recognizes it's very own source is easy to build, but relatively worthless in practice - few people who already have a binary of this compiler would use it to recreate said binary. For the attack to be successful for a longer period, the compiler would need more intelligence, to patch newer verdions of its own source, thus running into the problems described in the snswer.