Slashdot Mirror


User: toriver

toriver's activity in the archive.

Stories
0
Comments
3,513
First seen
Last seen
Profile
(view on slashdot.org)

Comments · 3,513

  1. Re:Opera is Worse on Why IE Is So Fast ... Sometimes · · Score: 2

    Nonsense. Opera gets its speed by opening multiple connections as it encounters e.g. an IMG or whatever element that requires a separate download.

  2. Re:See Singularity. on How Will Animals Look 250 Million Years From Now? · · Score: 2
    morph into almost any imaginable shape and/or becoming uploads traversing the universe

    Ah, I see someone has been watching the could-have-been-last Babylon 5 episode again (The Deconstruction of Falling Stars). Note: That was supposed to be 10 million years into the future.

  3. Re:Article Updated; My Comments on Your Comments! on Linux Number Crunching: Languages and Tools · · Score: 2
    Because, my dear fellow, the import statement implies usage;

    Only on part of the programmer; the compiler will try to resolve those classes, but there is no requirement for the code to use any names imported. Additionally, the lack of an import does not prevent usage.

    there is no point in importing something you do not use

    But it's both perfectly possible and legal even though it's pointless.

    but the specification of an import implies (almost always correctly) that something is being loaded at run-time.

    No, it only means that a name becomes available at compile-time. Runtime loading of classes depend on the class references in the compiled class file, which may or may not be related to import statements.

    import java.awt.*;
    public class test {
    }
    Compile this, and the resulting class file will not have any reference to java.awt in it.
    public class test2 {
    java.net.URL = null;
    }
    Compile that, and the class file will reference java.net.URL even though it has no import.

    "import" in Java is the same as "uses namespace" in C++. Nothing more, nothing less.

  4. Re:Article Updated; My Comments on Your Comments! on Linux Number Crunching: Languages and Tools · · Score: 2
    "import" does, indeed, increase run time if it brings in classes used by the program.

    No, because the class file only concerns itself with actual classes referenced in the code: Whether you use import or fully qualified class names in the source is irrelevant.

    Every class used from a class has its fully qualified name in the class file, whether the programmer used "import foo.*;" or not. Import statements are only relevant at compile time - if you meant to talk about class use why did you bring up import statements?

  5. Re:Article Updated; My Comments on Your Comments! on Linux Number Crunching: Languages and Tools · · Score: 2
    The start-up time increases with the number of imports

    No it doesn't: import statements only affect compilation. Can you consult someone with some Java knowledge next time?

    How am I timing the results? With the Linux time command. Table 3 reports the real value reported by time (the elapsed time of execution.) Embedding timers in the actual code is fraught with problems; for example, each language implements different time scales and abilities. I'm sure someone will tell me that time is full of problems too, but it works for me and is consistent across all programming languages.

    Sure, but you end up measuring something else than execution speed of your code - thus it ends up as misleading for languages running in a virtual machine, like Java, Perl or Python. It becomes very misleading to call it a true benchmark.

    (It's a bit like measuring the average driving speed of two cars, where you in one instance measures one driver from when he opens the door and drives away, and another from when he gets dressed before going out to the car.)

    Timing only the loop itself, my findings puts JRE 1.4.1_01 on par with g++. (Caveat: System.currentTimeMillis() on Windows has an inaccuracy of between 10 and 20 ms.)

  6. Re:Lies, damn lies, and people who don't know... on Linux Number Crunching: Languages and Tools · · Score: 2

    Thanks for the strictfp warning, I removed that and timed the outermost loop. On my P4 2.8 GHz running Windows XP Pro that yielded:

    C:\temp>C:\usr\java\j2sdk1.4.1_01\bin\java.exe -cp . -client almabench
    Time: 51.953

    C:\temp>C:\usr\java\j2sdk1.4.1_01\bin\java.exe -cp . -server almabench
    Time: 68.079

    I guess it would have been even better on Linux. :-)

  7. Re:Occam's Razor. . . on E ~ mc^2 · · Score: 2
    God set the rules that the Universe plays by and the Universe went and played by those rules ...

    Ah, the Intelligent Design hypothesis. Wonderful. And if God was so powerful he could lay down those rules, then whatever created God must have been even mightier...

    if God did not set the rules, who/what did?

    Does someone/something need to have set them? And which of the many gods people have believed in did? The Christian God is a late-comer to the "party", and seems to be a derivate of older faiths anyway. In fact, shouldn't you be a Hindu instead? They had a creation myth for centuries before you guys.

  8. Re:Lies, damn lies, and people who don't know... on Linux Number Crunching: Languages and Tools · · Score: 2
    For starters, he's using 2-dimensional arrays, so of course Java is going to be slower. 2-dimensional arrays in C++ are actually 1-dimensional arrays with some syntactic sugar thrown in.

    Also, the arrays are initiated element by element since Java doesn't have a "data segment". If he measures time outside the program from start to finish he will get VM startup time etc. in addition to that.

    As such, it doesn't play very well against the JVM's optimiser, which is oriented towards Java code with much different structure.

    Well, at least the "meat" of the code is in methods which are called often enough that some optimizations can be thrown in. There is also a curious absence of the "strictfp" keyword that might improve things.

    Now, if he had taken System.currentTimeMillis() before the loop and after and computed the difference, a more relevant number would emerge...

  9. Re:Who cares? A bunch of ancient arcade-y junk on Top Ten Shameful Games · · Score: 2

    I guess you don't read old books either? After all, language has evolved so far lately that e.g. Agatha Christie or J.R.R. Tolkien must be "old hat".

    (There is a point there, just look for it.)

  10. Proprietary platform on GNU Christmas Gift: Free Eclipse · · Score: 2

    I guess their next goal would be to have GCC not target that proprietary platform, Windows...

  11. Re:A very fair remedy on Microsoft Ordered to Carry Java · · Score: 2
    dotNET is language neutral.

    No, it's not. It sets forth requirements (the CLS) that a compiler needs to support in order to compile for the runtime (the CLR). Yes, a lot of languages actually do compile to the CLR, but e.g. C++ needs a lot of "tweaking" in order not to commit sins from its C past.

    old FOTRAN or COBOL decks

    Care to provide reference to anyone making .Net-targeting compilers for those languages? If you mean precompiled code (executables), you leave .Net's managed environment and start calling into "unsafe" code via COM+, and that's not .Net but its bridge to pre-existing systems.

    Sun is on a religious trip with its 100% pure Java

    but not everyone else is. There are several compilers already which target the JVM, for languages like Python, Smalltalk, ...

    dotNET also eliminates the performance penalty that is inevitable with the bytecode approach.

    No, it just eliminates one intermediate step between byte code and machine code, in that the generated machine code is cached for later use. There really is no other benefit over Java's Hotspot or other adaptive VMs.

  12. Re:They didn't violate the contract... on Microsoft Ordered to Carry Java · · Score: 2
    They just implemented some specs differently: COM components were possible and some interfaces were developed using native code. (the things Sun does too in the JVM for Solaris).

    A vast over-simplification. Granted, Sun were slow in specifying JNI so that both Netscape and Microsoft created their own APIs for "native". But Microsoft waited longer than 6 months with implementing JNI, which was a violation of contract.

    Also, they added two unofficial keywords, plus made changes to classes in the "java" package hierarchies; if you tried to run code compiled with Visual J++ 1.1 on a Sun or IBM VM, it could fail because of this.

  13. Re:Stupid courts, what next? Burger kings in Wendy on Microsoft Ordered to Carry Java · · Score: 2
    the vast majority of people have elected to use their platforms

    Um, you are aware of the anti-competitive practices of Microsoft where they effectively banned vendors from offering other operating systems? Some choice: Windows or Windows.

    let other companies ride on that popularity.

    Funny, I seem to recall a certain Redmond, WA company that loves that other companies write software for their operating system and thus ensure its continued use.

    It's stupid

    Your misplaced allegories are. The choice between Burger King and McDonald's is real, the choice between Windows and other operating systems is not, because of secondary markets (read: software).

  14. Re:Ummm.....Slashdot is at it again on Microsoft Ordered to Carry Java · · Score: 2
    3) MS adds extensions for Windows only development, which are optional to developers depending on their target market (HINT: Apple has Cocoa extensions in Java......samething......they are optional)

    I think you will find that Cocoa neither introduces new keywords (like "delegate") nor changes to the classes in the "java" package hierarchy, both of which Microsoft did. And which were violations of the license.

    If Microsoft had put 100% of their "extensions" in the "com.ms" package tree (instead of 99%) Sun would not had any complaints. But they didn't.

    On the client side Java is becoming irrelivent...

    Really? I have used exactly one .Net client application (and it was dog slow) whereas I run and write client-side Java-applications a lot. Or are you using the false "client software = shelfware" definition?

  15. Re:Great Feature on Opera Gives That C64 Feel · · Score: 2

    You're not seeing the forest for the trees: The real features that underlie the "nostalgia feature" are

    1) CSS level 2 support, and
    2) Multiple, customizing stylesheets you can turn on or off as you wish.

    MSIE has some catching up to do.

  16. Re:Next up: lynx mode? on Opera Gives That C64 Feel · · Score: 2

    If you open "Preferences", select "Page style" and check "My style sheet" in the "Author mode" box, you can use the customizing style sheets even in Author mode...

    To add your own, add them to the [Local CSS Files] section in opera6.ini; the initial set are 1-12, so start at 13.

  17. Re:Cool. That means I should be able to get . . . on The Vanishing HailStorm · · Score: 2

    I thought the ideas in Bob mutated into the Office Paperclip? Much like Sauron twisted elves into orcs? :-)

  18. Re:No international links on Kid-Safe Domain Created · · Score: 2
    Of course, kids.us is for the US. I mean, there's nothing that stops a kids.uk or kids.cx (please, no jokes).

    The point, I think, was whether you could link from *.kids.us to content on those kids.uk etc. sites. As stated, that doesn't seem to be the case, thus ensuring the kids' ignorance of things like the metric system. :-P

  19. Re:so? on Kid-Safe Domain Created · · Score: 2
    Would you let your child watch R-rated horror movies when they are 6, 7 or 8 years old?

    I find it sickening that you compare learning about perfectly normal bodily functions with watching horror movies.

    Trying to restrict information, images, language etc. does not make something go away. Don't pretend it does, that is just stupidity.

    (Also, because of hormone-like food additives, girls occasionally hit puberty at 8 or 9. Do you want to keep them in the dark, or that they "learn" from a "nice uncle" with a bag of sweets in the park?)

  20. Re:And it doesn't work very well. on Slashback: Panama, Leeches, Comeuppance · · Score: 2

    Yes, it's an Opera thing: Opera ignores the onLoad event when it goes back, and code in elements is considered to already have been run (any inline content from document.write() is of course present in what you see.)

  21. Re:I'd like to see if this is *really* possible! on Another Millionaire Spammer Story · · Score: 2

    Anyway, it's far nicer than

    shutdown -s -m \\your.computer -t 0 -f

  22. Re:Debt? on Jedi Archives In Dublin Library? · · Score: 2

    And Arrakis owes a little to Lawrence of Arabia. So what?

  23. Re:ENOUGH with the anime evangilism, please. on The Significance of Anime · · Score: 2

    Here the poor /. admins have gone to great lengths to ensure Anime is a separate category that people not interested can choose not to see.

    And then an AC barfs.

    Register, dorkhead, and choose not to read Anime stories!

  24. Re:Uh... on Global Warming will Open Northwest Passage · · Score: 2
    Ice is less dense

    Mostly. As I understand it, water is at its "densest" at +4 Celsius; ice will normally be at 0 (at 1 atm pressure) or below, but if the water is, say, 8-9 degrees or so the difference isn't necessarily that much.

  25. Re:Beams are a concern, and lifetime. on Tidal Power a Reality · · Score: 2
    If your beam intensity is large enough to be useful (many times the intensity of sunlight), then it will cook birds that fly through it,

    Only if you use wavelengths that are absorbed by the birds. That's not a reqirement, there is a whole spectrum available.