3 ms·
Aye, you can turn off GC entirely, for the whole program There's even a mode of D that operates this way by default, "-betterC" meant to be a C replacement Th
by gavinray 4y ago
Aye, you can turn off GC entirely, for the whole program
There's even a mode of D that operates this way by default, "-betterC" meant to be a C replacement
The GC really is an entirety opt-in component.
I'd encourage you/other folks to give D an honest try, you might be surprised
- dataflow 4y agoYou're not understanding my point unfortunately. I never said you can't turn it off. I said if you do, and any of your dependencies expect it to be on, then you have a problem. (Yes, I have tried D. That's how I know this.)
- mhh__ 4y agoIf you actually turn it off (as in GC.disable()) they won't know either way, it's just a memory allocator to them.
- gavinray 4y agoOhhh, fair enough, yeah I see what you're saying. Yeah you're boned in that case I think and that's a real problem that can pop up if you want full @nogc EDIT: Maybe not based on Max's comment D-Plug (Audio FX plugins) is one example of having to build up a dependency stack of @nogc compatible deps, a lot of that is in-house stuff. Not impossible but it's a commitment, at which point you may as well use something else unless you REALLY want to use D, for sure.
- dataflow 4y ago> a lot of that is in-house stuff. That's exactly the issue. Having to reinvent every wheel you need just isn't a selling point.