D garbage collector and real-time systems

2015-01-27 Thread Tom via Digitalmars-d
What's the state of deterministic GC in D, or alternatively being able to disable the GC? I've been looking into languages to implement a real-time testing system and had thought of D, but AFAICT the GC makes it unsuitable. The CGCD effort looks to be moving in the right direction, but it would

Re: D garbage collector and real-time systems

2015-01-27 Thread ketmar via Digitalmars-d
On Wed, 28 Jan 2015 06:58:41 +, Tom wrote: > Or is there now the possibility of disabling the GC altogether, or > replacing it with a refcounting 'GC' etc? you still can do manual memory management with `malloc()` and friends. but you must be very cautious with dynamic arrays and slices. may

Re: D garbage collector and real-time systems

2015-01-27 Thread Kagamin via Digitalmars-d
http://dlang.org/phobos/core_memory.html#.GC.disable ? Some people including myself write D with only minimal runtime (bare metal profile). Is it what you're looking for?

Re: D garbage collector and real-time systems

2015-01-28 Thread Mike via Digitalmars-d
On Wednesday, 28 January 2015 at 06:58:42 UTC, Tom wrote: Or is there now the possibility of disabling the GC altogether, or replacing it with a refcounting 'GC' etc? You can disable the GC: http://dlang.org/phobos/core_memory.html#.GC.disable There is a RefCounted struct in the standard l

Re: D garbage collector and real-time systems

2015-01-28 Thread Nicholas Wilson via Digitalmars-d
On Wednesday, 28 January 2015 at 07:43:35 UTC, ketmar wrote: On Wed, 28 Jan 2015 06:58:41 +, Tom wrote: Or is there now the possibility of disabling the GC altogether, or replacing it with a refcounting 'GC' etc? you still can do manual memory management with `malloc()` and friends. but

Re: D garbage collector and real-time systems

2015-01-30 Thread Martin Nowak via Digitalmars-d
On 01/28/2015 09:12 AM, Mike wrote: Note that D has 3 built-in types: exceptions, dynamic arrays, and associative arrays, that may be difficult to use without the GC: http://dlang.org/builtin.html. 4 actually, if you count delegate closures. http://dlang.org/function.html#closures

Re: D garbage collector and real-time systems

2016-10-26 Thread Tom via Digitalmars-d
On Friday, 30 January 2015 at 11:54:54 UTC, Martin Nowak wrote: On 01/28/2015 09:12 AM, Mike wrote: Note that D has 3 built-in types: exceptions, dynamic arrays, and associative arrays, that may be difficult to use without the GC: http://dlang.org/builtin.html. 4 actually, if you count del

Re: D garbage collector and real-time systems

2016-10-26 Thread John Colvin via Digitalmars-d
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 i

Re: D garbage collector and real-time systems

2016-10-28 Thread Yuxuan Shui via Digitalmars-d
On Wednesday, 28 January 2015 at 07:43:35 UTC, ketmar wrote: On Wed, 28 Jan 2015 06:58:41 +, Tom wrote: Or is there now the possibility of disabling the GC altogether, or replacing it with a refcounting 'GC' etc? you still can do manual memory management with `malloc()` and friends. but

Re: D garbage collector and real-time systems

2016-10-29 Thread Guillaume Piolat via Digitalmars-d
On Wednesday, 28 January 2015 at 08:12:25 UTC, Mike wrote: On Wednesday, 28 January 2015 at 06:58:42 UTC, Tom wrote: Or is there now the possibility of disabling the GC altogether, or replacing it with a refcounting 'GC' etc? You can disable the GC: http://dlang.org/phobos/core_memory.html#