How to use D without the GC ?

monkyyy crazymonkyyy at gmail.com
Thu Jun 13 00:05:37 UTC 2024


On Wednesday, 12 June 2024 at 16:50:04 UTC, Vinod K Chandran 
wrote:
> On Wednesday, 12 June 2024 at 01:35:26 UTC, monkyyy wrote:
>>
>> rather then worring about the gc, just have 95% of data on the 
>> stack
>>
> How's that even possible ? AFAIK, we need heap allocated memory 
> in order to make GUI lib as a DLL. So creating things in heap 
> and modify it, that's the nature of my project.

gui is a bit harder and maybe aim for 70%

but if you went down the rabbit hole you could have strings be in 
an "arena" of which the first 5000 chars are a global scope 
array; or full me and just an array that doesnt expand


More information about the Digitalmars-d-learn mailing list