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

 



Forgot your password?
typodupeerror
×

Comment Re:Because C and C++ multidimensional arrays suck (Score 3, Interesting) 634

Easily fixed with libraries like Eigen ( http://eigen.tuxfamily.org/ind... ) and many others.

That's the problem. There's no one way to represent a multidimensional array in C++. There are many ways. Which means math libraries using different ones are incompatible with each other. The last time I did a big number-crunching job in C++, I had four different array representations forced on me by different libraries.

Because the compiler has no clue what those array libraries are doing, you don't get basic loop optimizations that FORTRAN has had for 50 years.

Comment Because C and C++ multidimensional arrays suck (Score 5, Insightful) 634

A big problem is that C and C++ don't have real multidimensional arrays. There are arrays of arrays, and fixed-sized multidimensional arrays, but not general multidimensional arrays.

FORTRAN was designed from the beginning to support multidimensional arrays efficiently. They can be declared, passed to subroutines, and iterated over efficiently along any axis. The compilers know a lot about the properties of arrays, allowing efficient vectorization, parallization, and subscript optimization.

C people do not get this. There have been a few attempts to bolt multidimensional arrays as parameters or local variables onto C, (mostly in C99) but they were incompatible with C++, Microsoft refused to implement them, and they're deprecated in the latest revision of C.

Go isn't any better. I spent some time trying to convince the Go crowd to support multdimensional arrays properly. But the idea got talked to death and lost under a pile of little-used nice features.

Comment Re:OTOH (Score 5, Insightful) 102

Although a popular use of nginx is as a reverse proxy. We don't have any nginx hosted websites here, but Netcraft thinks they are all nginx because they only get to find out what the reverse proxy is running. In reality the actual webservers themselves are mostly Apache (with a couple of specialist things, like an embedded Jetty instance). But to anyone outside it looks like nginx.

Comment Re:squatting (Score 5, Informative) 102

Most of them. The headline is very misleading. The next sentence in TFA is:

"Apache's position is much stronger when considering only Active Sites — it retains an absolute majority of 52.3%, and second place is held by nginx (14.4%), rather than Microsoft (11.3%). By excluding much of the automatically-generated content present on the internet, the Active Sites metric better reflects web server market share amongst human-maintained web sites."

In other words, most of IIS's "catchup" is really just parked domains and the like. In reality, I bet Apache is nearer 60% because most of the "nginx sites" will be reverse proxies in front of an Apache server. We have four domains that are hosted by Apache for example, but Netcraft thinks they are nginx because of the reverse proxy.

Comment Re:true, but partially because govt pays 10X too m (Score 1) 143

The US Government doesn't want, and doesn't buy the item that Walmart sells.

The problem is, sometimes they do. There are some situations where you need something with exactly known parts and quality that can be replaced with an identical one in ten years (guaranteed by the vendor) if required. There are some situations where you need something that works now and if you have to throw it away in 3 years, that's fine because your next upgrade cycle is in two years anyway. The government doesn't differentiate these in the procurement rules, so even when all you want is a generic white-box PC for a secretary's desk that will only ever run MS Word and a web browser for the intranet, you still go through almost the same procurement process as for parts for a stealth fighter and end up buying a machine from Dell that is guaranteed to have specific parts, at an increase in price that's more than just buying two or three identical machines from another vendor (or even from Dell's consumer lines) and throwing them away when they break.

Comment Re:Buggy whips (Score 1) 417

I don't think it's quite that clear cut. When I worked as a consultant (I still do sometimes, but I'm mostly an academic these days), I wasn't paid except when I was doing work for my customers. Uber fills the same role for drivers as a recruitment agency does for consultants: they are not employing you, they're putting you in contact with customers in exchange for a cut of your fee. In the case of Uber, they are also handling the QA and payment processing.

In your shop analogy, it's more akin to a shop allowing non-employees to get a commission for sales. The shop wouldn't put them on the payroll, but would pay them a percentage for everything that they sold. This isn't common for shops, but happens in a lot of other sales. I only see a problem with it if the people working this way have a particularly bad deal and the employer has a sufficiently strong bargaining position that they can't get anything better.

Comment Re:Why have an exhaust port at all? (Score 1) 457

How quickly do you think they'd vent the coolant? Hopefully most of the energy for the superweapon goes to the target, so it's not having to dissipate all of it, but it does have to lose the waste heat. You'd probably do this by using a compressed gas cooled to near absolute zero and then allowing it superheat, then exposing it to a vacuum, where the pressure differential would accelerate it away at very high speeds. You wouldn't need a very wide hole if you're venting plasma at a very high speed, you'd just need a lot of thermal shielding...

Comment Sounds like utter bullshit (Score 3, Interesting) 426

Here's a a critique. (It's on arxiv; no need to sign up for "Medium")

The paper isn't impressive. It make the assumption that human (other mammals, too?) memory isn't compressed, and is somehow "integrated" with all other information. We've been through this before. Last time, the buzzword was "holographic". We've been here before.

The observation that damage to part of the brain may not result in the loss of specific memories still seems to confuse many philosophers and neurologists. That shouldn't be mysterious at this point. A compact disk has the same property. You can obscure a sizeable area on a CD without making it unreadable. There's redundancy in the data, but it's a lot less than 2x redundant. The combination of error correction and spreading codes allows any small part of the disk to be unreadable without losing any data. (Read up on how CDs work if you don't know this. It's quite clever. First mass-market application of really good error correction.)

Slashdot Top Deals

If all else fails, lower your standards.

Working...