Bad array indexing is considered deadly

Jacob Carlborg via Digitalmars-d digitalmars-d at puremagic.com
Sun Jun 4 12:12:42 PDT 2017


On 2017-06-04 20:15, Joseph Rushton Wakeling wrote:
> On Friday, 2 June 2017 at 15:19:29 UTC, Andrei Alexandrescu wrote:
>> Array bound accesses should be easy to intercept and have them just
>> kill the current thread.
>
> Ideally, fiber, as well.  Probably the real ideal for this sort of
> problem is to be able to be as close as possible to Erlang, where errors
> bring down the particular task in progress, but not the application that
> spawned the task.

Erlang has the philosophy of share nothing between processes (green 
processes), or task as you call it here. All allocations are process 
local, that makes it easier to know that a failing process doesn't 
affect any other process.

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list