3 ms·
It's not a popular thing to say on social media. V-lang is the one I'm tinkering with. It's like rust in terms of pattern matching as an expression, sum types,
by adsharma 7mo ago
It's not a popular thing to say on social media.
V-lang is the one I'm tinkering with. It's like rust in terms of pattern matching as an expression, sum types, ?T instead of exceptions.
Like golang, it has shorter compile times.
I try to keep my argument abstract (that you need to lower python to something intermediate before rust) for that reason.
- adsharma 7mo agoHere is a python AST parser written in V. It's targeting a dialect that's mostly compatible with a static subset of python3, but will break compatibility where necessary. In this case pattern matching, possibly elsewhere. https://github.com/py2many/v-ast https://github.com/py2many/v-ast
- zahlman 7mo agoNever heard of this language, but it looks interesting. Very modern, certainly. One thing that stood out to me is that there's apparently the ability to write a bare `for` loop...? Is that just equivalent to while (true) in other languages?
- adsharma 7mo agoIt can be used in many forms, while true is one of them. I don't have a whole lot of experience hand writing v-lang. Mostly machine generated from static python. But I find it convenient for what it does. Golang that is less verbose, single binary for distribution and fewer tokens if you're using an agent. GitHub.com/LadybugDB/ladybug-vlang has a CLI I recently wrote with an agent for a database I maintain. Static python with design by contract can be a stronger specification than natural language. @antirez was discussing this on his social media today.
- gf000 7mo agoIt does have a "shady" past, but AFAIK it mostly managed to leave that vaporware behind. Nonetheless, I would not bet anything too serious on such a small language.
- adsharma 7mo agoI will not be commenting on the topic here because of a consistent pattern of downvoting: https://x.com/arundsharma/status/2033635906532638776 https://x.com/arundsharma/status/2033635906532638776 You should judge the language based on its license and what it does, not on the morality of people who wrote it and sponsored it. Either produce an alternative language which does the same thing written by more "unshady" people and supported by a large corporation (talking about the "small language" comment here). These human emotions won't matter in 6 months as code will be increasingly written by machines which have no such considerations.
- gf000 7mo agoShady people is one thing, marketing a language with impossible claims is another. People got interested in the language over wildl claims that are simply CS-wise impossible. Later, these were removed from the site and you are left with a.. not too interesting language. I'm judging it on this late phase, with a bad taste in my mouth from the former shenanigans. > in 6 months as code will be increasingly written by machines Come on..
- baranul 7mo agoThe AI companies are arguably taking taxpayers (via electric bills) on a ride. A lot of the code, which people get fooled into thinking are AI "solutions", is code already written by humans or even stolen by disregarding licenses and copyright. A problem not just in programming, but widely complained about by book authors and artists. The "AI" makes a few changes of the free content it sucked up, then gives it back based on correct prompts, for a fee. They got it for free, but you will pay a fee. If it is not something simple, it's often riddled with errors or takes a huge numbers of prompts to get it right. So some time was saved in typing, but then lost in code review and fixing errors. Humans that can understand what they are doing, troubleshoot, and architect are still needed.
- baranul 7mo agoWhat was really "shady": 1) Attempts by competitors and their minions to blank out any supporters or positive news on V. 2) Mass shadowbanning and banning of V supporters, while censoring lots of positive coverage. 3) Tipping the scales (also reflected in downvoting), by allowing lies and even direct slander from known persons of competing organizations (languages even on their profiles), while they pushed what looked like HN "favored" or "protected status" languages. Arguably, only the explosion of AI slop (maybe it's more profitable), has slowed down the outrageous bombardment of Zig and Rust peddling. Languages which are not even in the top 10, but one would not have known that, by the number of previous HN headlines.
- baranul 7mo agoPy2many is a great project. There are actually a couple of Python to Vlang (Py2V) projects.