3 ms·
I see, but could you please provide better alternative? I couldn't find anything more alive and representative than Boehm GC.
by pfacka 13y ago
I see, but could you please provide better alternative?
I couldn't find anything more alive and representative than Boehm GC.
- sdegutis 13y agoC is inherently not suitable for a GC. If you want automatic memory management, it's better to use something like Go. I'm not saying this is a bad GC library, just that I'm not sure I would recommend it for general use when writing C code.
- TheCoelacanth 13y agoSo to avoid using a conservative GC, you should instead use Go, a language which also has a conservative GC.
- 616c 13y agoThis is not to troll, but Nimrod (which has been mentioned a few times on list) is a language that looks something like mainly Pascal or Python and builds C code that will be subsequently compiled with a soft-realtime garbage collector or without (it does code elimination, GC included, if you are clever). If you are nuts you can opt to force using the Boehm GC with it, but do not expect great things out of it. There is also Rust. I am sure if you spend time on HN you have heard a lot about the latter.