Slashdot Mirror


User: AndersDahlberg

AndersDahlberg's activity in the archive.

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

Comments · 34

  1. Re:Don't use Java.... on Java Performance Tuning, 2nd Ed. · · Score: 1

    "1) *The* Java VM is very difficult to port. Java VMs in general aren't, but if you want something that is performance competitive, you need one of the big ones. This is a pain at the application level, but would suck for a systems-level language like C/C++."
    I think you're confusing the *java vm* with the *java runtime environment*, e.g.

    http://java.sun.com/docs/books/vmspec/2nd-editio n/html/VMSpecTOC.doc.html - approximately compiled (on win32 platform) to << 1mb dll's (could probably squeze it into << 100kb if you wanted to remove some parts- e.g. CDC, using SWT instead of Swing + AWT etc.). If you consider porting this rather few native files hard... ok, so be it - and

    http://java.sun.com/j2se/1.4.2/docs/api/index.ht ml - runtime environment which consists of "pure" java classes that when necessary binds with these earlier mentioned dll's. - this classes needs not be ported at all (don't mention bugs please - remember WORA ;)

  2. Re:Many Java projects rewritten in other languages on Java Performance Tuning, 2nd Ed. · · Score: 1

    http://industry.java.sun.com/javanews/stories/prin t/0,1797,16725,00.html ,
    http://industry.java.sun.com/javanews/stories/p rint/0,1797,23836,00.html

    yada yada yada

    Gig of ram per web view? You're totally clueless...

  3. Re:PHP and Perl ... on .NET for Apache · · Score: 1

    LOL - sure nailed him/her with that comment :)

    ((s)he probably didn't even get it :)

  4. Re:How could it be unbiased? on One Runtime To Bind Them All · · Score: 1

    blah, blah interpreteded, blah blah blah You should really try to investigate *what* makes a program fast - no, native compiling everything doesn't make something faster often quiet the opposite actually. And the .NET vm is actually more interpreted than most people know (for example do a google groups search on what eric gunnarson has to say about the subjet at comp.lang.java.advocasy - he wrote a c# book and is working on .NET project...)

  5. Re:The crux of his argument on De Icaza Responds on Mono and GNOME · · Score: 1

    "The problem with the Java VM is really that it's written to run Java, and Java only. All features and optimizations are geared towards this. For a few languages that turn out to have much the same features, it is doable, but for other languages it results in some incredibly ugly - and slow - hacks. CIL:s advantage is solely - but importantly - that it's designed to accomodate multiple languages (sort of the difference between a FORTH processor or signal processor and a general-purpose CPU). "

    But the CLI is also a hack!
    Check out why (or just replace java with c# in the above rant...)
    http://www.javalobby.org/clr.html Not truly objective but the facts still aply - CLI is heavily optimized for C# and no other language.

  6. Re:Java - the perverse language on JBoss Founder Interview · · Score: 1

    ahh, that was what I was saying - "do not forget handling exceptions 'and closing io-streams ;)" hehe here you go:
    BufferedReader br = ...
    try {
    ... } catch (IOException ioe) {
    ...
    } finally {
    try {
    br.close();
    catch(IOException ioe) { ...}
    }

  7. Re:Java - the perverse language on JBoss Founder Interview · · Score: 1

    something like: String nameOfStupidPerson = null; try { BufferedReader br = new BufferedReader(System.in); nameOfStupidPerson = br.readLine(); } catch (IOException ioe) { System.err.println("A system problem: " + ioe.getMessage()); System.exit(1); } System.out.println(nameOfStupidPerson + " is a dumb ass"); Perfectly safe and a lot clearer than the c++ version... (and for heavens sake: don't forget checking forexceptions - or else your customers will kill you)

  8. Re:And why can't you use Java? on Portable Coding and Cross-Platform Libraries? · · Score: 1

    Sure, java have not YET got all the small unix nicities with socket - but asynchronous is there now anyway (chechout jdk1.4beta3 + swt - www.eclipse.org, and you got a choice that is a LOT faster than c/c++ - native gui, interface in java, implementation in c with jni (windows/linux + java portability)

  9. Re:My letter to Bob on C# To Crush Java? · · Score: 1

    http://java.sun.com/j2se/1.4 there you go! try not to be blinded by the highspeed hacking though ;)