Re: new to programming in Linux

From: Pasi Parviainen (parviainen.pasi_at_kolumbus.fi)
Date: 06/18/04

  • Next message: DEMAINE Benoit-Pierre: "monitor-68HC08_1.01 has been released."
    Date: Fri, 18 Jun 2004 18:46:37 +0300
    
    

    Roger Leigh wrote:
    > On 2004-06-18, Pasi Parviainen <pasi.parviainen@mirasys.fi> wrote:
    >
    >>
    >>Roger Leigh wrote:
    >>
    >>
    >>>On 2004-06-16, Tim <not@likely.com> wrote:
    >>>
    >>>
    >>>>Java seems attractive, probably because I´ve heard of it. Is it possible to
    >>>>write good, fast programs in Java?
    >>>
    >>>"Fast" and Java don't generally go together. I've only dabbled a
    >>>little, but even the simplest interfaces (dialog with a close button)
    >>>were slow.
    >
    >
    >>People should really look the numbers and forget old mantra "Java is slow."
    >
    >
    > If my own experience shows it to perform like a dog, why should other
    > peoples measurements make it better? That won't make it work for me,
    > will it?
    Of course not!

    >
    > The test program was three dialogs: two which were simple entries to
    > enter numbers, and one to display a result (the two numbers multiplied
    > together). So each dialog was either a label or entry, plus an OK
    > button. Each dialog took 2-3 second to display. That's unacceptable:
    > if this was GTK+, it would be nearly instantaneous.
    >
    > If it's that bad for a trivial dialog, I can't bear to think about how
    > bad a real application will be. (Those I have seen did not perform
    > well.)
    >
    >
    >>Take pointers (for example) from here:
    >>http://www.idiom.com/~zilla/Computer/javaCbenchmark.html
    >
    >
    > Benchmarks are useless. Sure, under some workloads, it's OK. But the
    > performance of Swing was laughable.
    Didn't look what that article said?

    >
    > Some of those benchmarks show Java can be OK. But that wasn't my point.
    > My point was that Swing was so slow as to be barely usable. I tested
    > on both Windows and Linux.
    >
    >
    >>>The SunONE IDE was completely unusable on my PIII 900MHz
    >>>laptop.
    >>
    >>Memory, eh? The most significant thing for Java slowness is short of
    >>system memory.
    >
    >
    > 256 MiB core and 512 MiB swap should be enough for one program! This
    > was on a Windows machine, BTW. That is more than average, and if it
    > can't run in that much, that's not acceptable.
    Yeah. Memory costs and such...
    Well, I'm running IntelliJ IDEA (100% pure Java) with my 1.2GHz machine
    with 512MB memory, well above accepted bar. I'm happy.

    At the same time when I compare my KDE applications, I don't see
    difference on performance. Maybe my KDE and X is so slow...?... ;-)

    Oh, and the same time my windows box has 1GB memory and 2.8GHz
    processor, and it is usable. But that is different story.

    --
    Pasi Parviainen, Chairperson
    Open Source Finland - OSF ry
    www.opensourcefinland.org/en
    

  • Next message: DEMAINE Benoit-Pierre: "monitor-68HC08_1.01 has been released."

    Relevant Pages

    • Re: Ranting about JVMs default memory limits...
      ... It looks like Windows is indeed smart enough to use virtual address spaces that are per user process. ... on Windows each process has its own virtual address space. ... A lot of "Java is slow" seems to be the result of a GC running constantly to keep memory requirements to withing some ancient, ...
      (comp.lang.java.programmer)
    • RE: Virtual memory
      ... You can configure virtual memory in windows xp and thereby improve the ... How to set performance options in Windows XP ... if you have background programs such as printing or disk ... It is also known as the paging file. ...
      (microsoft.public.windowsxp.perform_maintain)
    • [NT] NNTP Service in Windows Contains Memory Leak
      ... NNTP Service in Windows Contains Memory Leak ... An affected server could be restored to normal service by ...
      (Securiteam)
    • Re: Physical Memory
      ... These Windows services are started: ... Memory optimizers/defragers are nothing more than snake ... These optimizers work by making demands on the Windows Memory Manager ... The funny thing about all of this nonsense is that the snake oil memory ...
      (microsoft.public.windowsxp.general)
    • Re: Waking up sleeping Java applications
      ... Not only that, the virtual machine ... With java you are running a program that is itself running a program. ... part of the Microsoft Windows environment. ... where Java dll's are held in memory to enable faster app startup. ...
      (comp.lang.java.programmer)