Slashdot Mirror


User: fforw

fforw's activity in the archive.

Stories
0
Comments
252
First seen
Last seen
Profile
(view on slashdot.org)

Comments · 252

  1. Re:The original post is wrong, anyway... on Java Performance Tuning, 2nd Ed. · · Score: 1

    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 :

    String result = "This is"+ "testing the"+ "difference"+ "between"+
    "String"+ "and"+ "StringBuffer";
    contra
    StringBuffer result = new StringBuffer();
    result.append("This is");
    result.append("testing the");
    result.append("difference");
    result.append("between");
    result.append("String");
    result.append("and");
    result.append("StringBuffer");
    which I wouldn't even code after some days without any sleep.

    Guess I'll keep using StringBuffer.append()...

  2. Re:Native Code vs. HotSpot on Java Performance Tuning, 2nd Ed. · · Score: 1

    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.

    The longer your code runs - the faster it gets.

  3. Re:OT: Greek philosophers on Still More on Global Warming · · Score: 1
    In Norwegian it is Aristoteles and Platon, probably in the posters native tounge too.
    In german it's Aristoteles and Platon, too.
  4. Re:Crazy Programmers! on Can Your PC Become Neurotic? · · Score: 1

    Or the all-time-classic "Error 0x4e75fffe"

  5. Re:3D Tour for Windows Kernel Code? ;-) on 3D Visualization of Linux Kernel Development · · Score: 5, Funny
    How would a 3D animation look on slashdot dupes?
    repetitive..
  6. Re:Ach, more of the X-mess on Significant Interactivity Boost in Linux Kernel · · Score: 1
    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"

  7. Re:[OT] sig on Microsoft Opens Source to China · · Score: 1
    Funny nobody found the *FUNDAMENTAL* bug in my sig yet.

    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>

  8. Re:This has happened before on OSS Officially On Microsoft's Financial Radar Screen · · Score: 1
    Rather than freaking out and writing posts about 'M$' and so on, why not go outside and get some fresh air?

    .. cause it's fucking cold here, you insensitive clod.

  9. Re:Just ridiculous! on Dyson On Grey Goo, Bioterrorism, and Censorship · · Score: 1

    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.

  10. Re:Breaking SlashDot News!!! on Star Wars Galaxies Only to Allow One Character Per Account · · Score: 0, Offtopic
    son.. you need to find a better way to handle your adoloscent identification problems... repeat it with me :

    I AM NOT COWBOY NEAL!

  11. Re:HOLY HELL! on Microsoft to Buy Rational and/or Borland? · · Score: 1
    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.

    </off-topic>

  12. Re:Why? on Is W3C's P3P Good Privacy? · · Score: 1
    Most end users don't realize that a shopping cart doesn't work correctly because their browser is denying cookies.
    so.. why do you use cookie?
  13. No more m_hWnd.. on Charles Simonyi leaves Microsoft · · Score: 1

    no m_lpszFilename..

    no m_pModuleState..

    does that mean that microsoft code will get much more readable now?

  14. Re:A Windows guru answers... on New Way To Grade Decay of Computer Installations · · Score: 1
    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)

    That's really usefull...

  15. Re:Not only that, but MS has EARNED the ridicule on The Ideas Behind Longhorn · · Score: 1

    > 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.

  16. Re:WTF???? on Microsoft's Goal, Security Through Obscurity? · · Score: 1

    Don't know exactly, but you could try:

    <WINDOWS-DIR>\System32\regsrv32.exe /u <FULL DLL-PATH>

    to unregister a active-x control..
  17. obviously not on Great points in Usenet history · · Score: 1

    /. would be googled, of course.

  18. Colors can be randomly swapped on Neural Coloring In: How The Mind Sees Color · · Score: 1

    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.

  19. Renamed brand example on Samba Runs Into Naming Problems In Germany · · Score: 1

    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.

  20. Re:Name disputes on WIPO Rules Against Sting · · Score: 1

    it's nearly impossible to decide whether a domain name is used or not.

    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 ..(Insert babbling about chaos or infinitely typing monkeys)

  21. Ü NOT U! on Building The Ubervirus · · Score: 1

    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 &Uuml; away.

  22. Re:NASA's Aimlessness on Failure Is Not An Option · · Score: 1

    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.

  23. Re:How is that amusing? on German Governmental Agency Says: Use Open Source · · Score: 1
    it's not only the grammar. the frequent use of compound words adds to this too. (see Mark Twains essay The awfull German language for this)

  24. PI = 355/113 on Happy Pi Day! · · Score: 1

    well.. not exactly.. but very close =)

  25. Re:Hip in Germany? on Date Pagers · · Score: 1

    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.