Reputation
18,999
Top tag
Next privilege 20,000 Rep.
Access 'trusted user' tools
Badges
2 37 75
Newest
 Good Answer
Impact
~667k people reached

Dec
1
comment Can concurrent code (threads, distributed computing, etc.) be directly ported to single-threaded/non-networked platforms?
one of the things you can easily do on a multithreaded environment is a busy loop, doing that on a singlethreaded environment is program suicide (immediate deadlock)
Nov
30
comment Why aren't there code overviews for open-source projects?
You mean a design document? I've seen the rare project with a description of each package but that's usually an API already.
Nov
29
comment Unique_ptr to hold memory for custom VM
Passing a raw pointer when the receiving end doesn't own the object is fine. Though put a profiler on the case to find where it is slow
Nov
29
comment Neural network converges to 0.5 for XoR
XOR needs at least 2 layers of nuerons: one layer to AND the inputs with one input inverted and one layer to OR them
Nov
29
comment Why do we have to tell printf() the type of data in C?
@user31782 the cout << a << b; translates to cout.print(a).print(b); which has the advantage of templates which C doesn't have and overloading (also missing from C)
Nov
29
comment Why do we have to tell printf() the type of data in C?
it's just how the calling convention works, there is only 1 implementation of printf(char*, ...) and it just gets (what amounts to) a pointer to a collection of data
Nov
27
comment Which languages have the best support for stackful coroutines?
asking for lists is not encouraged, because each answer is equally valid
Nov
27
revised Are there other ways to limit recursion depth for a function?
added 59 characters in body
Nov
27
comment Are there other ways to limit recursion depth for a function?
@DocBrown but you can add a counter to limit the number of iterations
Nov
26
answered Are there other ways to limit recursion depth for a function?
Nov
26
comment Alternative locking strategies
don't allow a client to have more than 1 document locked at a time?
Nov
26
comment How to deal with product owner who refuses to follow UI design rules
as shown in xkcd
Nov
25
answered How to prevent race conditions in a web application?
Nov
24
answered Why are self-hosting compilers considered a rite of passage for new languages?
Nov
24
comment Exceptions in ANSI C
@mrpyo it does. Either way C doesn't provide any native assistance for any auto cleanup based on blocks (the windows compiler does have try-catch-finally built in but that is non-portable), any C++ to C compilers with exceptions will replace any program flow crossing in and out of the try block with the proper cleanup and setup code.
Nov
24
comment Is it more secure to hash a password multiple times?
@JeremyWalton except when you have an few utterly broken hashes where you can derive large parts of the input, and because they are all included in the output each hash can be attacked separately.
Nov
24
reviewed Leave Closed Is it normal for a programmer to not have 100% clarity over their own code at times?
Nov
24
reviewed Close How important is Discrete Mathematics for a Computer Scientist?
Nov
24
comment Exceptions in ANSI C
So would a goto crossing the boundary of the try{}endtry block
Nov
23
comment Exceptions in ANSI C
longjmp