Live data from Hacker News

The V Programming Language

vlang.io

241–250 of 308 posts

Re: The V Programming Language

#241

Earlier quoted context omitted.

I'm curious, can you make an example?

POSIX signal handlers don't take an argument other than the signal code, so if you want to handle them gracefully in a stateful app you need a global to communicate the trapped signal to your main loop.

Closures could be used to implement this use case, provided that they can be exported/represented as native C function pointets, e.g. via a trampoline that captures the necessary captured context)

Re: The V Programming Language

#242

Hello, Developer here. The release was messed up by me having serious git troubles. I had to destroy the repository twice, as the result and old README file with the wrong instructions resulted in everyone having segfaults. Everything will work as expected in a couple of days. Launching such a big project for hundreds (thousands?) of testers is not easy.

So, what are the correct instructions? I followed the instructions on the GitHub and yes, I'm getting segfaults.

can you `wget https://vlang.io/v.c` again?

Re: The V Programming Language

#243

Earlier quoted context omitted.

So, what are the correct instructions? I followed the instructions on the GitHub and yes, I'm getting segfaults.

can you `wget https://vlang.io/v.c` again?

Okay, I did and I was able to compile the `vc` compiler from the C source. The REPL in `vc` seems to work (at least for the basic printing I tried) and running `./vc -o v .` worked as well. But the new `v` compiler segfaults with:

  coudlnt create file "/var/tmp/vlang0.0.12//vrepl.v"
  Segmentation fault (core dumped)
EDIT: however, if I understand it correctly, it was not the instructions after all, that resulted in everyone having segfaults...

EDIT2: okay, so I redownloaded the whole thing and yes, you fixed that now. But it still segfaults sometimes. For example if I try to pass a `-h` flag.

Re: The V Programming Language

#244
post #214

Earlier quoted context omitted.

I'd happily respond, but this comment is like a greased pig: there's nothing to latch onto. Well, there's one thing: nothing about that project affects YC or HN or us, and we haven't conspired to "lessen the impact". The sinister specifics people come up with! What catches my eye is flamewars on Hacker News, because part of being a janitor is mopping those up. Our deep dark purpose? To have an internet forum that doe…

If we listened to anything you've taught us, you don't do something you're good at for free. So, why do you run a news site? It's certainly not out of the goodness of your heart. My not-so-dark-idea is it benefits Ycombinator in a significant way.

Of course! But the benefits aren't small and sneaky, they're large and open. HN is valuable to YC simply by being an interesting place on the internet. The most-interesting HN is the most valuable-to-YC HN, the one that is most in YC's business interests. So curiosity is what we're optimizing for:

https://hn.algolia.com/?sort=byDate&dateRange=all&type=comme...

https://hn.algolia.com/?dateRange=all&page=0&prefix=true&que...

There's simplicity on the other side too: YC just optimizes for the number of great startups it can fund. How optimizing HN (by keeping it interesting) benefits YC (by helping it fund more great startups) is left as an exercise to the reader [1].

The reason we don't mess around with local optimizations is that they're a bad trade. What matters is the global optimization. Think of the goose that lays the golden eggs. If you have the goose, why focus on an egg or two? Focus on the goose.

[1] Actually I'd better not, or someone will make up something nefarious. The reason is that some HN users end up founding YC-funded startups. And many are startups that might not have gotten started otherwise.

Re: The V Programming Language

#245

Earlier quoted context omitted.

I can't understand criticising a brand new, v0.0.12 language built entirely by one person of being too small...

A lot of people have been finding the development of the project on a monthly basis. The work that has actually been done might be unsettling to the patrons.

As a patron myself, I can confidently say you're way off base. The language has only existed for 3 months. It's going to take at least 2-5 years to get anywhere close to feature complete and another 5-10 years to get traction.

Languages are a marathon, not a sprint.

Re: The V Programming Language

#246

It's pretty obvious that this person has essentially lied: they have not implemented the complex features they claim while they hype benefits like compile time and lack of non-zero cost features that will have to disappear when they have implemented what they promised. But I think what's more interesting, more telling, is the level of vitriol over 12k/year in patreon subscriptions. Funding in open source is so absurd…

The only thing developers seem to hate more than closed source software is a funded open source project.

Re: The V Programming Language

#247
post #217

In case the author ever reads this: assuming good faith, the effort and intent is laudable, but you've put the cart in front of the horse by having multiple amazing claims that would take many, many man/years to accomplish by experienced developers, which is why they've been received with a lot of skepticism. Even assuming a great level of skill, the claims a priori are hard to take serious, even before taking into c…

> Now that (part of?) the code has been released, it seems to be little more than a transpiler from V to C, with allowed inlined C, with most advertised features stubbed out. This is a little off-topic but I feel it needs to be discussed. The term "transpiler" that you've used here is a little belittling, not only to V but to other languages which are translated to C. I don't think its fair nor accurate to characteri…

> V does seem to lean very heavily on inlined C inside its standard library and compiler. So that assessment is totally fair.

If you don't mind me asking, how heavily did Nim rely on inlined C inside it's standard library and compiler when it was only 3 months old? Or did you guys do something different that early in it's development?

Re: The V Programming Language

#248
The name is good, the language has very cool features on the roadmap. I'd find it interesting even if it was just a concept with no implementation at all, so I don't get what people complain about it. Where do all these naysayers come from? Do they hold personal grudges?

If it included an optional GC, version 1.0 of V would probably be my favorite language and I'll definitely follow its future development.

Re: The V Programming Language

#249

It's pretty obvious that this person has essentially lied: they have not implemented the complex features they claim while they hype benefits like compile time and lack of non-zero cost features that will have to disappear when they have implemented what they promised. But I think what's more interesting, more telling, is the level of vitriol over 12k/year in patreon subscriptions. Funding in open source is so absurd…

The only thing developers seem to hate more than closed source software is a funded open source project.

Not in general, but many open source developers do hard work and do sometimes not even get praise, so they don't like it when someone who they feel did not work so hard or not at all and just promised unrealistic things, get's the money.

(not judging about that case here)

Re: The V Programming Language

#250

Earlier quoted context omitted.

The only thing developers seem to hate more than closed source software is a funded open source project.

Not in general, but many open source developers do hard work and do sometimes not even get praise, so they don't like it when someone who they feel did not work so hard or not at all and just promised unrealistic things, get's the money. (not judging about that case here)

This sounds to me like that same attitude that keeps people from saying how much they make; that your coworker will get mad at you, and not your boss.
Post reply on HN