iPhone vs Android
Shachar Shemesh via Digitalmars-d
digitalmars-d at puremagic.com
Tue Sep 13 04:59:46 PDT 2016
On 13/09/16 02:21, deadalnix wrote:
>
> RC itself is not panacea, it doesn't work well with exceptions, generate
> a huge amount of code bloat,
I will need explanation to those two. Assuming we have RAII, why doesn't
RC work well with exceptions?
Also, please note that explicit memory management also means we support
the equivalent of unique_ptr, which is what most memory allocations
actually are.
> But first and foremost, it is a disaster for shared data.
Again, please elaborate.
>
> I stay convinced that an hybrid approach is inevitable and am surprised
> why few are going there (hello PHP, here is a thing you get right).
>
Here's my worries about the hybrid approach. The GC run time is
proportional not to the amount of memory you manage with the GC, but to
the amount of memory that might hold a pointer to a GC managed memory.
In other words, if most of my memory is RC managed, but some of it is
GC, I pay the price of both memory manager on most of my memory.
Shachar
More information about the Digitalmars-d
mailing list