3 ms·
The default is ARC, no cycle detection. ARC is deterministic. ORC isn't, but doing cycles in general is usually a code smell, especially on embedded. Also the
by mratsim 3y ago
The default is ARC, no cycle detection.
ARC is deterministic. ORC isn't, but doing cycles in general is usually a code smell, especially on embedded.
Also the GC is type-bound and only needed if you use ref objects. If you don't, no GC.
- brabel 3y ago> The default is ARC, no cycle detection. How long haven't you checked that for? It's been ORC for years. Try this with a recent nim version: nim --fullhelp -mm:orc|arc|refc|markAndSweep|boehm|go|none|regions select which memory management to use; default is 'orc' When you confidently try to correct someone, at least consider you may be wrong.
- mratsim 3y ago> How long haven't you checked that for? Orc was blocked for a while due to cycles with async. I was under the impression that they were still there. > It's been ORC for years. The switch has been made for Nim v2 announced in December 2022, the PR #19972 that defaults to ORC has been made on September 2023. ORC has just celebrated 1 year as default GC, certainly not years. > When you confidently try to correct someone, at least consider you may be wrong. I don't get why you're so butthurt about this and feel the need to be so nasty in your replies.
- brabel 3y agoTelling you that you're factually wrong (which you could easily check yourself in 1 minute) and that you should not jump to correct people on the Internet, propagating wrong information without considering they may actually be right, does not amount to being nasty.
- mratsim 3y agoYour tone is nasty