15,861 reputation
22962
bio website
location
age
visits member for 3 years, 11 months
seen yesterday

Oct
10
answered Order of Operations Annoyance
Oct
10
comment I/O bound or CPU-bound
open task manager and see if it takes up a full core
Oct
9
comment What are the main differences between C++ templates and Java generics?
@AvivCohn just about
Oct
9
answered What are the main differences between C++ templates and Java generics?
Oct
8
comment Mutual Authentication in JSON or AJAX only?
how will the client be able to trust that the cer is actually from your server (rather than a DNS-spoofed copy)? just get a properly signed cert
Oct
8
comment Does C++ abuse the stack?
All the "stack" is, is a place to put variables, C++ just adds hooks that run the destructors for things on it when the stack shrinks
Oct
8
comment Developing “real” synchronization
synchronizing distributed data stores is a complex topic (and a question of compromises)
Oct
7
comment Why should your code not use 100% CPU?
and the OS may even enforce a cool down slice for the cores
Oct
6
comment Why was Fortran never used to develop an Operating System?
Basic is also old but definitely not suited for OS building
Oct
5
answered What should I do in C++ when implementing a container class: storing objects by value or by reference?
Oct
5
comment String sentence consistency when sent over sockets
@Omega yep it will resend a few times as needed until it just gives up and assumes the connection is gone.
Oct
4
revised String sentence consistency when sent over sockets
added 30 characters in body
Oct
4
answered String sentence consistency when sent over sockets
Oct
3
comment Is enum not a class?
actually you can make each enum constant a anonymous subclass of the enum type with its own behavior
Oct
3
revised Heap vs Stack Memory in java
formatting
Oct
1
comment Which programming language first came up with the finally block?
@PieterB because you can replace try{}finally{...} with try{}catch(e){...;throw e;}
Oct
1
comment Why implement a lexer as a 2d array and a giant switch?
Actually a giant table can be readable if formatted nicely. And most literature defines a 2-parameter delta function that defined the state transition that takes the current state and the input symbol. Either way (automatically) creating a if/else chain from the table delves into the SAT problem and NP-completeness issues when a table is efficient enough (and an if-else chain is branch heavy while a table is just a cache miss).
Oct
1
comment Create a collection with “average points” of N items from a pool with items of various points
Or if you have a total difficulty that is too high discard some high difficulty questions and redraw them.
Oct
1
comment Create a collection with “average points” of N items from a pool with items of various points
near textbook knapsack problem (sum of difficulties has to be N*average)
Sep
29
comment Illustrate Meaning of : gcc -g programName.c
the -g flag tells the compiler to add debug info that allows gdb to function, it is disabled by default to 1 prevent bloat and 2 prevent reverse engineering