The Following User Says Thank You to attila77 For This Useful Post: | ||
|
2011-03-01
, 00:09
|
|
Posts: 57 |
Thanked: 26 times |
Joined on Feb 2010
@ Melbourne, Australia
|
#172
|
|
2011-03-01
, 06:39
|
Posts: 726 |
Thanked: 345 times |
Joined on Apr 2010
@ Sweden
|
#173
|
I believe that we're talking about the same thing (but I may be wrong). First, I don't understand how pagefaults are related to memory fragmentation. In fact, I'd think that pagefaults are an inverse function of memory fragmentation since with fragmentation it would be possible to reuse the same memory without needing a pagefault to extend the process's VM.
So the question stands: Do you have any (comparable with java) example of memory fragmentation in C under Linux?
The Following User Says Thank You to Joorin For This Useful Post: | ||
|
2011-03-01
, 10:43
|
Posts: 1,341 |
Thanked: 708 times |
Joined on Feb 2010
|
#174
|
I believe that we're talking about the same thing (but I may be wrong). First, I don't understand how pagefaults are related to memory fragmentation.
....
So the question stands: Do you have any (comparable with java) example of memory fragmentation in C under Linux?
|
2011-03-01
, 22:06
|
Posts: 1,341 |
Thanked: 708 times |
Joined on Feb 2010
|
#175
|
Because it has no HW level access and only knows whatever the kernel tells it to. It's been a problem even for native apps...
This was the promise 10 years ago when I was heavily involved with Java, however those super-HW-optimized JVMs have never materialized.
What has materialized were various JSRs which are mostly hated very passionately as they managed to make Java one of the (if not THE) most fragmented mobile platform.
Easier to read ? Maybe some templates or non-Qt stdlib code, but other than that... I for one don't miss Java's verbosity. Plus C++ is most of the time faster even without JIT, exists on far more platforms and hasn't got the problem of a megacorp deciding it's (and its developers) fate.
Actually that's one of the shortcomings of Java - people seem to be using threads by the boatload (mostly inertia as AIUI it's not necessary since Java 5), and threads make those optimizations nigh impossible. And we know that, as Alan Cox said, threads are for people for don't know how to program state-machines
But anyway, we're running in circles for some time now. You say it will be better - I say, whatever floats your boat, but reality can be really uncooperative when it comes to these academic explorations. Over and out.
|
2011-03-03
, 13:33
|
Posts: 3,319 |
Thanked: 5,610 times |
Joined on Aug 2008
@ Finland
|
#176
|
JVM and most (all) of the VMs are native apps. It is a lousy OS if it doesn't let applications know information which benefits the user. Linux for example lets apps know (/proc/cpuinfo)
And I wonder, if Nokia would had got Meego phone ready in the last year already if it would had used Python (+Qt) to develop UX and not C++ (Qt+QML). C++ is known to have poor productivity especially in group work and very especially when using offshore outsourcing.
The Following 5 Users Say Thank You to attila77 For This Useful Post: | ||
|
2011-03-04
, 04:00
|
|
Posts: 1,789 |
Thanked: 1,699 times |
Joined on Mar 2010
|
#177
|
it's like Prisoner's dilemma.
The ideal setup is IMHO Python+QML for extremely quick prototyping and then gradually replacing the Python functions with C++ for better resource usage & performance.
|
2011-03-04
, 09:49
|
|
Posts: 1,637 |
Thanked: 4,424 times |
Joined on Apr 2009
@ Germany
|
#178
|
Okay ... but how would a mobileOS constructed around Python+QML fare against one such as Dalvik+JIT ?
1) Do the advantages of C++ (or Qt/QML) outweigh the advantages of java (or Dalvik/VM)??
2) Does the disadvantages of java (Dalvik/VM) outweigh those of C++ (or Qt/QML)??
Based on my newbie-view (you can stop reading here if you want)
the way I see it with java;
-you get the advantage that its "easier" to develop
-more people know java coding, perhaps more developers
With C++/Qt/QML;
-you get very responsive applications (no slow animations)
-less buggy* (easy to correct mistakes; this one's personal)
-your work can be recycled and re-used for other systems (eg port to iOS)
-nearly as compatible as java-deployment
The Following 3 Users Say Thank You to nicolai For This Useful Post: | ||
|
2011-03-04
, 18:17
|
Posts: 3,319 |
Thanked: 5,610 times |
Joined on Aug 2008
@ Finland
|
#179
|
Okay ... but how would a mobileOS constructed around Python+QML fare against one such as Dalvik+JIT ?
1) Do the advantages of C++ (or Qt/QML) outweigh the advantages of java (or Dalvik/VM)??
2) Does the disadvantages of java (Dalvik/VM) outweigh those of C++ (or Qt/QML)??
Based on my newbie-view (you can stop reading here if you want)
the way I see it with java;
-you get the advantage that its "easier" to develop
-more people know java coding, perhaps more developers
-works everywhere as long as the VM/engine is there
With C++/Qt/QML;
-you get very responsive applications (no slow animations)
-less buggy* (easy to correct mistakes; this one's personal)
-your work can be recycled and re-used for other systems (eg port to iOS)
-nearly as compatible as java-deployment
|
2011-03-04
, 18:53
|
|
Posts: 2,355 |
Thanked: 5,249 times |
Joined on Jan 2009
@ Barcelona
|
#180
|
One of the reasons why Firefox slows down and "leaks" memory, which you notice after several days heavy use, is because it has been coded with C++ and it cannot use this extra running time information for optimization. It would be a useful and interesting experiment to port Firefox to use Java. Already Firefox uses XUL and Javascript (interpreted languages), which helps the situation.
Tags |
bada rox, dalvik, future, java haters, meego, meego?fail, nokia, sandbox sucks |
|
But anyway, we're running in circles for some time now. You say it will be better - I say, whatever floats your boat, but reality can be really uncooperative when it comes to these academic explorations. Over and out.
Blogging about mobile linux - The Penguin Moves!
Maintainer of PyQt (see introduction and docs), AppWatch, QuickBrownFox, etc