Comment by bheadmaster

2 years ago

Here's a direct quote from the documentation [0] from 2021:

> Most objects (~90-100%) are freed by V's autofree engine: the compiler inserts necessary free calls automatically during compilation. Remaining small percentage of objects is freed via reference counting.

So most objects are freed by the autofree engine, and the rest are freed via reference counting. This implies that no objects are freed by the GC, which is exactly what I've said.

Please stop gaslighting people.

[0] https://web.archive.org/web/20210315092012/https://github.co...

What's written is correct, what's the issue again?

RC was later replaced with a tracing GC.

RC is a type of GC btw, so...

  • > What's written is correct, what's the issue again?

    The fact that the feature promised is impossible. I'm quoting some comments from which this whole discussion has started, since you don't seem to be able to follow:

    > dgellow: They got lot of push back because what the core devs were describing Vlang to be was technically close to impossible

    > amedvedikov: There were no close to impossible/missing features.

    Static analysis (autofree) with reference counting, by itself, cannot theoretically free all of the objects during the runtime of the program. And I know that you know that since you've made the decision to switch to a tracing garbage collector.

    The choice of tracing garbage collection makes the initial claim much less impressive and innovative - Go already has escape analysis, which is basically an implementation of autofree. But Go used a garbage collection from the start, so escape analysis is just an optimization - exactly what autofree is for the current V with GC.

    V promised something impossible, it's not a big deal, we all make technical mistakes and learn from them. What makes it a big deal is your stubborn attempts to rewrite history and gaslight people.

    • > Static analysis (autofree) with reference counting, by itself, cannot theoretically free all of the objects during the runtime of the program.

      It can't, that's what it says on the home page. Stuff that can't be freed during compile time is handled via GC.

      What's the issue again? What's the impossible claim?

      11 replies →