well.. the linked article features three benchmark comparisons between concated and StringBuffer.append()ed Strings. One is won by concat. Two are won by StringBuffer.
I seem to remember seeing some benchmark that said that native compiled code was actually slower than the Hotspot JRE.
Can any confirm this and/or explain how this is possible?
well..
it surely depends on your definition of "faster". Java has a quite a start performance loss due to the initialization of the java-vm itself, class-validation etc.
So if you just fire up a C++ and a java tool, doing some expensive calculation and measure the overall execution time , c will be much faster.
( measuring java startup time in performace tests is like regarding the system boot for C++ performance. =)
But java has an advantage - hotspot compilation. It delays compilation for a while (e.g. 20000 method invocations) and uses heavy optimization techniques on the those parts of the code which proved to be the hot spots. It can rely on real usage statistics and can optimize things a static compiler couldn't. It uses massive method inling up to a degree only possible due to deoptimization (In case new code is dynamically loaded into the VM).
One benefit of method inlining is the saved method calls and bigger method blocks which can be optimized to a higher degree. On this the optimizer performs all the classic optimizations, including dead code elimination, loop invariant hoisting, common subexpression elimination, and constant propagation - plus some java specific optimizations like null-check and range-check elimination.
As long as i have been using XFree (measured in years) it has had the ability to copy and paste between windows. Well, some programs don't accept ctrl+c/ctrl+v copy-pasting, but all accepts "select"->"middle click".
sorry to burst your bubble..
mozilla's reaction the selecting + middle click was : a messagebox "The URL is not valid and could not be loaded"
Politcal THEORY has killed millions of people in the last century. Hitler, Stalin, Mao and many, many others directly caused the deaths of millions of people, based on their politcal theories.
Why not shut down the political science depts at universities? Political theory has been PROVEN to be far more dangerous than science.
I think that such physical things as atom bombs, guns and chemical weapons killed a fair share of those people.
.. and I don't really need MORE people telling what I'm allowed to think.
Nothing would be worse than M$ buying borland. It would be the end of JBuilder--a fantastic java IDE. Not to mention delphi and KYLIX! This would be B*A*D.
given the licensing of JBuilder it fits perfectly into the microsoft product range. (restrictive, enforced, single-user licenses for about 4000 Euro per place)
this was the reason the company I worked at chose NetBeans over JBuilder.
<off-topic>
yes, Eclipse might be faster, but Netbeans trumps with a modularity I have yet to see in any other software product and is the more mature plattform.
Does Windows log noteworthy events somewhere like the Unix syslog? If so, where is it?
Event Viewer. In 2000/XP, go to Control Panel -> Administrative Tools -> Event Viewer. Works just like/var/log/messages.
just like/var/log/messages?
Unfortunately, the error messages are mostly like this :
"Service W3SVC aborted due to unknown reasons. The following measures will be
taken: Nothing" (real IIS error message, retranslated from german to english)
> If you are, then why all the hate?
> Why are you Linux zealots out in anger and frothing at the mouth over a product they (supposedly) don't use from a company they so hate?
With computers invading more and more vital parts of our daily lives, the question who controls the software with what kind of methods becomes an increasingly politic problem.
The days were Microsofts monopolistic behaviour was only a nuisance to some computer geeks are gone.
Nowadays I think it's time to oppose Microsofts plans as strongly as any other attempt to undermine our democratic liberties - whether you use Microsoft products or not.
as there is no real link between the colors you see and the words you describe them with, its of course possible that all colors are randomly swapped between different people.
if you mix the color named 'blue' with the color named 'yellow' you get the color named 'green'.
although this statement may be true for (nearly all) people it has nothing to do with the colors those people see.
regarding all the ecological problems we're still making worse and worse, i think we can be lucky if mankind survives the next 1000 years. before you start worrying about whether or not we are still here when the sun burns out you should worry about environmental issues.
I live in germany, too. i heard about this kind of devices in some "news"-show.. but they reported them being popular in japan (no mentioning of german equivalents). I haven't seen or heard of anyone using it here, either.
well.. the linked article features three benchmark comparisons between concated and StringBuffer.append()ed Strings. One is won by concat. Two are won by StringBuffer.
The one which ends in favor for concat is :
contrawhich I wouldn't even code after some days without any sleep.Guess I'll keep using StringBuffer.append()...
it surely depends on your definition of "faster". Java has a quite a start performance loss due to the initialization of the java-vm itself, class-validation etc.
So if you just fire up a C++ and a java tool, doing some expensive calculation and measure the overall execution time , c will be much faster.
( measuring java startup time in performace tests is like regarding the system boot for C++ performance. =)
But java has an advantage - hotspot compilation. It delays compilation for a while (e.g. 20000 method invocations) and uses heavy optimization techniques on the those parts of the code which proved to be the hot spots. It can rely on real usage statistics and can optimize things a static compiler couldn't. It uses massive method inling up to a degree only possible due to deoptimization (In case new code is dynamically loaded into the VM).
One benefit of method inlining is the saved method calls and bigger method blocks which can be optimized to a higher degree. On this the optimizer performs all the classic optimizations, including dead code elimination, loop invariant hoisting, common subexpression elimination, and constant propagation - plus some java specific optimizations like null-check and range-check elimination.
The longer your code runs - the faster it gets.
Or the all-time-classic "Error 0x4e75fffe"
sorry to burst your bubble..
mozilla's reaction the selecting + middle click was : a messagebox "The URL is not valid and could not be loaded"
start-c64..
enter "POKE 53280,0:POKE 53281,0:POKE646,0"
you'll see blue letters on a black background.
reset c-64
enter "POKE 53280,0:POKE 53265,0"
that one blanks the screen und is much shorter =).
</auto-optimze-off>
.. cause it's fucking cold here, you insensitive clod.
I think that such physical things as atom bombs, guns and chemical weapons killed a fair share of those people.
.. and I don't really need MORE people telling what I'm allowed to think.
I AM NOT COWBOY NEAL!
given the licensing of JBuilder it fits perfectly into the microsoft product range. (restrictive, enforced, single-user licenses for about 4000 Euro per place)
this was the reason the company I worked at chose NetBeans over JBuilder.
<off-topic>
yes, Eclipse might be faster, but Netbeans trumps with a modularity I have yet to see in any other software product and is the more mature plattform.</off-topic>
no m_lpszFilename..
no m_pModuleState..
does that mean that microsoft code will get much more readable now?
just like /var/log/messages?
Unfortunately, the error messages are mostly like this :
That's really usefull...
> If you are, then why all the hate?
> Why are you Linux zealots out in anger and frothing at the mouth over a product they (supposedly) don't use from a company they so hate?
With computers invading more and more vital parts of our daily lives, the question who controls the software with what kind of methods becomes an increasingly politic problem.
The days were Microsofts monopolistic behaviour was only a nuisance to some computer geeks are gone.
Nowadays I think it's time to oppose Microsofts plans as strongly as any other attempt to undermine our democratic liberties - whether you use Microsoft products or not.
Don't know exactly, but you could try:
<WINDOWS-DIR>\System32\regsrv32.exe /u <FULL DLL-PATH>
to unregister a active-x control../. would be googled, of course.
as there is no real link between the colors you see and the words you describe them with, its of course possible that all colors are randomly swapped between different people.
if you mix the color named 'blue' with the color named 'yellow' you get the color named 'green'.
although this statement may be true for (nearly all) people it has nothing to do with the colors those people see.
One of the most driven cars in germany is the "Volkswagen Golf" or short "VW Golf".
("Golf" is a german word meaning both "gulf" and "golf".)
So when it entered the american market the gulf-oil company complained about the name.
So that's why it's called "VW rabbit" in the USA.
it's nearly impossible to decide whether a domain name is used or not.
..(Insert babbling about chaos or infinitely typing monkeys)
what if I run a script with some algorithm producing a website?
I can update the site in any interval you would like.
random?.. yes, indeed.. that's why it is a piece of art
argh.. if you want to borrow some expression from Nietzsche then use the correct spelling :
Übervirus - from german über mostly meaning above. (see this Dictionary entry for about 190 different meanings =)
And if you have no 'Ü'-Key on your Keyboard - hey.. that's HTML here.. the correct character is just an Ü away.
you're joking, aren't you?
regarding all the ecological problems we're still making worse and worse, i think we can be lucky if mankind survives the next 1000 years.
before you start worrying about whether or not we are still here when the sun burns out you should worry about environmental issues.
well.. not exactly.. but very close =)
I live in germany, too. i heard about this kind of devices in some "news"-show .. but they reported them being popular in japan (no mentioning of german equivalents). I haven't seen or heard of anyone using it here, either.