Java surpassed C++ performance many years ago, and by such a wide margin that no one even bothers running benchmarks anymore.
Do you have definite proof of that categorical statement or are you talking out of your ass?
In general, I have found that most benchmarks in which Java surpasses C++ in speed were done by people who have either poor understanding of C++ (using sub-optimal constructs) or poor familiarity with the compiler (using sub-optimal optimization options).
Here's what I found:
Przemyslaw Bruski in his take on the Java vs C++ benchmark writes:
When looking at C++ code, I've noticed many performance problems, which probably may go unnoticed for people with strong Java background. These problems were not present in Java code. In other words, to make this benchmark fair, I had to make some modifications to the original code. In doing so, I tried to make the code as close to the original as possible, even if my personal coding style is completely different. The results?
On Intel, all tests but two ended with C++ being better. Overall, C++ was twice as fast as Java. On Athlon, every individual test ended with C++ performing better than Java. Overall, C++ was three times faster than Java.
Nikolaus Gebhardt in his blog entry about C++ vs. Java 1.6 - A fair Benchmark writes:
Knowing a bit about the C++ and Java optimizers, I was also able to revert the results completely. For example although using equivalent Java and C++ code, I was able to make the C++ version take 16 seconds for the nested loops-test while Java only needed 1 second by adding some virtual method calls which I knew Java could optimize. I also was able to make the C++ version run in only 78 ms while the equivalent Java version needed even 10 seconds by only using static loops - the C++ optimizer then would not even loop anything and just add the values together. This is partially what some of the wrong benchmarks out there are doing - even if not intentional. The results?
To make it short: As I expected C++ outperforms Java in every single test. But interestingly Java is getting closer now
To summarize: 1. That when benchmarking an algorithm in a programming language, you have to use the most efficient implementation for the language you are testing. 2. That it does not matter that language X is slower than language Y as long as it is fast enough for the task at hand. 3. That AKAImBatman was talking out of his ass.
the act of reproducing all or any substantial part of
(a) a musical work embodied in a sound recording,
(b) a performer's performance of a musical work embodied in a sound recording, or
(c) a sound recording in which a musical work, or a performer's performance of a musical work, is embodied onto an audio recording medium for the private use of the person who makes the copy does not constitute an infringement of the copyright in the musical work, the performer's performance or the sound recording.
Sonds to me like the assholes in power are trying to circumvent the laws for the benefit of American corporate interests..
Think for a moment: not only would the treaty be illegal in, for example, Canada, but can you imagine the government touching this treaty with a 10' pole? After NAFTA? With a minority government? With the public and media attention currently on the unfair and heavy-handed tactics being used to pressure Canada into adopting US copyright laws right now?
Allow me to quote an article from Saturday's National Post. (emphasis and notes mine)
Border officials may seize iPods under trade deal International regulator could police copyright
Vito Pilieci, Canwest News Service Published: Saturday, May 24, 2008
OTTAWA - The federal government is secretly negotiating a copyright agreement that could make some information on Canadian iPods, laptop computers or other personal electronic devices illegal.
Called the Anti-Counterfeiting Trade Agreement (ACTA), the new plan would see Canada join other countries, including the United States and members of the European Union, to form an international coalition against copyright infringement.
The agreement is being structured much like the North American Free Trade Agreement except it will create rules and regulations regarding private copying and copyright laws.
Federal trade agreements do not require parliamentary approval.
The deal would create an international regulator that could turn border guards and other public security personnel into copyright police. The security officials would be charged with checking laptops, iPods and even cellular phones for content that "infringes" on copyright laws, such as ripped CDs and movies.
The guards would also be responsible for determining what is infringing content and what is not.
The agreement also proposes that any content that may have been copied from a DVD or digital video recorder would be open for scrutiny by officials -- even if the content was copied legally. [1]
The leaked ACTA document states officials should be given the "authority to take action against infringers (i. e., authority to act without complaint by rights holders)."
Anyone found with infringing content in their possession would be open to a fine. They also may have their device confiscated or destroyed, according to the four-page document.
"If Hollywood could order intellectual property laws for Christmas, what would they look like? This is pretty close," said David Fewer, staff counsel at the University of Ottawa's Canadian Internet Policy and Public Interest Clinic.
Michael Geist, Canada research chair of Internet and E-commerce law at the University of Ottawa and an expert on Canadian copyright law, said, "The lack of consultation, the secrecy behind it and the speculation that this will be concluded within a matter of months without any real public input is deeply troubling."
Both Mr. Fewer and Mr. Geist said once Canada signs the new trade agreement it will be next to impossible to back out of it.
In Canada, border guards already perform random searches of laptops at airports to check for child pornography. ACTA would expand the role of those guards.
The deal could also impose strict regulations on Internet service providers, forcing them to hand over customer information without a court order.
[1] All private copying of music is legal in Canada.
Think for a moment: not only would the treaty be illegal in, for example, Canada, but can you imagine the government touching this treaty with a 10' pole? After NAFTA? With a minority government? With the public and media attention currently on the unfair and heavy-handed tactics being used to pressure Canada into adopting US copyright laws right now?
Thinking about it...
Yes, I can not only imagine it but see it happening.
I expect they'll continue to shape traffic even when they can't prove that it's required because the internet infrastructure they do provide is virtually indispensable and there'll be squat the CRTC can do to enforce it.
So lawyers lie. It seems to be an accepted practice. I was just wondering why NYCL felt justified in saying that lying lawyers should be disbarred.
Since NYCL is a lawyer himself, you should be more precise in phrasing your questions. You asked if they should be disbarred and he gave you his opinion that yes, they should. Ask him if they do get disbarred and you'll get a different answer.
I gave Eclipse a spin, just a few weeks ago. It was a confusing, frustrating and fruitless experience.
I am a long-time Visual Studio user (from VC++ version 1.0 on Windows 3 to VS 2005). Coming to Eclipse, I'd _really_ appreciate an ability to use Visual Studio key mappings in it. It would make the experience much less frustrating.
Is it possible without manually setting each key binding?
Unfortunately, we blew our chance to fix the system. So we're stuck with a system where a party that got 10.5% of the popular vote has 16.5% of the seats while one that got 17.5% of the votes has less than 9.5% of the seats (not to mention the Greens with 4.5% of the votes and zero seats).
And if you can be bothered to read the whole page, you'll find the following requirements:
# Licensing by a provincial or territorial association of professional engineers is required to approve engineering drawings and reports and to practise as a Professional Engineer (P.Eng.).
# Engineers are eligible for registration following graduation from an accredited educational program, three or four years of supervised work experience in engineering and passing a professional practice examination.
I would have loved to have fought it. But when (the BSA) went to Congress to get their powers, part of what they got is that I automatically have to pay their legal fees from day one. That's why nobody's ever challenged them--they can't afford it.
Here's how you you attack an infrastructure without all that "high tech" bullshit
Prerequisite: Coordinate with lots of people (using/. is acceptable)
try {
1) Find out the customer support number. 2) Set aside a couple of hours, get comfortable with a phone and a good book (or in front of the TV). 3) Dial the number in step #1 4) Read the book (or watch TV) while on hold. 5) When you get a person, ask their full name, then keep them on the line for a while complaining about the issue. 6) Ask to be transferred to a supervisor. Insist on it. Be polite but firm. Use phrases like "I am sorry but this is just not acceptable" and "Mr/Ms $full_name, are you refusing my legitimate request to escalate the issue?". Do not let the algorithm terminate at this point. 7) Repeat step #4 while on hold for supervisor. 8) When you get the next person, get their full name, then complain to them. Keep complaining even if they promise a solution. Keep them on the line as long as possible. Try to not let the algorithm terminate at this point. 9) Every once in a while inquire about the possibility of escalating your call even higher. 10) If they agree to escalate, repeat from step #7.
} catch {
10) If you were cut off, call again to complain about $full_name being rude to you and hanging up on you. Use the same tactics to waste their time and "escalate" as high as you can get. 11) If by some fluke you seem to reach somebody in the corporate structure, engage them in *polite* conversation regarding the unethical behavior of their company. Mention that you are typing a letter to your representative / the FCC / the local paper as you speak.
}
12) Repeat from step #1 until it's no longer fun. 13) Post about your experience to several fora, encourage others to play too. 14) Take a break. 15) GOTO #1 (nuts to you, Dijkstra!)
Are there any other indicators of REM sleep (except EEG changes and the actual eye movement) that can be detected with simple and relatively unobtrusive equipment?
Taping electrodes to one's head is problematic and some people find the eye cover too disturbing.
Do you have definite proof of that categorical statement or are you talking out of your ass?
In general, I have found that most benchmarks in which Java surpasses C++ in speed were done by people who have either poor understanding of C++ (using sub-optimal constructs) or poor familiarity with the compiler (using sub-optimal optimization options).
Here's what I found:
On Athlon, every individual test ended with C++ performing better than Java. Overall, C++ was three times faster than Java.
To summarize:
1. That when benchmarking an algorithm in a programming language, you have to use the most efficient implementation for the language you are testing.
2. That it does not matter that language X is slower than language Y as long as it is fast enough for the task at hand.
3. That AKAImBatman was talking out of his ass.
Best regards,
Alex
Is there any reason for them not to be safe on an local, internally administered mail server?
Outgoing email is a different issue altogether.
For your sake, I hope your company doesn't have any trade secrets.
Spealing of SLC vs. MLC.
What are the best (fast, reliable) SLC-based USB keys?
Except that private copying of music is legal in Canada.
the act of reproducing all or any substantial part of
(a) a musical work embodied in a sound recording,
(b) a performer's performance of a musical work embodied in a sound recording, or
(c) a sound recording in which a musical work, or a performer's performance of a musical work, is embodied
onto an audio recording medium for the private use of the person who makes the copy does not constitute an infringement of the copyright in the musical work, the performer's performance or the sound recording.
Sonds to me like the assholes in power are trying to circumvent the laws for the benefit of American corporate interests..
Time to contact your Member of Parliament and express your displeasure. Snail mail works best, no stamp is needed.
Allow me to quote an article from Saturday's National Post.
(emphasis and notes mine)
[1] All private copying of music is legal in Canada.
Yes, I can not only imagine it but see it happening.
Since NYCL is a lawyer himself, you should be more precise in phrasing your questions.
You asked if they should be disbarred and he gave you his opinion that yes, they should.
Ask him if they do get disbarred and you'll get a different answer.
Relativity is all about high speeds.
Perhaps you were thinking about Newton?
Coming to Eclipse, I'd _really_ appreciate an ability to use Visual Studio key mappings in it.
It would make the experience much less frustrating.
Is it possible without manually setting each key binding?
4 Actually:
Conservatives
Liberals
NDP
Bloc Québécois
Unfortunately, we blew our chance to fix the system. So we're stuck with a system where a party that got 10.5% of the popular vote has 16.5% of the seats while one that got 17.5% of the votes has less than 9.5% of the seats (not to mention the Greens with 4.5% of the votes and zero seats).
> So I asked my youngest son, who is an astrophysicist and techie, and he set me straight.
> And my life hasn't been the same since.
I know exactly how you feel.
My youngest son (who is 3 and has an opinion on everything) also loves setting me straight.
I want magic !
(In my lifetime)
We are facing the same problem.
http://www.michaelgeist.ca/content/view/2601/125/
> Absorption would happen through the colon.
But that can put you in a comma.
[old fart mode on]
/. is acceptable)
You youngsters think you got it figured out?
Here's how you you attack an infrastructure without all that "high tech" bullshit
Prerequisite: Coordinate with lots of people (using
try {
1) Find out the customer support number.
2) Set aside a couple of hours, get comfortable with a phone and a good book (or in front of the TV).
3) Dial the number in step #1
4) Read the book (or watch TV) while on hold.
5) When you get a person, ask their full name, then keep them on the line for a while complaining about the issue.
6) Ask to be transferred to a supervisor. Insist on it. Be polite but firm. Use phrases like "I am sorry but this is just not acceptable" and "Mr/Ms $full_name, are you refusing my legitimate request to escalate the issue?". Do not let the algorithm terminate at this point.
7) Repeat step #4 while on hold for supervisor.
8) When you get the next person, get their full name, then complain to them. Keep complaining even if they promise a solution. Keep them on the line as long as possible. Try to not let the algorithm terminate at this point.
9) Every once in a while inquire about the possibility of escalating your call even higher.
10) If they agree to escalate, repeat from step #7.
} catch {
10) If you were cut off, call again to complain about $full_name being rude to you and hanging up on you. Use the same tactics to waste their time and "escalate" as high as you can get.
11) If by some fluke you seem to reach somebody in the corporate structure, engage them in *polite* conversation regarding the unethical behavior of their company. Mention that you are typing a letter to your representative / the FCC / the local paper as you speak.
}
12) Repeat from step #1 until it's no longer fun.
13) Post about your experience to several fora, encourage others to play too.
14) Take a break.
15) GOTO #1 (nuts to you, Dijkstra!)
Going on a tangent,
Are there any other indicators of REM sleep (except EEG changes and the actual eye movement) that can be detected with simple and relatively unobtrusive equipment?
Taping electrodes to one's head is problematic and some people find the eye cover too disturbing.
Does anyone seriously think that $21M/year is going to change the US behavior?