Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
02/16/07 14:36
Read: times


 
#133128 - And..???
Responding to: ???'s previous message
Craig Steiner said:

I think I've only used one Java application on an ongoing basis. The interface is a little clunky and apparently doesn't use OS-based common dialogs, so it just feels out of place.


There will likely never be a completely satisfying solution for this. In order to be portable you have to create a completely function portable GUI widget set. It will never look fully native because each platform has a different subset of features. Java ends up with a least common denomonator of them.

I suffer a noticable problem along these lines on Mac OS X. Java apps have their own menu bar. They don't use the Mac menu bar.

Craig Steiner said:

And after I've run it for more than about 30 minutes I usually have to reboot the machine to recover the speed of my machine. Shutting the program down isn't enough--the machine still remains slow even after the Java program is done executing.

I'd write that off as a Windows OS problem but I had the exact same problem with the exact same application on Linux. But it was nice to run the same slow application on either OS. :)

Regards,
Craig Steiner



Is it safe to assume you had the exact same amount of memory on both platforms? You should have been able to troubleshoot better on Linux. How much VM was in play? Was it thrashing? What did the JVM pmap/pfiles look like? Being slow after exiting is likely caused by a bunch of swap space being in use. You shoved a bunch of idle pages out to the disk, and they don't come back until the MMU trips on them. If you were playing with one of the big Java dev apps, you probably have an app server hiding in the proc table somewhere.


Java memory managemant is kind of disingenious too. They teach new people that the garbage collector just takes care of things, but it's implementation dependant. System.gc() is a hint, not a mandate. If I had a nickel for every time I've had a developer say "but we called System.gc()".


Anyhow... I'm not much of a Java coder, or any other kind of coder for that matter. But I spend a lot of time doing server side QA on large highly scalable web apps. It can be made to work, and then it works well. I just wish it was easier to make it work well in the first place.


BTW - You've probably discovered a clue as to why I'm playing with 8051's. :-)


Rob





List of 27 messages in thread
TopicAuthorDate
A third way?            01/01/70 00:00      
   NO!!! That's WAY too slow!            01/01/70 00:00      
   Do you not remember that on out old 10MHz PCs thin            01/01/70 00:00      
      this exactly right            01/01/70 00:00      
         Jez, re "elegant code"            01/01/70 00:00      
      Actually            01/01/70 00:00      
         I was cauteous            01/01/70 00:00      
            Our code has to be elegant            01/01/70 00:00      
   What about ...            01/01/70 00:00      
   Fine with me            01/01/70 00:00      
      Try NetBeans            01/01/70 00:00      
         NetBeans            01/01/70 00:00      
      Really?            01/01/70 00:00      
         I've observed that, too ... How do they do it?            01/01/70 00:00      
         Oh, you have managed to port it :)            01/01/70 00:00      
         And..???            01/01/70 00:00      
            and fast too?            01/01/70 00:00      
               Different worlds            01/01/70 00:00      
                  "buy a faster PC"            01/01/70 00:00      
                     Buying faster PC... by the time it's finished...            01/01/70 00:00      
                     Yep.            01/01/70 00:00      
                        developers idiotic attitude that everyone else            01/01/70 00:00      
                        the way to do it ...            01/01/70 00:00      
                           would the above not make the usual            01/01/70 00:00      
                              It would make 'em anxious to get the job done            01/01/70 00:00      
            what?            01/01/70 00:00      
               No!            01/01/70 00:00      

Back to Subject List