More radical ideas about gc and reference counting

Xavier Bigand via Digitalmars-d digitalmars-d at puremagic.com
Sat May 10 02:43:38 PDT 2014


Le 10/05/2014 08:53, Paulo Pinto a écrit :
> Am 10.05.2014 08:27, schrieb Manu via Digitalmars-d:
>> On 10 May 2014 07:05, Wyatt via Digitalmars-d
>> <digitalmars-d at puremagic.com> wrote:
>>> On Friday, 9 May 2014 at 16:12:00 UTC, Manu via Digitalmars-d wrote:
>>> ...
>> The only option I know that works is Obj-C's solution, as demonstrated
>> by a very successful embedded RTOS, and compared to competition, runs
>> silky smooth. Indeed iOS makes it a specific design goal that it
>> should always feel silky smooth, never stuttery, they consider it a
>> point of quality, and I completely agree. I don't know what other
>> horse to back?
>> ...
>
> The problem when comparing iOS with Android, is that we aren't comparing
> ARC with GC.
>
> We are comparing a full OS, which we don't know how much ARC is actually
> used versus standard malloc/new with another OS, which has a
> so-and-so VM implementation, used mostly software rendering until
> version 4.1, and care for low end devices was only done in 4.4.
>
> If we add Windows Phone to the mix, then we have a .NET stack like
> Android (WP7 - GC/JIT) or in its sucessor (WP8)  native code generation
> for .NET (GC) with a COM model for OS APIs (ARC).
>
> Both versions of Windows Phone run smoother that many Android phones,
> even the WP7 ones.
>
> Not saying you are not right, just that we need to look at the whole
> stack when comparing mobile OS, not just GC vs ARC.
>
> --
> Paulo
>
>
I don't know well WP8 models, but this one must run smoothly :
http://www.nokia.com/fr-fr/mobiles/telephone-portable/lumia1320/fiche-technique/

Just like Android phones, the battery is huge : 3400mAh
It's the same for CPU : Qualcomm Snapdragon™ S4, dual core 1,7 GHz
Only RAM seems reasonable : 1Go

And it's maybe easier for Microsoft to do a GC with good performances 
cause they control everything on the OS. There is certainly some 
specifics memory management in the kernel related to the GC. When Google 
"just" put small pieces together based on a linux kernel.

Yesterday I played with my nexus 5 at a game in augmented reality, it 
took 2hr 20 minutes to completely drain the battery (2300 mAh). Sadly 
this game doesn't exist on iOS but IMO an iPhone would do the same with 
a smaller battery (1440 mAh for iPhone 5s).


More information about the Digitalmars-d mailing list