13,728 reputation
22555
bio website
location
age
visits member for 3 years, 7 months
seen 12 mins ago

Dec
2
comment Open-source licenses and modifications
As soon as you distribute your modified program you will need to distribute the modified source along with it, modifications also include linking in a library so the library's source also needs to be released.
Dec
1
comment When is inlining worth it?
bloat means a larger executable which means more page faults as new code has to get loaded before executing, and more memory needing to be dedicated to the program
Dec
1
answered When is inlining worth it?
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)
Dec
1
comment Why 'JRootPane' is-a 'JComponent' in javax.swing?
light-weight in the swing context means there is no native parallel being maintained all functionality of JRootPan is implemented in java
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.