News for hackers. Stuff that matters.
Re:The V Programming Language 0.4 by isaiahg on Monday August 28, 2023 @07:45AM (#37292591)
It became one of those hate memes. A target of irrational fervor among anyone caught in between. If you ask those angered they pull out a list of petty grievances a mile long composed of misleading or highly interpretive wrongs.

I haven’t had the pleasure to try out V yet but I hope this discussion can rise above. Endless bickering leaves a sour taste in my mouth.

Re:The V Programming Language 0.4 by kbknapp on Monday August 28, 2023 @07:53AM (#37292653)
> If you ask those angered they pull out a list of petty grievances a mile long composed of misleading or highly interpretive wrongs.

How can you assert that they're misleading or highly interpretive wrongs if you haven't dug into them yourself and actually used V? All the negative press I've seen on V has been highly detailed and reproducible.

Re:The V Programming Language 0.4 by amedvednikov on Monday August 28, 2023 @09:58AM (#37294060)
I haven't seen any reproducible press. Only years old examples which are not relevant with the latest version of the compiler.

And complaints like V depending on git and electricity.

Re:The V Programming Language 0.4 by isaiahg on Tuesday August 29, 2023 @12:15AM (#37303510)
You don’t need to have touch it to see. Just browse this thread. A big one mentioned is over promising, which is pretty interpretive for a language only on version 0.4 of its development cycle. Most other complaints are slight variations of this. Promising magic performance or magic features without a good explanation, is another variation. This would be well and good for a fully released language, which this is not. All that tells me is the creator is overly ambitious for their own good and possibly naive, which I hardly classify as a sin.

Whenever this topic comes up I’m at a loss to understand why anyone would waste so much energy mud slinging over some personal language project. It only makes sense if it’s become a hate meme. My pocket word for an event that’s a sort of social singularity. It occurs when enough popular voices have directed the entirety of a community to shame a target based on some perceived wrong, real or otherwise.

Wherever it comes up I’m pretty taken aback by how tribal and ego focused we can be, even among the smartest of us. And that thought isn’t meant be taken as condescending. After all, we’re only human. And for a larger span of human history, that word has meant “hairless ape” more than anything else.

Re:The V Programming Language 0.4 by bheadmaster on Tuesday August 29, 2023 @12:25AM (#37303556)
> All that tells me is the creator is overly ambitious for their own good and possibly naive, which I hardly classify as a sin.

Does the fact that he earns money off of Patreon by overpromising all the impossible features change your perspective on the matter?

Re:The V Programming Language 0.4 by dgellow on Monday August 28, 2023 @08:11AM (#37292839)
They got lot of push back because what the core devs were describing Vlang to be was technically close to impossible, and their implementation was missing lot of properties they were advertising. If you would look at their sources or try out V when they released it you would have seen how outrageous their claims were.
Re:The V Programming Language 0.4 by amedvednikov on Monday August 28, 2023 @09:59AM (#37294075)
There were no close to impossible/missing features.
Re:The V Programming Language 0.4 by richbell on Monday August 28, 2023 @10:55AM (#37295038)
You're saying that when Volt and V were first announced, there were no advertised features that were missing?
Re:The V Programming Language 0.4 by bheadmaster on Monday August 28, 2023 @03:08PM (#37298991)
What about GC-less autofree?

I'm still waiting for that CS breakthrough to happen - Rust guys will be so mad they spent their time writing lifetime annotations for the borrow checker :)

Re:The V Programming Language 0.4 by amedvednikov on Tuesday August 29, 2023 @03:31AM (#37304503)
You can look up vlang.io on web archive and see that it never said GC-less autofree. It actually explicitly said that RC/GC are used for stuff that can't be freed during compile time.
Re:The V Programming Language 0.4 by bheadmaster on Tuesday August 29, 2023 @04:58AM (#37305025)
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...

Re:The V Programming Language 0.4 by amedvednikov on Tuesday August 29, 2023 @05:08AM (#37305079)
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...

Re:The V Programming Language 0.4 by bheadmaster on Tuesday August 29, 2023 @05:15AM (#37305138)
> 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.

Re:The V Programming Language 0.4 by amedvednikov on Tuesday August 29, 2023 @08:45AM (#37306944)
> 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?

Re:The V Programming Language 0.4 by bheadmaster on Tuesday August 29, 2023 @11:11AM (#37309088)
> 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.

The documentation I've quoted and posted a source to specifically says that all objects are freed either by 1) autofree or 2) reference counting.

> What's the impossible claim?

The impossible claim is that all objects are freed either by 1) autofree or 2) reference counting. As I've mentioned, neither static analysis (which is what autofree is) nor reference counting is capable of completely freeing all unreachable objects at runtime - reference counting is in particular unable to handle cyclic references.

> What's the issue again?

The issue is you vehemently claiming that V has never, ever promised a feature that was impossible - which is false, as I've demonstrated and cited with reference to archive.org of V lang documentation. So can you stop doing that, please?

Re:The V Programming Language 0.4 by amedvednikov on Tuesday August 29, 2023 @12:10PM (#37310011)
You pointed to an old version of the documentation. RC was changed to tracing GC. Things can change in the design.

V never promised autofree without GC or RC.

Re:The V Programming Language 0.4 by bheadmaster on Tuesday August 29, 2023 @12:45PM (#37310515)
> You pointed to an old version of the documentation

Yes, because that version of documentation specified a feature that was impossible, which is exactly what we're discussing.

> V never promised autofree without GC or RC

First of all, I never mentioned "autofree without RC". I am strictly speaking about "autofree without GC".

Second of all, V documentation has had the "autofree frees 90% of objects, RC frees everything else" segment, which clearly implies no GC. So the documentation has clearly specified that feature, which was an impossible feature.

Even the next paragraph says:

    The developer doesn't need to change anything in their code. "It just works", like in Python, Go, or Java, except there's no heavy GC tracing everything or expensive RC for each object.
So yeah, V promised autofree without GC.
Re:The V Programming Language 0.4 by Tozen on Tuesday August 29, 2023 @02:06PM (#37311622)
V is not a finished product nor 1.0 yet. It's unproductive to act like things were carved in stone, from day 1. Programming languages go through development phases, where things do change and lead developers are allowed to make changes.
Re:The V Programming Language 0.4 by bheadmaster on Tuesday August 29, 2023 @02:54PM (#37312210)
I completely agree.

But gaslighting people and pretending that overly grandiose claims/promises haven't been made in the past leaves a bitter taste, and doesn't inspire trust in core developers. Instead, it makes me think that the core devs are incapable of admitting a mistake - which would make their language a hazard.

For example, what if V gets huge and a serious security bug gets discovered - how can I trust that the developers will properly communicate the existence of such a bug and not just keep quiet about it, consider how they aren't even willing to admit that V has made some impossible claims/promises in the past? If I discover a bug, will they also pretend that the bug doesn't exist, even when confronted with indisputable evidence, because it threatens to damage their reputation?

As long as that attitude doesn't change, I'm not touching V with a 10 foot pole.

Re:The V Programming Language 0.4 by amedvednikov on Wednesday August 30, 2023 @07:55AM (#37320675)
There's no pretending, see my reply to you above.
Re:The V Programming Language 0.4 by bheadmaster on Thursday August 31, 2023 @03:31AM (#37333685)
You're still pretending that V has never made an impossible claim, which I have clearly demonstrated that it has.

See my numerous replies to you in this thread, where I have quoted the documentation, provided the archive.org link and explained why the claim is impossible.

Do you have any other argument except "nuh-uh, didn't happen, lol"?

Re:The V Programming Language 0.4 by amedvednikov on Thursday August 31, 2023 @06:58AM (#37335266)
You still haven't listed any impossible claims, only something about autofree and GC copied from the website. What's impossible about that?
Re:The V Programming Language 0.4 by amedvednikov on Wednesday August 30, 2023 @07:55AM (#37320669)
And again, everything written is correct.

No heavy GC tracing everything or expensive RC for each object.

What's your issue with the wording?

Re:The V Programming Language 0.4 by bheadmaster on Thursday August 31, 2023 @03:45AM (#37333781)
> What's your issue with the wording?

1) The first sentence clearly stated that:

    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.
Which explicitly implies that objects are exclusively freed only by autofree and reference counting.

2) Your emphasis of "everything" seems to imply a contrast to Python or Go method of memory deallocation:

    "It just works", like in Python, Go, or Java, except there's no heavy GC tracing everything
which would mean that Python, Go and Java trace everything, which isn't true. None of the three languages (Python, Go, or Java) use GC to trace everything - there are multiple optimizations (such as escape analysis and reference counting) that allow a certain percentage of objects to be freed by means other than tracing GC.
Re:The V Programming Language 0.4 by amedvednikov on Thursday August 31, 2023 @06:49AM (#37335162)
> Which explicitly implies that objects are exclusively freed only by autofree and reference counting.

Yes, and what's wrong with that? That's how it works now too, except RC has been replaced by a tracing GC.

Re:The V Programming Language 0.4 by lvl5hm on Tuesday August 29, 2023 @05:43AM (#37305313)
> Is there garbage collection?

March 2019

> No. V's memory management is similar to Rust but much easier to use. More information about it will be posted in the near future.

May 2019

> No. V manages memory at compilation time (like Rust). Right now only basic cases are handled. For others, manual memory management is required for now. The right approach to solve this will be figured out in the near future.

April 2020

> No. V manages memory at compilation, like Rust: vlang.io/docs#memory

August 2023

> You can look up vlang.io on web archive and see that it never said GC-less autofree

Re:The V Programming Language 0.4 by amedvednikov on Tuesday August 29, 2023 @08:44AM (#37306915)
Nowhere in your quotes does it say GC-less autofree.

"The right approach to solve this will be figured out in the near future."

And it was figured out, and we now have what we have. It's described on the home page in detail. 4 ways to handle memory.

Why another new account?

Re:The V Programming Language 0.4 by dgellow on Monday August 28, 2023 @04:28PM (#37300004)
Last time I looked was beginning of 2022, and I read their stdlib implementation and tried the compiler. They advertised their non-GC solution, “auto free”, but it literally didn’t work, your program would just leak. And if you actually look at what they meant by “autofree”, it is a reference counting GC. They advertised Rust memory management ergonomics but without relying on linear types? Their way to do system calls was by running commands in shells.

Unless things changed drastically V lang, as described by their documentation, is a vapor ware.

Re:The V Programming Language 0.4 by amedvednikov on Tuesday August 29, 2023 @03:30AM (#37304495)
autofree is not reference counting, and it's marked as "not production ready yet" on the website.
Re:The V Programming Language 0.4 by richbell on Monday August 28, 2023 @07:50AM (#37292628)
> If you ask those angered they pull out a list of petty grievances a mile long composed of misleading or highly interpretive wrongs.

What, in your opinion, are legitimate reasons for someone to be upset with V?

Re:The V Programming Language 0.4 by bheadmaster on Monday August 28, 2023 @08:03AM (#37292763)
> If you ask those angered they pull out a list of petty grievances a mile long composed of misleading or highly interpretive wrongs.

> I haven’t had the pleasure to try out V yet

How can you know that the wrongs are misleading if you've never even tried the language?

Re:The V Programming Language 0.4 by pwdisswordfishc on Monday August 28, 2023 @11:35AM (#37295772)
> Endless bickering leaves a sour taste in my mouth.

Fair enough. But then, you should know false advertising by the language maintainer leaves an even bitterer one.

Re:The V Programming Language 0.4 by amedvednikov on Tuesday August 29, 2023 @05:09AM (#37305088)
There's no false advertising anywhere on vlang.io or in the docs.
Re:The V Programming Language 0.4 by richbell on Tuesday August 29, 2023 @07:23AM (#37306089)
> There's no false advertising anywhere on vlang.io or in the docs.

Currently or ever?

Re:The V Programming Language 0.4 by amedvednikov on Tuesday August 29, 2023 @08:47AM (#37306960)
Currently. Previously there were features like C to V translation unmarked as WIP.

WIP marks were quickly added, and gradually all features were implemented, and those marks were removed.

Current contents of the website has been proof read by many people.

Re:The V Programming Language 0.4 by richbell on Tuesday August 29, 2023 @05:29PM (#37314396)
Fair enough.
Re:The V Programming Language 0.4 by zamberzand on Tuesday August 29, 2023 @11:40AM (#37309551)
The homepage still makes the claim that "[autofree] takes care of most objects (~90-100%): the compiler inserts necessary free calls automatically during compilation."

There is no citation for where this 90-100% number comes from, it seems to be pulled completely out of thin air.

Autofree, as it currently exists, cannot handle structs at all, so any program whose memory allocations consist of more than 10% structs unfortunately proves this claim false.

For a specific example, a while ago I wrote a minimax tictactoe program in V, which specifically used a struct to store the board state rather than an array.

(see https://pastebin.com/6ZDKKRQR )

In this case, with the minimax running for 4 total moves, valgrind tells me:

  ==8518== HEAP SUMMARY:
  ==8518==     in use at exit: 2,250,360 bytes in 68,544 blocks
  ==8518==   total heap usage: 161,756 allocs, 93,212 frees, 4,762,235 bytes allocated
So only 93212/161756 allocations were freed, which is 57%.

... Now, I don't actually care that much that autofree doesn't work on structs. I think that's quite reasonable, as it's a very difficult thing to implement!

But, in my opinion, your website should really cite where this 90-100% number comes from, i.e. which benchmarks were used to generate it, so that it is clear that it isn't just completely made up.

(As it currently stands, I would argue this is false advertising specifically because there's no citation for this number!)

Re:The V Programming Language 0.4 by amedvednikov on Tuesday August 29, 2023 @12:11PM (#37310041)
The homepage makes it clear autofree is not ready yet and recommends 3 other ways to manage memory until it is.

You create an account to post the same message in all V posts. Why? :)

Re:The V Programming Language 0.4 by zamberzand on Tuesday August 29, 2023 @12:12PM (#37310052)
Why isn't there a citation for this 90-100% number? I really am extremely curious where it comes from.

As for why I am posting a similar message (not nearly the same post, though) to you here as I did a year ago:

It is because I am very, very curious about where this number comes from and why there is no citation for it! It is fascinating to me.

(And, more generally, I have empirical experience with autofree that many users don't seem to have... so it seems useful to post about that experience to provide extra context for everyone else on this website).