News for hackers. Stuff that matters.
Re:V Language Review by longrod on Saturday June 18, 2022 @10:54PM (#31795713)
I never understood the motivations behind V. It's clearly not a hobby project started out by a developer who is genuinely experimenting with PLs and want to put out something unique. It feels more like a stunt or a flair to either extort money or become famous. All that would be perfectly okay if V did what it claims to do but the author fanatically makes exciting claims but implements only fluff to hide the underlying broken machinery.

I tried V when it first got popular (about 3 years ago). I am no expert on languages but the way it was ductaped (AST-less compiler for "performance", a "graphic library" when even basic things don't work etc etc) made me eventually lose interest.

3 years later V is still mostly where I left it. If the V author focused on the stabilizing the compiler instead of starting off shoot projects like vui, vdb etc. it might actually work.

Re:V Language Review by yjftsjthsd-h on Sunday June 19, 2022 @12:04AM (#31796065)
> It's clearly not a hobby project started out by a developer who is genuinely experimenting with PLs and want to put out something unique. It feels more like a stunt or a flair to either extort money or become famous.

Is that obvious? Yes, if I put on my cynical hat it pattern matches a money-grab or some other sort of fraud, but if I put on my charitable-interpretation hat V also perfectly pattern matches my idea of "solo developer wants to create the perfect language and goes after it with fresh eyes and a lot of enthusiasm (and yes, does get slowed down when it comes to fleshing out every little detail correctly and fully)". How do you distinguish?

Re:V Language Review by 411111111111111 on Sunday June 19, 2022 @02:22AM (#31796672)
Yeah, a lot of projects that fall through aren't actually made by scam artists or people trying to make a quick buck. I'd wager most of these are just by overly ambitious people that massively underestimate the challenge of getting there.

It's especially prevalent in indie gaming and large Kickstarters. Some are actually scams, but a lot are just entirely out of their depth and realize this too late/only when their deadlines come due. And yet there are content creators which just make video after video just shitting on these people. Quiet sad all around.

(Though that link from the sister comment does make it look quiet bad in this case. Projects that just make great sounding claims about the current state of the project, even though none of it is true can't be taken seriously in my opinion.)

Re:V Language Review by spacechild1 on Sunday June 19, 2022 @03:48PM (#31802723)
> when it comes to fleshing out every little detail correctly and fully

In the case of V it's not only about details. Memory management, for example, is a fundamental part of a programming language and not something you can do as an afterthought. It is still not clear at all how memory management works in V.

Re:V Language Review by Tozen on Monday June 20, 2022 @10:04AM (#31810481)
The V language pattern matches with new programming language initiatives such as Odin or Zig. It is in the category of both C and Go alternatives.

Note- just by being a strong Go alternative by itself, one can see possible "behind the scenes" conflicts and motives. Though both V and Odin really should be fully embraced, because they continue the direction and changes in thinking started by Go, while providing features that such users might crave or have wanted.

V has been more successful than other newer programming languages at getting sponsors and supporters (check V's GitHub or vlang.io), to include publicity, both very good and at times negative (which appears to include angry detractors). It also has been developing at a more rapid pace than other languages in its category.

From looking at the history, some of the controversy appears to come from years ago and whether or not the language was real or was going to be released, because it was already "advertising" itself and had sponsors. Keep in mind that other languages have a very hard time at getting sponsors, supporters, or users. So, that another language getting what they are not able to or feel they deserve, can become a source of conflict as well.

My opinion is that the V creator did nothing wrong, because it was a very smart decision to attract sponsors and users, and the creator did release the language. This alone already separated V from the many languages we never know or hear about, the ability to get enough sponsors and supporters to sustain growth and momentum.

Yeah, it's might seem great to be a solo developer making what he/she feels is the perfect language as a hobby, but at some point the enthusiasm stops or the person realizes what's the point if nobody cares and nobody uses it.

Another aspect of this situation is it appears detractors were running with the narrative that V was "fake" or "vaporware", and then when it was actually released, they had to reset their narratives. You can't claim that something that exists and is used by many, is "fake" or non-existent. So then the attacks appear to then go for whatever might stick. Anything about the language, which is "not perfect" or as they feel is claimed, is then targeted. This is why we have these odd and controversial takedown attempts of a language which is still in alpha and evolving. I'm very much not saying that people shouldn't be criticizing or pointing out flaws, but rather it doesn't need the viciousness or underhandedness of trying to persuade people to stop using or attempts to kill it off.

Ultimately, just don't think that such tactics are going to work, because V has such strong community support and is continually improving. V is well on the path of becoming a very viable and highly useful language.

Re:V Language Review by kristoff_it on Monday June 20, 2022 @08:23PM (#31818110)
You must come from an alternative reality because all that V achieved in terms of popularity is a big initial uptick of GitHub stars and donations obtained thanks to straight-up, no-discussion, clear-as-sky false advertising.

When it comes to sponsors and donations, V is far (really far) from the best in the category. Not to mention that Zig has a proper non-profit foundation, which is a far greater achievement than GitHub stars or even sponsors.

All your comments in this thread are in disagreement with reality to the same absurdist degree of conspiracy theories. And of course you yourself can't help but point out that everything is a conspiracy against V, which is laughable.

Re:V Language Review by amedvednikov on Tuesday June 21, 2022 @07:11AM (#31822571)
A conspiracy theory is claiming that a competitor's compiler has a dependency on an OpenGL context creation library.

And it's laughable to claim that its popularity on launch was due to false advertising. Even your leader admitted that self hosting on launch is impressive:

> Wow, that's incredibly fast. Self-hosted in 2 weeks? Hot code reloading? This is everything I plan to do with Zig, but apparently done already. How did you do it so quickly?

(I hope you won't argue that V wasn't written in V on release.)

Funny how the agenda changed.

Re:V Language Review by Tozen on Monday June 20, 2022 @09:45PM (#31818825)
Says a competitor from the Zig software foundation, as if you wouldn't have any ulterior motives, to include a clearly divergent reality.

If anything, I suppose the urge was too great, to not expose yourself.

Re:V Language Review by burntsushi on Tuesday June 21, 2022 @11:10AM (#31824832)
I'm not in the ZSF, although I do throw $50 a month to them, even though I don't use Zig. I use Rust a lot personally. I just like what Zig is doing. They haven't achieved all of their goals yet---just like V hasn't---but I look forward to when they do. And they've already produced some awesome stuff. While there are many differences between Zig and V, one of the most important ones is that Zig doesn't falsely advertise. If they did, I wouldn't contribute a single cent to them.

I totally agree with kristoff here and also munificent[1]. Y'all have a massive victim complex on grand display in this thread and exhibit the classical signs of projecting your own issues on to everyone else.

[1] - https://news.ycombinator.com/item?id=31795322

Re:V Language Review by Tozen on Tuesday June 21, 2022 @11:26AM (#31825020)
The V community does not create these continuous attack threads or blogs (which is very obvious when reading them), nor told competitors or detractors to come join in on these underhanded attacks.

The "projection", is coming from yourself. That you are a supporter of Zig and Rust, is your own business, that's not the focus of this thread or what my comments are about. But clearly you couldn't help yourself to come do some bashing of a rival language, then gaslight about why there might be a reaction to it.

Re:V Language Review by burntsushi on Tuesday June 21, 2022 @11:36AM (#31825144)
The OP isn't an attack. That's the victim complex I'm talking about. It's a standard experience report.
Re:V Language Review by ModernMech on Tuesday June 21, 2022 @12:42PM (#31826038)
At this point the V community is verging on self parody. I can’t think of a more illustrative example of a victim complex.

Unfortunately it’s very hard to convince self-proclaimed victims that they are not in fact victims, because then you become one of the “detractors” or “competitors” looking to “gaslight” and “slander”.

I’ve never seen a language with so much self-inflicted drama around it.

Re:V Language Review by burntsushi on Tuesday June 21, 2022 @01:08PM (#31826427)
Indeed. Pointing it out to them is difficult. I have experience doing it in other contexts. The jury is still out on whether it's successful or not. :-/
Re:V Language Review by Tozen on Tuesday June 21, 2022 @12:23PM (#31825747)
Your attempts at gaslighting won't work. The OP appears to have created a throwaway account for the purposes of recommending to not use V and then to be used as a linked reference document for further attacks by competitors and detractors, as has already happened on various other internet sites, including here. This is also a pattern of attack on the language, used previously by other detractors, including here and on the OP's "evaluation".

And there is more:

1) The OP does not mention he is evaluating an alpha version of the language.

2) OP starts the "evaluation" with a link to a very contentious and controversial post from 2019, which smears the author and describes the language as vaporware (despite it being 2022 now and over 100 releases later).

3) At no time during the creation of his supposedly month long "evaluation" did the OP reach out to the V developers or community to verify anything in his report.

4) At no time did the OP demonstrate any good will by filing any bug reports or creating a discussion at V's GitHub. He had a unknown throwaway GitHub account, to easily do such.

5) The OP's "evaluation" summary (that can not be responded to) is full of opinions that are subject to interpretation.

6) Exactly how qualified is this mystery evaluator doing this negative review? Unknown.

7) Multiple times in the review, the OP mentions "we", as if he is part of a team. Who is "we"? Unknown.

8) The OP avoids attempts to be engaged in debate with V developers on various points about his review or make it known that he will modify it for correctness, fairness, or language version.

Re:V Language Review by burntsushi on Tuesday June 21, 2022 @12:52PM (#31826183)
The OP doesn't need to file bug reports. The experience report is its own thing of value. I've had people write experience reports about software I've written many times. You know what doesn't happen though? I don't accuse them of bad faith. And I don't cry about them not filing issues as if that's some moral necessity.

The irony of you picking apart the OP's wording as not being exactly correct is just too much. There's the projection I was talking about. :-)

> Multiple times in the review, the OP mentions "we", as if he is part of a team. Who is "we"? Unknown.

On the off chance that you just aren't aware of the idiom, it's common to say "we" as in "me and you, the reader."

Search for "we" in one of my pieces of writing, for example: https://blog.burntsushi.net/csv/

There's nothing nefarious about it. See also: https://academia.stackexchange.com/questions/5500/use-of-fir...

Re:V Language Review by lifthrasiir on Sunday June 19, 2022 @03:30AM (#31797069)
Ductaped languages can be extremely useful though (cf. PHP). But extraordinary claims were what failed V and---sadly and contrary to my remaining hope---continue to do so.
Re:V Language Review by the_duke on Sunday June 19, 2022 @07:38AM (#31798385)
Ductaped languages usually exist because they served some specific need, become popular and then evolved from there. PHP is the perfect example.

They were not "clean sheet, let's make a great new language" implementations.

Re:V Language Review by lifthrasiir on Sunday June 19, 2022 @08:01AM (#31798508)
PHP was already ductaped at the point of PHP/FI 2 [1], when it became more or less a proper programming language. PHP survived despite its ductape nature.

[1] https://www.php.net/manual/phpfi2.php

Re:V Language Review by amedvednikov on Sunday June 19, 2022 @01:58PM (#31801686)
Can you list here the extraordinary claims that failed please.
Re:V Language Review by lifthrasiir on Sunday June 19, 2022 @02:48PM (#31802160)
Read correctly; I said extraordinary claims failed V. But the other reading doesn't seem to paint a pretty picture anyway. Every point made in the original article is a reasonable expectation by outsiders, and many of them are still unsatisfactory ("failed claims" if you like).

What you should do now is to decide what to do with those points instead of arguing. If the decision is WONTFIX (okay to do, not everything can be made into the language) then the advertisement should be updated (ProTip: you should really have done this years ago). If the decision is to do something with that then the advertisement should be still updated, hopefully with a link to the tracking issue. If you are already doing something about that then you still should have a link to the tracking issue. If the point is "misleading", then you should write out clearly why it's misleading, how the author could have concluded in that way (i.e. assume no malice and debug instead), and how to verify your updated claim. With no strings attached.

Honestly though these points have been iterated and reiterated years ago. I had a hope that you have learned (hard) from that past experience; my hope seems not justified.

Re:V Language Review by amedvednikov on Sunday June 19, 2022 @04:04PM (#31802869)
Can you elaborate how language features failed V? And what claims were extraordinary?

Like the language compiling itself in <1s? It's true and you can verify it yourself:

https://www.youtube.com/watch?v=pvP6wmcl_Sc

Re:V Language Review by lifthrasiir on Sunday June 19, 2022 @04:56PM (#31803423)
Look, you are doing what I've just said not to do. I have nothing to say because the OP did most of claims already, you should directly respond to the OP.

And you are slightly altering the very claim you've already said; the OP specificially tests the claim that "V compiles [...] ~1 million (x86 and tcc backends) lines of code per second per CPU core", which I can easily verify on my machine (1m_helloworld.v took 25.5 and 15.5 seconds to compile under the same settings). To be fair these test files are edge cases you can easily dismiss (ProTip: you can make your advertisements more accurate), but edge cases show the weakness of your design and you should not confront them.

Re:V Language Review by amedvednikov on Monday June 20, 2022 @07:54AM (#31809195)
You made a claim:

> extraordinary claims failed V.

I asked you to list such claims. You fail to do so.

There's no way it takes 15s to compile 1m_helloworld.v. You're probably using a debug build of V.

What's your hardware? CPU/SSD.

Re:V Language Review by lifthrasiir on Monday June 20, 2022 @09:12AM (#31809948)
> There's no way it takes 15s to compile 1m_helloworld.v. You're probably using a debug build of V.

You don't have to guess because I can give you my log. I have exactly followed what the OP did, except for more recent revision because I couldn't get it compiled in my environment.

    $ git clone https://github.com/vlang/v/
    $ cd v
    $ git checkout 0e4198f23b2b9a52d72f61dd40d019412b809791

    $ VFLAGS="-prod" make
    make fresh_vc
    make[1]: Entering directory '/tmp/v'
    rm -rf ./vc
    git clone --depth 1 --quiet --single-branch https://github.com/vlang/vc ./vc
    make[1]: Leaving directory '/tmp/v'
    cd ./vc && git clean -xf && git pull --quiet
    make fresh_tcc
    make[1]: Entering directory '/tmp/v'
    rm -rf ./thirdparty/tcc
    git clone --depth 1 --quiet --single-branch --branch thirdparty-linux-amd64 https://github.com/vlang/tccbin ./thirdparty/tcc
    make[2]: Entering directory '/tmp/v'
    make[2]: Leaving directory '/tmp/v'
    make[1]: Leaving directory '/tmp/v'
    cd ./thirdparty/tcc && git clean -xf && git pull --quiet
    cc  -std=gnu99 -w -o v1.exe ./vc/v.c -lm -lpthread
    ./v1.exe -no-parallel -o v2.exe -prod cmd/v
    ./v2.exe -o ./v -prod cmd/v
    rm -rf v1.exe v2.exe
    Note: building an optimized binary takes much longer. It shouldn't be used with `v run`.
    Use `v run` without optimization, or build an optimized binary with -prod first, then run it separately.

    Note: `tcc` was not used, so unless you install it yourself, your backend
    C compiler will be `cc`, which is usually either `clang`, `gcc` or `msvc`.

    These C compilers, are several times slower at compiling C source code,
    compared to `tcc`. They do produce more optimised executables, but that
    is done at the cost of compilation speed.

    V has been successfully built
    V 0.2.4 0e4198f

    $ cat > t.sh && chmod a+x t.sh && ./t.sh > 1m_helloworld.v
    #!/bin/bash
    echo 'fn main() {'
    for i in {3..1000000}
    do
        echo '    println("hello world")'
    done
    echo '}'

    $ time ./v 1m_helloworld.v
    parsed 100000 statements so far from fn main.main ...
    parsed 200000 statements so far from fn main.main ...
    parsed 300000 statements so far from fn main.main ...
    parsed 400000 statements so far from fn main.main ...
    parsed 500000 statements so far from fn main.main ...
    parsed 600000 statements so far from fn main.main ...
    parsed 700000 statements so far from fn main.main ...
    parsed 800000 statements so far from fn main.main ...
    parsed 900000 statements so far from fn main.main ...

    real    0m14.929s
    user    0m6.516s
    sys     0m8.031s
I have also verified that TCC was indeed in use:

    $ mv thirdparty/tcc/tcc.exe thirdparty/tcc/tcc.exe.orig

    $ time ./v 1m_helloworld.v
    parsed 100000 statements so far from fn main.main ...
    parsed 200000 statements so far from fn main.main ...
    parsed 300000 statements so far from fn main.main ...
    parsed 400000 statements so far from fn main.main ...
    parsed 500000 statements so far from fn main.main ...
    parsed 600000 statements so far from fn main.main ...
    parsed 700000 statements so far from fn main.main ...
    parsed 800000 statements so far from fn main.main ...
    parsed 900000 statements so far from fn main.main ...
    ==================
    cc: internal compiler error: Killed (program cc1)
    Please submit a full bug report,
    with preprocessed source if appropriate.
    See <file:///usr/share/doc/gcc-7/README.Bugs> for instructions.
    ...
    ==================
    (Use `v -cg` to print the entire error message)

    builder error:
    ==================
    C error. This should never happen.

    This is a compiler bug, please report it using `v bug file.v`.

    https://github.com/vlang/v/issues/new/choose

    You can also use #help on Discord: https://discord.gg/vlang


    real    6m50.090s
    user    6m8.375s
    sys     0m31.094s
(I gave up when the gcc memory usage ballooned up to 20 GB.)

> What's your hardware? CPU/SSD.

i7-7700 3.60 GHz, 48 GB of RAM, SSD in use, Windows 10 WSL (that's probably why kernel time is higher than average, otherwise my userland time agrees with the OP).

Re:V Language Review by amedvednikov on Monday June 20, 2022 @12:07PM (#31811983)
You're not using the tcc backend.

It says

Note: `tcc` was not used, so unless you install it yourself, your backend C compiler will be `cc`, which is usually either `clang`, `gcc` or `msvc`.

Also you have "gcc" in your error:

See <file:///usr/share/doc/gcc-7/README.Bugs>

And on the website the claim is made for tcc and x64 backends.

Like I said, no way it'd take 15 seconds :)

Re:V Language Review by lifthrasiir on Monday June 20, 2022 @01:53PM (#31813346)
If I was not using the tcc backend for the first execution, then why would the second execution without tcc.exe be timed out? (I have also checked strace just like the OP.) It seems unlikely that the first execution and the second execution use the same gcc and still behave in such diverging ways. And if my reasoning is incorrect, please do not instinctively reply to me (I had enough) and put a proper diagnostic to tell whether TCC is being used, since it looks like a genuine confusion.
Re:V Language Review by amedvednikov on Monday June 20, 2022 @05:23PM (#31816160)
You're not using tcc, because the language literally tells you so, you get a GCC error, and you get 10x slower compilation time.

I think it's pretty clear.

Anyway, now that we are clear on the compilation speed claim, can you please list a couple of those extraordinary claims?

Re:V Language Review by vlang1dot0 on Monday June 20, 2022 @06:33PM (#31817058)
Did you even bother to read what he pasted? Tcc is used in the first set of commands that do not terminate.
Re:V Language Review by ylluminate on Monday June 20, 2022 @08:01PM (#31817925)
He is in fact reading it, please look again at what he pasted. It really seems somehow you're getting your wires crossed.
Re:V Language Review by lifthrasiir on Monday June 20, 2022 @08:17PM (#31818062)
No he didn't understand at all. Both the OP and I'm saying that while `make` claims that tcc was not used, the compiler does seem to use tcc even in that case. I have demonstrated that this is a plausible explanation by moving the tcc binary and showing the stark performance difference.

(This is my final response on this matter. I have already given enough information and an inability to interpret it is not my business.)

Re:V Language Review by amedvednikov on Monday June 20, 2022 @08:55PM (#31818390)
I admit I misread, and you do indeed use TCC.

I've just tested it, and turns out all C compilers are terrible at hundreds of thousands of print calls (for me Clang was stuck for minutes with 100% cpu usage).

The claim was made about actual code, like the V compiler itself, which is about 220k loc and compiles in 0.3 seconds, not some unrealistic test with a million of prints.

I'll make it clear on the home page with a link to the benchmark.

Re:V Language Review by ylluminate on Monday June 20, 2022 @09:08PM (#31818509)
Understandable to misread - I, funnily, did as well as I was quickly going down through the original comment + replies.
[dead]
Re:V Language Review by ylluminate on Wednesday June 22, 2022 @06:44PM (#31842836)
Human decency is a foreign concept to a lot of folks, eh?
Re:V Language Review by Tozen on Sunday June 19, 2022 @10:20AM (#31799627)
Let's not discount the hundreds of contributors, sponsors, and other developers that continually make contributions to and improve V.

The impression should not be given that V is just a one-man show. Many of the offshoot projects are in collaboration with others, not just the author, who have invested heavily in them and also wanted or helped create them.

Re:V Language Review by super_flanker on Sunday June 19, 2022 @01:03PM (#31801146)
Even when they are known to be scammers and frauds?

V's author is paying others to write things in V (even when basic functionalities don't work as advertised). They don't want to improve the language, they want to create a showcase to attract more funding, that's about it.

Re:V Language Review by Tozen on Sunday June 19, 2022 @01:55PM (#31801663)
From what I've seen, V's author (along with other contributors and sponsors) have been constantly improving the language. Of which, these efforts are applauded by V's users and supporters.

As far as I'm concerned, V works as described in their documentation. As with any language, there are some specifics that are subject to interpretation or debate, but that is to be expected.

And, V is not doing anything that other languages also try to do in terms of sponsors and investors to sustain progress, increase popularity, or make improvements.

Re:V Language Review by spacechild1 on Sunday June 19, 2022 @03:52PM (#31802755)
> As far as I'm concerned, V works as described in their documentation.

Really? Can you explain to me how memory management works in V?

Re:V Language Review by Tozen on Sunday June 19, 2022 @04:23PM (#31803088)
V (which is at 0.2.4) is using -gc boehm, which is presently the default. On present versions, you don't have to do anything to enable it. On older versions, you needed to enable -gc boehm. You can choose to use and enable Autofree (-autofree), which works, but you have to know what you are doing. Thus it's best to refer to examples of its usage. Then you can also manage memory manually, where of course you clearly must know what you are doing.

Autofree will not be the default until version 0.3 of the language. Autofree inserts free calls during compilation, and the rest is managed by RC. V will be giving users 3 choices: GC, Autofree, or manual. Those people that actually use the language, would already know this.

This is mentioned on both the website and in the documentation, and any confused users can simply ask on discord (https://discord.com/invite/vlang) or the GitHub discussion (https://github.com/vlang/v/discussions).

Re:V Language Review by spacechild1 on Sunday June 19, 2022 @04:38PM (#31803243)
Can you point me to a source that explains how "autofree" is supposed to work?

EDIT:

> which works, but you have to know what you are doing

This does not feel very convincing...

Re:V Language Review by ylluminate on Sunday June 19, 2022 @01:08PM (#31801196)
This is a complete lie.
Re:V Language Review by super_flanker on Sunday June 19, 2022 @01:43PM (#31801557)
Like what is lie? I was offered money to develop something in WASM using V, so that they could add it to their "awesome-v" list.

Aren't you the part of the core team who bans anyone on discord who asks questions about V's memory management?