1,018 reputation
49
bio website kdgregory.com
location
age
visits member for 3 years
seen Apr 17 at 14:37

Nov
8
comment When there's no TCO, when to worry about blowing the stack?
Last I looked, the 80x86 doesn't do (native) tail-call optimization either. But that hasn't stopped language developers from porting languages that use it. The compiler identifies when it can use a jump versus a jsr, and everyone's happy. You can do the same thing on a JVM.
Aug
21
comment How do I implement code obfuscation for native code?
@user2102508 - I think you will get better answers and fewer off-topic comments if you remove "obfuscation" from your question, and focus on transforming intermediate representations (personally, I think AST may be too high level).
Aug
18
answered Benchmark of asynchronous code
Aug
16
comment Benchmark of asynchronous code
@Euphoric - I suspect that Lesstat is looking for your definition of "asynchronous programming." I, for one, don't know of a canonical definition, so would ask the same question. But I wonder: if you can't compare them, then how do you expect benchmarks to exist?
Aug
2
comment What is the intention behind asking weight of plane?
To follow up on what Mike said, the FAA has very specific rules for how to measure the weight of a plane, and they don't involve boats (and speaking as a former private pilot, if asked this question I would reply with "the current weight and balance sheet is required to be in the cockpit, so let's go take a look").
Aug
1
answered Erlang and Go concurrent programming, objective differences between CSP and Actors?
Apr
19
comment Why does Java use so many middlemen?
+1 for pointing out that there is an easy one-liner (I'm assuming you're correct, haven't checked the docs). It's analogous to JQuery's $.ajax() versus $.getJSON().
Mar
25
awarded  Yearling
Feb
13
comment Multithreading synchronization interview question: Find n words given m threads
@MarcDiMillo - in my understanding, that's the reason for the "memory barriers" in the Java Memory model. Although it no doubt was prompted by multiple processors rather than multiple cores.
Feb
13
comment Multithreading synchronization interview question: Find n words given m threads
Thanks for the bounty. Took me a while to figure out that mousing over it would say who gave it.
Feb
8
awarded  Mortarboard
Feb
8
awarded  Necromancer
Jan
31
answered Multithreading synchronization interview question: Find n words given m threads
Jan
31
comment How safe are hidden AJAX requests that fake performance?
Have you also considered what happens when your desktop application writes to disk, it actually goes into an OS buffer, and the disk fails before it could be written to the platter? Or, for that matter, the disk fails after the bytes are written to the platter. In both cases, the user thinks that something has happened when it really hasn't.
Dec
8
comment Are these advanced/unfair interview questions regarding Java concurrency?
If you're hiring for a position that needs concurrent development, these are only the start. But I wonder how would you react if someone replied to your question about notifyAll() with "I don't believe in doing the work of the OS scheduler, so I use notify()"
Dec
8
answered Why is heap size fixed on JVMs?
Dec
7
comment Why is heap size fixed on JVMs?
This is kind've a rant, and I wonder how much thought you've put into it. For example, how would the GC/swap interaction change if you didn't have a heap limit? How is VM space wasted? You get your 2/3Gb space whether you use it or not, and if you're pushing the limits of that space it doesn't matter whether you've got a fixed or floating heap. For that matter, how do multiple JVMs waste anything other than swap (which should be configured appropriately for the machine's purpose)?
Dec
7
comment Why is heap size fixed on JVMs?
+1 - for being (1) the only answer that actually addressed the question, and (2) being plausible.
Aug
13
awarded  Nice Answer
Aug
8
answered How can I prevent users from merging origin/X into Y in git?