Become a fan of Slashdot on Facebook


Forgot your password?
Check out the new SourceForge HTML5 internet speed test! No Flash necessary and runs on all devices. Also, Slashdot's Facebook page has a chat bot now. Message it for stories and more. ×

Comment Re:Because Programmers Make Bad Decisions (Score 1) 187

Sorry, no. They broke strings entirely in Python 3.0 and that is why people cannot port to them.

Here is how to do strings correctly: use UTF-8 and DO NOT BARF ON ENCODING ERRORS!

It is absolutely 100% a requirement that a program be able to read a random byte stream into a "string", then write it out again, and get the same byte stream.

In Python 2.0 this only barfed if you tried to convert that string to "Unicode" (it would have been nice if it did not barf, but at least you could store, read, and write strings).

In Python 3.0 it will BARF ON READ. This makes it impossible to write reliable software.

Yes you can use "bytes" in Python 3.0. But that really sucks if in fact you expect your bytes to be readable text, with only RARE (but not magically non-existent) errors.

Comment Re:How many bits? (Score 2) 103

I work for Dolby Laboratories, and am deeply involved with high-dynamic-range content creation and hardware.

We created the SMPTE 2084 standard HDR EOTF (electro-optical transfer function.) It turns out that human perception is such that by choosing the luminance for code values to be just barely indistinguishable from the adjacent ones, you can get 0 to 10,000 nits (10x as bright as this Panasonic display) with only 12 bits. SMPTE 2084 is what all HDR TVs are using today.

Comment Re:I'm so out of touch (Score 2) 37

Wayland does in fact have support for resolution independence. By this I mean that if a program does nothing about the resolution of the screen, Wayland assumes it is drawing for approximately 100 dpi, and scales the image by 2 if the screen is 200dpi. I think it only does integer scaling but it may be up to the compositor implementation.

If a program actually claims it's drawing for the high-resolution display, then Wayland does not scale. The problem with X (and I think with Windows) was that there was no api so a program could tell the system that it is handling the high resolution, so the compositor had to assume it was.

Comment Re:welcome to python (Score 1) 148

Honestly the changes in Python 3 should not be any obstacle to porting code. Most of it winds up being a find and replace. The major difference is the use of unicode, and if your package really depends heavily on strings not being unicode, you probably did it wrong. The problem is that if one package that lots of people depend on has devs that just say, "I don't wanna," everything breaks down. And more than one package has devs like that.

At this point, if the Python community could make "porting" as simple as adding a header to a .py file, there would still be people that would refuse to do it.

The problem with Python 3 "unicode" is not that text is not Unicode. The problem is that *random binary data* is not Unicode, but when you read data from an unknown source, you MUST assume it is "random binary data". Trusting it to follow some pattern is by far the stupidest thing you can do.

In Python 2 you could put random binary data into a "string" and then write it to disk without any change, and no errors would be produced. Only if you tried to *display* the string would you get an exception. In Python 3 it will immediately throw an exception, at a completely useless point in your program (ie when you are reading data in, not when you are processing it). Changing every "string" to a "bytes" will "fix" it, but then you have to change the type of every single function that is called from "string" to "bytes", and so on, eventually replacing every single "string" in your program with "bytes". And you are out of luck if one of those api's is from a library that you don't control.

Python 3 will NEVER get accepted unless you can put totally arbitrary patterns of 8-bit data into a "string" and get them back out unchanged. All exceptions must be deferred until something actually tries to split the data into Unicode code points. Even then they should be providing a more useful iterator based api that returns an object that says "the code point is this" or "there is a UTF-8 parsing error here and the first byte is this".

Comment Re:An earthquake is an accident waiting to happen (Score 1) 130

I don't know if you are trying to make a joke, but global warming is not going to do too much to the earthquakes. Greenland is already rising steadily due to the loss of the glaciers from the last ice age. It is really slow and will still happen for tens of thousands of years. Even if all the current ice cap disappeared tomorrow it would, at best, speed this up a tiny amount (the current ice cap is a fraction of the ice age ice cap so the amount of lost mass is only a small change). The weight of the new ice added to the ocean is insignificant (if it raised the ocean 30 feet that would still only be a tiny fraction of mass increase, think about how deep the ocean is).

Comment I saw a rig like this in 2005 (Score 1) 25

When I was shooting Fast and Furious: Tokyo Drift in Tokyo, in winter of 2005, I saw a rig a lot like this. I was walking down a street, and saw a van with four cameras, four LIDARs, and two GPS sensors on the top. I asked a man working on it what it was, and he said "Oh! Are you engineer?" and I confessed that I was just a movie-maker. But, nevertheless, they showed me everything in the van, and said that the point was developing 3D models of all the streets in Tokyo. At the time, it wasn't for self-driving cars though -- they wanted to build 3D in-car maps for navigation. The team of engineers was from a university in Tokyo; although I don't recall which one.

Comment Government? Is that really the issue? (Score 2) 55

While in the past, I agree that people were correct to hold the government accountable for this kind of surveillance, it isn't the biggest issue today. Huge amounts of information are gathered by companies about everybody on the 'net, and shared between them without any limitations. You don't want the government to see your email? Ok, fine -- but Google's incredibly powerful AI team doesn't just see your email -- it *understands* your email. Google can, and does, use that knowledge in any number of ways; and ways that will get more diverse (and perverse?) in the future.

In the not too distant future, I believe that companies like Google and Facebook will become more politically powerful than 99% of the governments in the world. Facebook was going to launch a satellite today to allow everybody in Africa to use Facebook; although somehow the rocket that was going to launch that satellite blew up. My belief is that Facebook wants to get information about everybody on the planet, and will do whatever it takes to do that.

Governments? Come on, that's not the threat.

Comment Re:I really don't understand this drone applicatio (Score 3, Insightful) 43

My believe is that they intend to fly hundreds of these. If you have 100 tethers from 0 to 60,000 ft or so, I believe that you would have many aircraft accidents. Recall that the British used tethered balloons to protect themselves from German air raids. There is no way that you could see those tethers while flying, until you were very close to them -- then it would be too late to avoid.

There are a dozen or so tethered balloons around the border of the US now, so far there have been no incidents that I know of -- but the border is a place where pilots are very observant. Also, the balloons are only at about 10,000 ft or so, so most planes are far higher.

Comment Re:That doesn't work because... (Score 1) 159

You can't change the angle at which the scene is rendered by interpolating between frames.

It's not the raw framerate. It's that the scene your viewing has to match where you're looking that quickly or you get motion sick.

While the parent is Anonymous coward, please rate him up, as that is correct.

Slashdot Top Deals

"There... I've run rings 'round you logically" -- Monty Python's Flying Circus