Status of @nogc with the runtime

Peter Campbell peter at spcampbell.co.uk
Sat Feb 17 18:03:44 UTC 2018


On Saturday, 17 February 2018 at 12:32:04 UTC, Mike Franklin 
wrote:
> There are a number of ways to use D without the garbage 
> collector.  However, one of the easiest is with the -betterC 
> flag.  You'll want to read the two blog articles here 
> (https://dlang.org/blog/category/betterc/) for more information 
> about that.
>
> 2.079, the upcoming release will also have a way to use D 
> without the runtime and without -betterC.  What this allows you 
> to do is partially implement just the runtime features you wish 
> to support.  You can read more about it in the nightly 
> changelog here 
> (https://dlang.org/changelog/pending.html#minimal_runtime)
>
> You might also be interested in this article: 
> https://wiki.dlang.org/Memory_Management
>
> Mike

I've read about BetterC and I'm interested in the minimal runtime 
feature, that seems like it'll be really cool. But these methods 
requiring not using certain D features which rely on the GC. My 
understanding from the vision documents and what Andrei mentioned 
at his DConf presentations is that the runtime itself will be 
modified to not rely on the GC, allowing for you to continue 
using features such as associative arrays and array 
concatenation, but without requiring the garbage collector. Is my 
understanding correct? If so is work still being done to make 
this happen and is there an easy way to follow the progress?

On Saturday, 17 February 2018 at 12:44:35 UTC, Eugene Wissner 
wrote:
> Let me do a bit advertising :) I'm writing a library for @nogc 
> D programming, tanya. It has different aims than -betterC: I 
> use the full set of D features, just except features that 
> require GC. It isn't complete, I'm using it only in personal 
> projects and it is also a big learn project for me, so don't 
> wonder that it reimplements a lot of features "from scratch" 
> and almost doesn't depend on phobos. But if you like to play 
> with it, you're welcome:
> https://github.com/caraus-ecms/tanya

That's an interesting project, I'll be sure to take a look!

On Saturday, 17 February 2018 at 14:25:41 UTC, Seb wrote:
> On Saturday, 17 February 2018 at 12:18:28 UTC, Peter Campbell 
> wrote:
> The garbage collector in druntime is now lazily initialized on 
> the first use:
>
> https://github.com/dlang/druntime/pull/2057
>
> (in master since a few days)

That's really nice to hear 2.079 is looking really cool!


More information about the Digitalmars-d mailing list