Re: GC, memory leaks and 32/64 bit

2013-03-13 Thread Benjamin Thaut
Am 13.03.2013 06:38, schrieb Rob T: On Tuesday, 12 March 2013 at 21:02:20 UTC, Benjamin Thaut wrote: This is not possible as different kinds of GCs need to generate different runtime data at compile time. The current GC for example does not need any runtime data (other then what the D typeinfo s

Re: GC, memory leaks and 32/64 bit

2013-03-13 Thread Rainer Schuetze
On 13.03.2013 08:03, Druzhinin Alexandr wrote: On 13.03.2013 13:35, Rainer Schuetze wrote: If the undefined symbols happen to be related to AssociativeArray, my current workaround is to add "alias Associative!(Key,Value) _workaround;" somewhere to force instantiation for the respective Key an

Re: GC, memory leaks and 32/64 bit

2013-03-13 Thread Druzhinin Alexandr
On 13.03.2013 13:35, Rainer Schuetze wrote: If the undefined symbols happen to be related to AssociativeArray, my current workaround is to add "alias Associative!(Key,Value) _workaround;" somewhere to force instantiation for the respective Key and Value types. The precise GC needs some type inf

Re: GC, memory leaks and 32/64 bit

2013-03-12 Thread Rainer Schuetze
On 13.03.2013 06:46, Druzhinin Alexandr wrote: On 12.03.2013 20:23, Benjamin Thaut wrote: Am 12.03.2013 14:07, schrieb bearophile: Alexandr Druzhinin: 32 bit versions (using dmd and gdc, win7/ubuntu 12.04) of my application always leak very fast. But 64 bit version (ubuntu 12.04 only, win7

Re: GC, memory leaks and 32/64 bit

2013-03-12 Thread Druzhinin Alexandr
On 12.03.2013 20:23, Benjamin Thaut wrote: Am 12.03.2013 14:07, schrieb bearophile: Alexandr Druzhinin: 32 bit versions (using dmd and gdc, win7/ubuntu 12.04) of my application always leak very fast. But 64 bit version (ubuntu 12.04 only, win7 segfaults) works stable without any leaks. I'm cur

Re: GC, memory leaks and 32/64 bit

2013-03-12 Thread Rob T
On Tuesday, 12 March 2013 at 21:02:20 UTC, Benjamin Thaut wrote: This is not possible as different kinds of GCs need to generate different runtime data at compile time. The current GC for example does not need any runtime data (other then what the D typeinfo system already provides) but the per

Re: GC, memory leaks and 32/64 bit

2013-03-12 Thread bearophile
Benjamin Thaut: so you can't just "swap" them. You need to recompile. Is it a good idea to add a compiler switch to specify what GC to use? Bye, bearophile

Re: GC, memory leaks and 32/64 bit

2013-03-12 Thread Benjamin Thaut
Am 12.03.2013 21:08, schrieb Rob T: On Tuesday, 12 March 2013 at 14:21:06 UTC, bearophile wrote: Benjamin Thaut: Thats not correct. Rainer Schuetze has finished it and is using it for VisualD. You can get a version of druntime which the percise GC from his github branch https://github.com/rain

Re: GC, memory leaks and 32/64 bit

2013-03-12 Thread Marco Leise
Am Tue, 12 Mar 2013 21:44:11 +0100 schrieb "Rob T" : > Do you know if there are instructions posted somewhere on how to > override or proxy the GC? > > --rt Maybe someone else knows, I just started from here: https://github.com/D-Programming-Language/druntime/blob/master/src/gcstub/gc.d When

Re: GC, memory leaks and 32/64 bit

2013-03-12 Thread Rob T
On Tuesday, 12 March 2013 at 20:29:58 UTC, Marco Leise wrote: Am Tue, 12 Mar 2013 21:08:01 +0100 schrieb "Rob T" : It should be a plugin so that components like an alternate GC can be swapped in and out easily. I hope once shared lib support becomes available we'll finally see plugins introduc

Re: GC, memory leaks and 32/64 bit

2013-03-12 Thread Marco Leise
Am Tue, 12 Mar 2013 21:08:01 +0100 schrieb "Rob T" : > It should be a plugin so that components like an alternate GC can > be swapped in and out easily. I hope once shared lib support > becomes available we'll finally see plugins introduced into dmd. > > --rt Well, you can already today set a

Re: GC, memory leaks and 32/64 bit

2013-03-12 Thread Rob T
On Tuesday, 12 March 2013 at 14:21:06 UTC, bearophile wrote: Benjamin Thaut: Thats not correct. Rainer Schuetze has finished it and is using it for VisualD. You can get a version of druntime which the percise GC from his github branch https://github.com/rainers/dmd I am glad to be wrong :-)

Re: GC, memory leaks and 32/64 bit

2013-03-12 Thread Benjamin Thaut
Am 12.03.2013 15:21, schrieb bearophile: Benjamin Thaut: Thats not correct. Rainer Schuetze has finished it and is using it for VisualD. You can get a version of druntime which the percise GC from his github branch https://github.com/rainers/dmd I am glad to be wrong :-) Do you know how well

Re: GC, memory leaks and 32/64 bit

2013-03-12 Thread simendsjo
On Tuesday, 12 March 2013 at 14:21:06 UTC, bearophile wrote: Benjamin Thaut: Thats not correct. Rainer Schuetze has finished it and is using it for VisualD. You can get a version of druntime which the percise GC from his github branch https://github.com/rainers/dmd I am glad to be wrong :-)

Re: GC, memory leaks and 32/64 bit

2013-03-12 Thread bearophile
Benjamin Thaut: Thats not correct. Rainer Schuetze has finished it and is using it for VisualD. You can get a version of druntime which the percise GC from his github branch https://github.com/rainers/dmd I am glad to be wrong :-) Do you know how well the new GC is working? Bye, bearophile

Re: GC, memory leaks and 32/64 bit

2013-03-12 Thread Benjamin Thaut
Ah sorry, I meant to post: https://github.com/rainers/druntime/tree/precise_gc2 Kind Regards Benjamin Thaut

Re: GC, memory leaks and 32/64 bit

2013-03-12 Thread Benjamin Thaut
Am 12.03.2013 14:07, schrieb bearophile: Alexandr Druzhinin: 32 bit versions (using dmd and gdc, win7/ubuntu 12.04) of my application always leak very fast. But 64 bit version (ubuntu 12.04 only, win7 segfaults) works stable without any leaks. I'm curious is there some workaround or I have to w

Re: GC, memory leaks and 32/64 bit

2013-03-12 Thread bearophile
Alexandr Druzhinin: 32 bit versions (using dmd and gdc, win7/ubuntu 12.04) of my application always leak very fast. But 64 bit version (ubuntu 12.04 only, win7 segfaults) works stable without any leaks. I'm curious is there some workaround or I have to wait for GC improvement to build 32bit v

GC, memory leaks and 32/64 bit

2013-03-12 Thread Alexandr Druzhinin
32 bit versions (using dmd and gdc, win7/ubuntu 12.04) of my application always leak very fast. But 64 bit version (ubuntu 12.04 only, win7 segfaults) works stable without any leaks. I'm curious is there some workaround or I have to wait for GC improvement to build 32bit version, without choice