Become a fan of Slashdot on Facebook


Forgot your password?
For the out-of-band Slashdot experience (mostly headlines), follow us on Twitter, or Facebook. ×

Comment: It's their business model. (Score 3, Informative) 304 304

When you expect to get most of your revenue from selling apps in the iStore - it's essential that people are unable to get apps for free via fancy web pages.

Hence, iPhone doesn't support WebGL for doing fancy 3D graphics on a web page - if it did, people would write cool games in HTML/JavaScript/WebGL and monetize them directly without having Apple take 30% of the revenue and "approve" their product.

Is this because Apple can't support WebGL? Hell no! The browser actually DOES contain code for WebGL, but it's disabled...UNLESS your web site signs up to display Apple-provided advertising which case, WebGL works great!

Safari uses the exact same core rending software ("WebKit") as Chrome - so it can trivially support everything that Chrome supports - it's really just a matter of Apple deciding to deliberately cripple the browser to prevent people from providing apps for free.

Comment: Re:Drone It (Score 1) 805 805

The "double-tap" bombings, where they wait and bomb the rescuers, are surely clear breaches of the laws of war. Those rendering humanitarian aid onto others - even fighters if hors de combat - are meant to be protected.

It's an incredibly evil policy.

See e.g. the "collateral damage" wikileaks Iraq video - watch it past the initial strike on the photographers. They wait and then shoot up a van that stops, a random passerby who stopped to give assistance - a good samaritan - and they were *executed* for it. Their children were also visible in the front of the van and (at a minimum) very badly injured by the AH64 heavy cannon fire.

Evil, EVIL, **EVIL**.

And did Obama do, he approved this tactic for use in Afghanistan with drone strikes.

Comment: Re:Kids don't understand sparse arrays (Score 1) 128 128

What happens to your 'standard' linked lists solution when you have ten values scattered over an array which is 1000! (factorial 1000) in each dimension? For most genuinely sparse arrays, a hashmap is a better approximation of an efficient implementation. Of course, there will be corner cases where you want to do something different, but linked lists strike me as an extremely poor solution except in arrays where more than about 10% of cells have data.

Comment: Re:TRWTF: List is used instead of Map (Score 1) 128 128

I should have read the linked questions before replying...

Stupid, stupid, STUPID! Why have numRows and numCols in a sparse array? Things with unnecessary, arbitrary bounds annoy me. My implementation of Conway's Game of Life runs on a sparse array precisely because that allows the world to stretch arbitrarily in any direction a glider goes, limited only by the capacity of the bignum library and the total store available to the program.

And this is how we teach computer science?


Comment: Re:TRWTF: List is used instead of Map (Score 1) 128 128

Sparse array entries, in general, are not necessarily immutable, although they may be so in this case. Most spreadsheets are implemented as sparse arrays, for example. But your point about the benefit of a map is well made.

Comment: Netflix needs to fix this (Score 5, Insightful) 181 181

If the last mile ISPs are going to only allow balanced traffic for free (and last mile traffic is clearly not balanced by its nature) then we should fix the problem for them and generate enough upstream traffic to balance the equation. This is simple - answer one idiotic position with another idiotic position. Have Netflix go peer to peer and then manage traffic flow to create balanced traffic at all of the last mile ISPs. It's what they want ---- we should give it to them.

Comment: This policy is ridiculous (Score 4, Interesting) 289 289

I have two Facebook accounts, a real one with with my real info and another one I just use for playing games. I don't want to mix 'friends' from casual games in with my real friends. I used a pseudonym on the second account. Facebook just locked my second account this week and wouldn't release it until I sent in a photo of my driver's license. I consider that a huge invasion of privacy. I had be using the second account for a long time under the pseudonym. After receiving my driver's license they changed the name on the account to my real name (now no one in the games knows who I am) and they entered all of the data from driver's license into the profile. This is just a total mess which is going to cause me to use Facebook even less than I do now.

Comment: Re:I want my division by zero errors to be errors (Score 1) 1067 1067

No, just NO.

Getting inf or -inf out of floating point actually makes sense: It is not just exactly zero but a whole range of very small numbers which give similar results and are treated as 'limits as x approaches 0'.

Integer numbers and arithmetic are exact and although INT_MAX might be large these days it is still not anywhere near infinity and just does not make any sense at all.
And having signed and unsigned behave differently also does not make any sense at all.
Your compile time option might as well be named '-foutput-random-instructions'

Comment: Because it should never happen. (Score 1) 1067 1067

Whenever you divide by zero, the problem ISN'T the division - it's the previous code that either assumes that dividing by this number will produce a valid result, or is doing something wrong in turn.

Checking - and somehow kludging - a divide by zero does nobody any good. You have to ask WHY you're dividing by zero and what it should mean.

I *want* divide by zero errors because they inform me that I'm doing something wrong elsewhere.

(And even if you wanted to kludge it - returning a very large number would be a better choice than zero...but don't do that).

Bottom line - if you're doing lots of div0 tests then you're doing something wrong in many other places!

    -- Steve

Comment: Re:did the tech exist in 2010-12? (Score 1) 122 122

HMD's have been around since LONG before there were 3D graphics on the PC at all. They'd been used (for example) on military flight simulator back when you'd need a million dollars of mainframe hardware to generate a 3D image. I very much doubt that any of this tech is actually new. Probably someone like Evans & Sutherland were the first to do it - and they had 3D graphics back in the late 1970's. I doubt that much of the general concept is still patentable - so this argument is probably over some kind of small feature.

"Experience has proved that some people indeed know everything." -- Russell Baker