11,928 reputation
22247
bio website
location
age
visits member for 3 years, 2 months
seen 31 mins ago

Jun
17
comment What prevents a race condition on a lock?
and a related question here on P.SE: programmers.stackexchange.com/questions/228827/…
Jun
16
comment About grammar, Chomsky hierarchy and obj file format
@user2485710 Remember that in the hierarchy each grammar can recognize all languages in the lower tier grammar (context free can recognize regular for example) usually using some ridiculously simple construct that you can easily hook into with the higher level trickery
Jun
16
answered About grammar, Chomsky hierarchy and obj file format
Jun
16
comment Usage of raw pointers
technically lock creates a new shared_ptr while the original weak_ptr remains untouched
Jun
16
answered Usage of raw pointers
Jun
14
comment Looking to simulate the rolling of a ball around a roulette wheel, while the resulting number is already known
you can add the initial phase where the numbers are too blurred to see and that only ends when it slows down enough for the ball to land in the final hole
Jun
14
comment Minima of a convex list using binary search
what did you try, BTW if the elements first increase and then decrease the minimum will be either the first or the last element
Jun
14
answered How the Stream.filter() method works?
Jun
13
comment What does “trivial” mean?
hello world is trivial
Jun
13
comment Why/how does Java use a controlled mechanism to pause threads for GC?
but there is the Thread.halt() built into the JVM
Jun
12
answered Is method overriding always a violation of Liskov Substitution Principle?
Jun
11
comment Array of pointers in C++.
then don't try to understand a faulty program you won't learn anything
Jun
11
comment Array of pointers in C++.
it's called undefined behavior
Jun
10
revised How can I write byte[] to socket outputstream and specify the end of file?
added 257 characters in body
Jun
10
answered How can I write byte[] to socket outputstream and specify the end of file?
Jun
10
comment Why is the function called lseek(), not seek()?
@andy256 off_t and if you want the 64 bit offset you use lseek64
Jun
8
comment Regex to String generation
what did you try?
Jun
8
comment Are there theoretical reasons why arrays in C take less RAM than Java?
1st thing: char in java is 2 bytes while in most C implementations char is 1 byte
Jun
7
comment What is the benefit of the 'free-to-deobfuscate' model over open-source?
It more like a we won't object too much if you go through 2+k functions and fields and give them meaningful names, hell we might just hire you
Jun
7
answered In which object should I implement wait()/notify()?