D garbage collector and real-time systems

John Colvin via Digitalmars-d digitalmars-d at puremagic.com
Wed Oct 26 09:49:17 PDT 2016


On Wednesday, 26 October 2016 at 16:15:19 UTC, Tom wrote:
> My apologies for posting a question and then disappearing for 
> eighteen months.  I thought it might be useful if I posted some 
> feedback here.
>
> We ended up going with Lua here.  The main point in favour was 
> the iterative GC which can be interrupted and so can meet 
> deterministic deadlines.
>
> I was aware when I posted that it's possible to write D that 
> doesn't use the garbage collector; however, since we want 
> operators to be able to write bits of script that would get 
> compiled and executed, we couldn't see any obvious way of 
> presenting a 'safe' subset of the language; anything we did 
> would either let them do things that would invoke the garbage 
> collector (often in fairly unobvious ways) or enter code that 
> would compile but fail to run (if we built the runtime without 
> the GC).
>
> Regards,
> Tom

Did @nogc not exist back then?


More information about the Digitalmars-d mailing list