Swift does away with pointers == pervasive ARC

Walter Bright via Digitalmars-d digitalmars-d at puremagic.com
Tue Jun 17 11:39:50 PDT 2014


On 6/17/2014 11:25 AM, "Ola Fosheim Grøstad" 
<ola.fosheim.grostad+dlang at gmail.com>" wrote:
> On Tuesday, 17 June 2014 at 18:17:21 UTC, Walter Bright wrote:
>> I wouldn't be surprised if it doesn't in order to make ARC more palatable.
>
> I don't know, but on iOS you are supposed to save state to disk continuously so
> that the app can die silently and reboot to where you left off. And mobile apps
> are supposed to boot real fast since they are used on the move.
>
> So maybe they figured it was good enough to leave the try-catch complexity out…

If an app can be cheaply restarted, an easy & fast way to do memory allocation 
is to use a "bump allocator" like dmd does, and then restart when it runs out of 
memory.

I'm not joking, this can actually be very practical for certain kinds of programs.


More information about the Digitalmars-d mailing list