Once you put in some braces to limit the lifetime and scope of n (your temporary), and when you factor in the implicit boolean conversion in the while clause, and the fact the code that calls 'copy' to perform a copying operation, I don't think you have much of a readability case. You have 5 lines (including enclosing braces) where std::copy needs 1.
On auto_ptr, perhaps you're forgetting that the intended use is to convert dynamic lifetime into scoped lifetime, like the built-ins. Eg. having member auto_ptrs instead of member pointers (and therefore the dtor doesn't have to call delete). Yes, I agree it is stupid to write Java style C++ new-ing every object instance, where a stack instance would work, giving you immediate, simple lifetime control (by tieing it to scope).
... which seems to imply that a NASDAQ-1000 would be more useful since the turnover on membership would have a lesser impact and give a stabler, more meaningful index. yeah? perhaps they struggled to find 1000 meaningful tech stocks...
Perhaps the spam sites that are being DDOSed by Lycos include these sites, either because the DB of spam sites is wrong, or the spammers have re-directed (perhaps at DNS level) the traffic....
Re:you forgot patents!
on
HIV Vaccine
·
· Score: 1
surely if the patent term is longer in the US the patent developer/ holder would have more sales over which to recoup the investment+risk of developing the drug, therefore the price would be lower?
I tutor physics at A-level (last years of high-school); I take photographs (for qualifications and for money); I program to make digital art; I consult (software).
"Combining ID cards with passports and driving licenses was the key way to force them on an often unwilling UK population, and seems to have gone for good"
The cards will not be combined with passports and driving licenses, but everyone applying for either a passport or a driving license will have to get an ID card too. I.e. very little has changed in the compulsory nature of the proposed cards.
As other repliers have pointed out in individual cases, only 1 thread in Firefox does any real work, so there is no (or very little measurable) benefit to adding another CPU for Firefox users. The difference here is between 'multi-threaded' and 'designed for multi-processing'. Firefox is multi-threaded, but not designed for multi-processing, like nearly all desktop apps. (This is because parallelizing an application's processing is very hard work, in almost all cases - how would one divide the work of HTML rendering [nearly all of the work in Firefox] accross CPUs, without adding more locking/mutexing/semaphoring overhead than one gains?).
I suspect that the reason is the treaty that the US and the UK signed that means a very high level of co-operation and limits on the level of evidence required in order to extradite from the UK to the US. This agreement is probably more powerful than anything existing between the UK and Swiss govt (Switzerland is NOT in the EU remember) or even within the EU.
I read an interesting article a while back (linked off/.) about a mac user who tracked down an ebay scammer who ripped him off over an {i,Power}Book. The shipping address was in a city, and the city cop who he contacted was too busy to work on the case (simple mail fraud was not important enough). However, the next time the guy pulled the scam, the shipping address was out in the 'burbs and the local cop was bored (having no work) so jumped at the chance to nail a crim, put a lot of hours in, and got the guy.
So wealthy suburbs don't necessarily have a shortage of police manpower....
As another poster says, it is a very bad idea for software developers to read patents, since it leaves them open to deliberate infringement claims. Patents are meant (under the US constitution) to be an exchange of new information for a time-limited monopoly on the invention. Software patents are only useful to softare developers*. Software developers do not read software patents. The quid pro quo of a software patent is nothing. They serve society none of the intended benefit!
The readability point strengthens the motivation (lack thereof) of software developers to read software patents. If you can't learn how GIF compression works by reading the patent, what use is it?
* Because they are the only ones who can use what they learn from reading patents (if a business man can learn from a patent, it's probably a business method patent (urgh!)).
which is the patent under dispute? "one application asking another for help" is meaningless-ly vague. What does the patent cover? How does Java infringe? When did Kodak inform Sun that they were infringing? You can't claim signigicant damages for non-intentional, unknown patent infringement.
See this article for a more interesting take.
A. It's not hard to build PCs and pirate Windows onto them (most companies won't 'cos the risk of audit is high, whereas consumers have less money so are less important market).
B. Even if true, so what? 80% of cars are used to break speed limits. There is no cogent argument here.
... not just that. The Aristide story is one of {mis,dis}information being spread by the US govt (basically saying "We didn't do it!"). Mysteriously this did not seem to be picked up much in the US. Aristide says he didn't resign. He phoned people up to tell them he was being kidnapped. It's an interesting insight into (real) high-level policking and power-brokering. Democracy Now suggests that the new regime in Haiti is pretty bad....
But network consolidation is good for telcos too because managing a packet-only network is easier than managing a packet network and a circuit network and cheaper. Done well, a packet network can achieve higher throughput on the same pipes too. Also packet technologies are improving very quickly and getting cheaper per bps quickly too.
Of course there is the point that if I VOIP to someone on the same exchange as me, I'll probably make a long distance connection (exchange my ISP someone's ISP exchange).
and here in the UK, we steer a bizarre middle course where we protect the children from all nudity, and (used to) cut the violence too. perhaps we (now) have a better balance, not being as puritan about nudity&sex as the Americans, but not being as blood-shy as the Europeans? or maybe we are the worst of each put together...
audacity's back-end is based on a custom version of sound package nyquist. It is a lisp and has a linux port. It can be used for programmatic sound generation, and being a lisp, you're always in the environment (no need to hack up a multithreaded editor/ interpreter).
negativland's most famous (notorious) record featured samples of outtakes of a radio DJ, and a screwed-up cover of an old U2 record.
"Still, how can a sample-based music recording artist talk the incumbent owners of copyright into granting permission to use decent libraries of complex samples (that is, not just horn samples, drum samples, or anything else that one would normally think to put in modplug to build traditional music out of)?"
Good point. I think that a solution might involve these 2 good ideas (not mine): an equivalent to covering rights, where anyone can cover anyone's music, as long as they pay the writer's portion of the royalties, so that anyone can sample anything and pay some portion of royalties; if a recording goes out of print (ie unavailable) copyright should revert to the artist.
You might like to listen to this (which is an example of the type of sample-based music you initially mentioned).
"There are an infinite number of collisions for ANY hash function."
That's what I thought until I read this article: SHA-0,1 are only defined for messages of less than 2^64 bits. Therefore there can only be a finite number of collisions.
std::copy vs.
int n;
while (cin >> n)
v.push_back (n);
Once you put in some braces to limit the lifetime and scope of n (your temporary), and when you factor in the implicit boolean conversion in the while clause, and the fact the code that calls 'copy' to perform a copying operation, I don't think you have much of a readability case. You have 5 lines (including enclosing braces) where std::copy needs 1.
On auto_ptr, perhaps you're forgetting that the intended use is to convert dynamic lifetime into scoped lifetime, like the built-ins. Eg. having member auto_ptrs instead of member pointers (and therefore the dtor doesn't have to call delete). Yes, I agree it is stupid to write Java style C++ new-ing every object instance, where a stack instance would work, giving you immediate, simple lifetime control (by tieing it to scope).
... which seems to imply that a NASDAQ-1000 would be more useful since the turnover on membership would have a lesser impact and give a stabler, more meaningful index. yeah? perhaps they struggled to find 1000 meaningful tech stocks...
Perhaps the spam sites that are being DDOSed by Lycos include these sites, either because the DB of spam sites is wrong, or the spammers have re-directed (perhaps at DNS level) the traffic....
surely if the patent term is longer in the US the patent developer/ holder would have more sales over which to recoup the investment+risk of developing the drug, therefore the price would be lower?
I tutor physics at A-level (last years of high-school); I take photographs (for qualifications and for money); I program to make digital art; I consult (software).
no money, but proofreading (and for a good cause).
"The value of an OO language in larger projects is enormous."
And the kernel, at more than 4 MLOC isn't large enough?
"Combining ID cards with passports and driving licenses was the key way to force them on an often unwilling UK population, and seems to have gone for good"
The cards will not be combined with passports and driving licenses, but everyone applying for either a passport or a driving license will have to get an ID card too. I.e. very little has changed in the compulsory nature of the proposed cards.
As other repliers have pointed out in individual cases, only 1 thread in Firefox does any real work, so there is no (or very little measurable) benefit to adding another CPU for Firefox users. The difference here is between 'multi-threaded' and 'designed for multi-processing'. Firefox is multi-threaded, but not designed for multi-processing, like nearly all desktop apps.
(This is because parallelizing an application's processing is very hard work, in almost all cases - how would one divide the work of HTML rendering [nearly all of the work in Firefox] accross CPUs, without adding more locking/mutexing/semaphoring overhead than one gains?).
[nt]
I suspect that the reason is the treaty that the US and the UK signed that means a very high level of co-operation and limits on the level of evidence required in order to extradite from the UK to the US. This agreement is probably more powerful than anything existing between the UK and Swiss govt (Switzerland is NOT in the EU remember) or even within the EU.
I read an interesting article a while back (linked off /.) about a mac user who tracked down an ebay scammer who ripped him off over an {i,Power}Book. The shipping address was in a city, and the city cop who he contacted was too busy to work on the case (simple mail fraud was not important enough). However, the next time the guy pulled the scam, the shipping address was out in the 'burbs and the local cop was bored (having no work) so jumped at the chance to nail a crim, put a lot of hours in, and got the guy.
So wealthy suburbs don't necessarily have a shortage of police manpower....
As another poster says, it is a very bad idea for software developers to read patents, since it leaves them open to deliberate infringement claims. Patents are meant (under the US constitution) to be an exchange of new information for a time-limited monopoly on the invention. Software patents are only useful to softare developers*. Software developers do not read software patents. The quid pro quo of a software patent is nothing. They serve society none of the intended benefit!
The readability point strengthens the motivation (lack thereof) of software developers to read software patents. If you can't learn how GIF compression works by reading the patent, what use is it?
* Because they are the only ones who can use what they learn from reading patents (if a business man can learn from a patent, it's probably a business method patent (urgh!)).
"It eradicated Malaria"
I assume you implied "in a certain area", 'cos malaria sure as hell isn't eradicated globally (1 million deaths per annum)...
which is the patent under dispute? "one application asking another for help" is meaningless-ly vague. What does the patent cover? How does Java infringe? When did Kodak inform Sun that they were infringing? You can't claim signigicant damages for non-intentional, unknown patent infringement.
it's 'cos Sun is hyping Java 5 (ie 1.5). Ergo lots of articles about Java.
See this article for a more interesting take.
A. It's not hard to build PCs and pirate Windows onto them (most companies won't 'cos the risk of audit is high, whereas consumers have less money so are less important market).
B. Even if true, so what? 80% of cars are used to break speed limits. There is no cogent argument here.
... not just that. The Aristide story is one of {mis,dis}information being spread by the US govt (basically saying "We didn't do it!"). Mysteriously this did not seem to be picked up much in the US. Aristide says he didn't resign. He phoned people up to tell them he was being kidnapped. It's an interesting insight into (real) high-level policking and power-brokering. Democracy Now suggests that the new regime in Haiti is pretty bad....
But network consolidation is good for telcos too because managing a packet-only network is easier than managing a packet network and a circuit network and cheaper. Done well, a packet network can achieve higher throughput on the same pipes too. Also packet technologies are improving very quickly and getting cheaper per bps quickly too.
Of course there is the point that if I VOIP to someone on the same exchange as me, I'll probably make a long distance connection (exchange my ISP someone's ISP exchange).
That is rather distorted for front benchers (in particular the PM and his cabal) because they so rarely vote.
and here in the UK, we steer a bizarre middle course where we protect the children from all nudity, and (used to) cut the violence too. perhaps we (now) have a better balance, not being as puritan about nudity&sex as the Americans, but not being as blood-shy as the Europeans? or maybe we are the worst of each put together...
yup! see his book list too.
audacity's back-end is based on a custom version of sound package nyquist. It is a lisp and has a linux port. It can be used for programmatic sound generation, and being a lisp, you're always in the environment (no need to hack up a multithreaded editor/ interpreter).
negativland's most famous (notorious) record featured samples of outtakes of a radio DJ, and a screwed-up cover of an old U2 record.
"Still, how can a sample-based music recording artist talk the incumbent owners of copyright into granting permission to use decent libraries of complex samples (that is, not just horn samples, drum samples, or anything else that one would normally think to put in modplug to build traditional music out of)?"
Good point. I think that a solution might involve these 2 good ideas (not mine): an equivalent to covering rights, where anyone can cover anyone's music, as long as they pay the writer's portion of the royalties, so that anyone can sample anything and pay some portion of royalties; if a recording goes out of print (ie unavailable) copyright should revert to the artist.
You might like to listen to this (which is an example of the type of sample-based music you initially mentioned).
"There are an infinite number of collisions for ANY hash function."
That's what I thought until I read this article: SHA-0,1 are only defined for messages of less than 2^64 bits. Therefore there can only be a finite number of collisions.