Catch up on stories from the past week (and beyond) at the Slashdot story archive

 



Forgot your password?
typodupeerror
×

Comment Re:Missing data point. (Score 1) 349

If you think architecture doesn't change much over time, then you haven't been paying attention to architecture. Lots of data structures from 10-15 years ago suck on modern hardware because of changes in the relative costs of cache and branch predictor misses, and that's just on a single machine. When you get into distributed systems then the relative speeds of networks and local storage have changed dramatically.

Comment Re:That shouldn't surprise anyone (Score 1) 349

There's one more reason, which is that there are sometimes good reasons for writing your own sort routine. Specifically, if you have data that has a known distribution that lets you beat a comparison sort. One of the questions I was asked in a Google interview was along these lines. The point was not to see how well I could write code on a whiteboard or reproduce an algorithm from a textbook, it was to see if I could understand that the problem wasn't the same as 'sort arbitrary data', see if I could extract what properties of the problem made it amenable to optimisation, and see what tools I had for approaching that kind of optimisation.

And sometimes it's not about knowing if you can reproduce an algorithm, but about knowing whether you understand the limitations of a particular approach. Do you understand when that off-the-shelf quicksort library would do a terrible job on certain input data? In one interview, I discovered that my interviewer didn't know about hopscotch hash tables, but did know about cuckoo hashing, so we ended up with a discussion about what the overheads of the two approaches are and when either would be better.

Comment Re: Google: Select jurors who understand stats. (Score 1) 349

People should be hired based on who is best for the job. Period.

If you have a mechanism for identifying, up front, who is best for a job requiring creativity and technical skill and is not subject to subconscious biases by interviewers then please let the rest of us know. I know a lot of companies that would be able to save huge amounts of money by replacing their hiring mechanisms with such a technique.

Comment Re:IPv6 and Rust: overhyped and unwanted! (Score 1) 390

then go to my office for a lesson in Java memory leaks.

If you have a program that is long-running (that is, it doesn't clear all the objects you created every time a new http request comes in), and you aren't thinking about memory leaks, then you have them.

Recently I saw a case where a guy had written a program half in C and half in Java. It had some leaks in it but he couldn't find them (mainly he had not been using any introspection tools, so it's not surprising. If you want to find leaks, you need to be able to look at what's going on with your memory. Use jmap or something).

Comment Re:Completely unacceptable (Score 1) 334

saying something is "totally unacceptable" is just a phrase pussies use to whine

reality is there will be collateral damage in fighting terrorists sometimes

if you travel to the middle east, don't be surprise if terrorists grab you and hold/torture/behead you, and don't be surprised if you get blown up or shot up with one of their bases

Slashdot Top Deals

"Money is the root of all money." -- the moving finger

Working...