Dumb code implicitly assumes a 1.0 gamma. Most files are approximately the sRGB gamma, which is 2.2 if you ignore some oddities. Very rarely you may encounter an ancient Mac file with a 1.8 gamma.
So, if you do nothing, you're at 1.0 and sucking hard on most files.
Applying square and square root (gamma 2.0) is really cheap and easy, and it gets you a lot closer. I think you can even vectorize it in one direction.
1. some photos show it more than others (try a sharp photo of a pile of brightly colored plastic toys, showing well-defined edges between the different colors)
This affects alpha blending, including anti-aliased drawing tools.
I think people tolerate it because it's like traditional cartoons: you get a bit of a dark line around everything, more or less. IMHO, that's yucky.
Serious problems happen when you repeat an operation in the same spot. Things like a smudge tool get an odd sort of asymmetry, with black-to-white and white-to-black operations being different.
32-bit is of course linear, thus fixing the problem.
It's rare to have anything 12 bits or more that isn't linear, and rare to have anything 8 bits or less that isn't.
16-bit half floats aren't natively supported by Intel. You can do 4 floats in an XMM register (SSE) or 4 shorts in an MMX register. Even w/o vectorization, integers and 32-bit floats are easy. Using 16-bit half floats may seem easy in some programming languages, but it's not nice for the CPU.
Why am I supposed to respect an all-encompasing way of life (not a mere "religeon") that insists on killing people who quit?
There are a dozen countries in which this is the law. If you are thought to have stopped being Muslim, the government will execute you.
Elsewhere, it happens without official government sanction. It is considered every Muslim's duty to kill somebody who leaves. If a Muslim becomes Christian or Atheist, they will be killed. The MUST be killed.
WTF? This is the ultimate disrespect for non-Muslims. Why in hell should I respect them? If anything, a bit of pre-emptive (before they ALL get nukes) self defense is in order.
There are plenty of others that were launch sites for the USA or USSR/Russia, but only South Africa really quit.
BTW, Russia has something like 2x what the USA does. Any sort of disarmament needs to start with them, and they've been caught violating treaties numerous times.
After more than 30 years of life, I have not found much to be gained from your Western values, culture and your vapid mindless "entertainment" that my people are so fond of aping.
Same here, and I'm a non-Muslim in the USA.
Note that we are both on Slashdot. That could have something to do with it.
I'll guess the people in your country who ape the vapid mindless entertainment are not Slashdot readers.
Assuming Arabic means Islam, and non-Arabic means either Christian or Atheist...
Muslims believe they have a duty to kill somebody who leaves the faith. See the "Aposty in Islam" wikipedia article if you are clueless about this. There are a dozen countries where the government actually imposes the death penalty for leaving Islam.
Seriously, WTF? How can any Christian or Atheist respect such an evil load of shit?
Then there is the matter of democracy being considered immoral because it suggests that man can make laws. All law is found in the Koran (Sharia). How can you deal with a person who insists on such a thing? Separation of church and state ("give to Ceasar...") is a Christian idea.
Christians and Atheists have a big problem. Demographics are tilting in favor of Islam, via both birth rate and conversions.
Most Christians and most Atheists don't have the balls to respond to the violent Arab world. (possible exceptions: the Russians, the Chinese, and George W. Bush)
one example would be to display a table with a drop down for selecting colors, fetching the color list from the database for every row even if it's the same for all of them
Programmers often work in teams on large projects. They may even work for different employers, supplying libraries to a 3rd party who puts them together.
Programmer X does an array index operation to get the color name. He's assuming that this is really fast.
Programmer Y overloads operator[] so that he can internationalize the code. In all the usage examples he's ever seen, nobody looks up color names in a loop. He's assuming that this isn't done.
Assuming 32-bit floats, the "small" array is 40 gigabytes. It's fairly uncommon to have that, but not entirely implausible.
The large array is 4 petabytes. There are very few computers in the world that can handle such a thing even today, never mind "a long time ago". The memory allocation would fail. For normal FORTRAN 77 arrays, the program wouldn't even start.
I guess I could see it with C++ using a sparse array class, but your "long time ago" physicist wouldn't be doing that. He'd be using FORTRAN 77 or older.
We wouldn't be getting as much info as we'd be giving away, even if we could trust other countries to abide by that sort of deal.
It's all defense-related anyway, when you consider how the state of the economy affects war. An impoverished USA can't afford the gear to protect allies like Taiwan, South Korea, and Japan.
Third, placement of weapons of mass destruction in space is prohibited by treaty. It would be pretty easy to detect violations, without even having any spies on the ground.
We have lots of classified stuff in orbit. How would you detect that a military satellite is capable of spitting out a nuke?
IMHO, it's idiocy to assume that one's foes haven't already violated the treaty, and idiocy to not violate it. That's how the game is played, and you play to win if you care about your country.
sit is up to you to ensure that said progeny have equal support from you to pursue desires in sports and technology
Support their true desires should it be technology, sports or hair dressing.
Sports and hair dressing are both crap. Multiply the expected income with the probability of success, and you'll see that neither pays off.
As for the girls I have, I hope to send them off to a very male-dominated engineering school... to find nice husbands. In the EE department at a place like Worchester Polytechnic, even an unattractive girl can catch a nice one. Completing the degree and working some damn office job is plan B, a tragedy but still better than sports or hair dressing.
BTW, I wish I knew where my sons could find smart women to have children with.:-( There isn't an easy hunting ground for them. For the girls, simply being in an engineering class does the job.
Keeping your woman barefoot and pregnant means starvation in just another generation or two.
Yes and no. You forget that women are not all the same. Right now, it's only the smart ones that are finding things to do other than being pregnant. That will result in starvation because there won't be any more smart kids. Imagine a world without smart people.
Keeping your woman barefoot and pregnant already means starvation in some parts of the world. Try to keep up - we don't have unlimited resources, and we can't breed like roaches or rats.
We can and we will, because evolution is real.
Right now the primary selection pressure in the developed world is birth control. Some people are "able" to overcome it, resulting in numerous children. We are breeding for people who produce people; this is what evolution does.
Suffering is the natural state of any organism, and we certainly will return to that state. It's a given, according to evolution.
You will note that I do NOT advocate that women should be kept barefoot and pregnant, and kept out of any field of work.
Without smart mothers, where is our future? Smart kids (future adults to form our society) come from smart parents. Women who work outside the family don't have many kids. Any nerd should realize that evolution is real, and it doesn't always lead to greater intelligence.
Being barefoot and pregnant is a privilege. It needs to be deeply respected, at least for women who produce better-than-average kids.
Shoes are not really good for you. They change your stride to be heal-first and they promote fungal growth.
Pregnancy and breastfeeding greatly reduces the risk of breast cancer. Women are genuinely made to birth and nurse lots of babies. Given proper support and appreciation, this is naturally very satisfying.
The problems come when people demean the job with words like "just a housewife" or "not working" or "not doing anything with her life". Wipe those foul words from your thoughts and give the mothers some respect!
sometimes they're as innocuous as writers for sitcoms and television showing that women should play the subservient role in any relationship or else it will fall apart
Seriously? Have you watched any sitcom newer than The Brady Bunch?
Today the men are drooling idiots. The women are always right. TV writers know their audience: women. TV writers also know that it isn't politically correct to show the women in a negative light, but plots still require somebody to fill that role.
You WILL assume a gamma value.
Dumb code implicitly assumes a 1.0 gamma. Most files are approximately the sRGB gamma, which is 2.2 if you ignore some oddities. Very rarely you may encounter an ancient Mac file with a 1.8 gamma.
So, if you do nothing, you're at 1.0 and sucking hard on most files.
Applying square and square root (gamma 2.0) is really cheap and easy, and it gets you a lot closer. I think you can even vectorize it in one direction.
1. some photos show it more than others (try a sharp photo of a pile of brightly colored plastic toys, showing well-defined edges between the different colors)
2. maybe RAW photos start off with gamma 1.0
Check the Gimp bug database. It has complaints going back many many years. Trouble is, a bug report is easy to ignore and/or misunderstand.
Getting this fixed requires sitting down with all the core developers and using small words until it sinks into their thick skulls.
In what sense is it not a scaling algorithm bug?
This affects alpha blending, including anti-aliased drawing tools.
I think people tolerate it because it's like traditional cartoons: you get a bit of a dark line around everything, more or less. IMHO, that's yucky.
Serious problems happen when you repeat an operation in the same spot. Things like a smudge tool get an odd sort of asymmetry, with black-to-white and white-to-black operations being different.
32-bit is of course linear, thus fixing the problem.
It's rare to have anything 12 bits or more that isn't linear, and rare to have anything 8 bits or less that isn't.
16-bit half floats aren't natively supported by Intel. You can do 4 floats in an XMM register (SSE) or 4 shorts in an MMX register. Even w/o vectorization, integers and 32-bit floats are easy. Using 16-bit half floats may seem easy in some programming languages, but it's not nice for the CPU.
The "magic" tools are done right. Scaling (for stamps) needs fixing.
It's GPL. Grab the code if you want it: rgblinear.c and rgblinear.h have what you need.
(and yes, the difference is very noticable for special-effect paint tools)
Why am I supposed to respect an all-encompasing way of life (not a mere "religeon") that insists on killing people who quit?
There are a dozen countries in which this is the law. If you are thought to have stopped being Muslim, the government will execute you.
Elsewhere, it happens without official government sanction. It is considered every Muslim's duty to kill somebody who leaves. If a Muslim becomes Christian or Atheist, they will be killed. The MUST be killed.
WTF? This is the ultimate disrespect for non-Muslims. Why in hell should I respect them? If anything, a bit of pre-emptive (before they ALL get nukes) self defense is in order.
There are plenty of others that were launch sites for the USA or USSR/Russia, but only South Africa really quit.
BTW, Russia has something like 2x what the USA does. Any sort of disarmament needs to start with them, and they've been caught violating treaties numerous times.
After more than 30 years of life, I have not found much to be gained from your Western values, culture and your vapid mindless "entertainment" that my people are so fond of aping.
Same here, and I'm a non-Muslim in the USA.
Note that we are both on Slashdot. That could have something to do with it.
I'll guess the people in your country who ape the vapid mindless entertainment are not Slashdot readers.
Assuming Arabic means Islam, and non-Arabic means either Christian or Atheist...
Muslims believe they have a duty to kill somebody who leaves the faith. See the "Aposty in Islam" wikipedia article if you are clueless about this. There are a dozen countries where the government actually imposes the death penalty for leaving Islam.
Seriously, WTF? How can any Christian or Atheist respect such an evil load of shit?
Then there is the matter of democracy being considered immoral because it suggests that man can make laws. All law is found in the Koran (Sharia). How can you deal with a person who insists on such a thing? Separation of church and state ("give to Ceasar...") is a Christian idea.
Christians and Atheists have a big problem. Demographics are tilting in favor of Islam, via both birth rate and conversions.
Most Christians and most Atheists don't have the balls to respond to the violent Arab world. (possible exceptions: the Russians, the Chinese, and George W. Bush)
one example would be to display a table with a drop down for selecting colors, fetching the color list from the database for every row even if it's the same for all of them
Programmers often work in teams on large projects. They may even work for different employers, supplying libraries to a 3rd party who puts them together.
Programmer X does an array index operation to get the color name. He's assuming that this is really fast.
Programmer Y overloads operator[] so that he can internationalize the code. In all the usage examples he's ever seen, nobody looks up color names in a loop. He's assuming that this isn't done.
Assuming 32-bit floats, the "small" array is 40 gigabytes. It's fairly uncommon to have that, but not entirely implausible.
The large array is 4 petabytes. There are very few computers in the world that can handle such a thing even today, never mind "a long time ago". The memory allocation would fail. For normal FORTRAN 77 arrays, the program wouldn't even start.
I guess I could see it with C++ using a sparse array class, but your "long time ago" physicist wouldn't be doing that. He'd be using FORTRAN 77 or older.
kernel debugger
We can send a 35 megaton cobalt-salted warhead. You get it in 30 minutes or it's free. Heck, we can probably get it there in 5 minutes.
We show we care by sending the very best. :-)
We wouldn't be getting as much info as we'd be giving away, even if we could trust other countries to abide by that sort of deal.
It's all defense-related anyway, when you consider how the state of the economy affects war. An impoverished USA can't afford the gear to protect allies like Taiwan, South Korea, and Japan.
Third, placement of weapons of mass destruction in space is prohibited by treaty. It would be pretty easy to detect violations, without even having any spies on the ground.
We have lots of classified stuff in orbit. How would you detect that a military satellite is capable of spitting out a nuke?
IMHO, it's idiocy to assume that one's foes haven't already violated the treaty, and idiocy to not violate it. That's how the game is played, and you play to win if you care about your country.
I'm saying those women mostly don't exist. Your wife is an outlier. Good for her.
(assuming she has more than 3 kids)
Intelligent mothers are the foundation of society. Right now we're mostly doing without, which will ultimately destroy civilization.
sit is up to you to ensure that said progeny have equal support from you to pursue desires in sports and technology
Support their true desires should it be technology, sports or hair dressing.
Sports and hair dressing are both crap. Multiply the expected income with the probability of success, and you'll see that neither pays off.
As for the girls I have, I hope to send them off to a very male-dominated engineering school... to find nice husbands. In the EE department at a place like Worchester Polytechnic, even an unattractive girl can catch a nice one. Completing the degree and working some damn office job is plan B, a tragedy but still better than sports or hair dressing.
BTW, I wish I knew where my sons could find smart women to have children with. :-( There isn't an easy hunting ground for them. For the girls, simply being in an engineering class does the job.
You're forgetting the risks of STDs, getting abandoned, getting attacked, and having the children attacked.
Sticking with one single male is a moderately good way to avoid all those problems.
Keeping your woman barefoot and pregnant means starvation in just another generation or two.
Yes and no. You forget that women are not all the same. Right now, it's only the smart ones that are finding things to do other than being pregnant. That will result in starvation because there won't be any more smart kids. Imagine a world without smart people.
Keeping your woman barefoot and pregnant already means starvation in some parts of the world. Try to keep up - we don't have unlimited resources, and we can't breed like roaches or rats.
We can and we will, because evolution is real.
Right now the primary selection pressure in the developed world is birth control. Some people are "able" to overcome it, resulting in numerous children. We are breeding for people who produce people; this is what evolution does.
Suffering is the natural state of any organism, and we certainly will return to that state. It's a given, according to evolution.
You will note that I do NOT advocate that women should be kept barefoot and pregnant, and kept out of any field of work.
Without smart mothers, where is our future? Smart kids (future adults to form our society) come from smart parents. Women who work outside the family don't have many kids. Any nerd should realize that evolution is real, and it doesn't always lead to greater intelligence.
Being barefoot and pregnant is a privilege. It needs to be deeply respected, at least for women who produce better-than-average kids.
Shoes are not really good for you. They change your stride to be heal-first and they promote fungal growth.
Pregnancy and breastfeeding greatly reduces the risk of breast cancer. Women are genuinely made to birth and nurse lots of babies. Given proper support and appreciation, this is naturally very satisfying.
The problems come when people demean the job with words like "just a housewife" or "not working" or "not doing anything with her life". Wipe those foul words from your thoughts and give the mothers some respect!
sometimes they're as innocuous as writers for sitcoms and television showing that women should play the subservient role in any relationship or else it will fall apart
Seriously? Have you watched any sitcom newer than The Brady Bunch?
Today the men are drooling idiots. The women are always right. TV writers know their audience: women. TV writers also know that it isn't politically correct to show the women in a negative light, but plots still require somebody to fill that role.
Acceptable to the authorities? Weird.
Yes. I know, it's weird. I encountered this with the principal at my elementary school.
Traditional brawling is considered minor. That certainly includes punching and wrestling.
I'm not sure if that includes kicking somebody on the ground or not; fortunately I never had to find out.
Throwing things is considered offensive, even if the object is insignificant.
It all has something to do with manliness I guess. It's probably rooted in traditions that go back centuries.
This makes IE support Theora. You can then serve up video in Theora format, avoiding the MPEG LA fees.
It'll be fast enough to work, but not as fast as the native Theora video in Firefox and Chrome.
Given that computers are getting to be plenty fast, I think you can sum up the situation this way: better battery life for Firefox and Chrome users.
Given that the teacher doesn't know who started it, what would you have them do?
punish neither?
punish the whole class? (seen it!)
pick a random kid to punish?
punish the kid with worse grades?