TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

V (Vlang) 0.2

247 点作者 0xedb超过 4 年前

25 条评论

amedvednikov超过 4 年前
Author of the language here.<p>Very excited about this release.<p>This is the first major release after 0.1.<p>The focus has been on stability and compile-time memory management. The demo of that was posted here recently [0].<p>7600 commits, 4110 handled pull requests, 340 contributors, 20k GitHub stars. What a journey!<p>[0]: <a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=gmB8ea8uLsM" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=gmB8ea8uLsM</a>
评论 #25511411 未加载
评论 #25512343 未加载
评论 #25511347 未加载
评论 #25511300 未加载
评论 #25511470 未加载
评论 #25514371 未加载
评论 #25520620 未加载
评论 #25512279 未加载
Jenz超过 4 年前
The controversy around V is not without reason.<p>For some context here’s the last of a series of posts examining some of Vs claims <a href="https:&#x2F;&#x2F;christine.website&#x2F;blog&#x2F;vlang-update-2020-06-17" rel="nofollow">https:&#x2F;&#x2F;christine.website&#x2F;blog&#x2F;vlang-update-2020-06-17</a>
评论 #25512508 未加载
评论 #25511618 未加载
评论 #25516131 未加载
评论 #25512796 未加载
评论 #25512561 未加载
reikonomusha超过 4 年前
I mean this without snideness, but I’m constantly amazed at the demand for C-like languages that continue to arrive with every possible combination of features. When I look at V code, it looks barely different than the plethora of options syntactically and semantically. To be sure, it is different, and I get that a lot of programmers find the “no BS minimalism” aspect appealing. (A lot if programmers in fact start a rewrite project with “no BS minimalism”, only to asymptotically recreate the ‘BS’ and destroy the ‘minimalism’.) But I can’t imagine anything being vastly different than any of the other C-likes once your project is big enough, except that V is currently nascent and changing.<p>I remember eC [1, 2] from Ecere being one such example of an “exciting new C”: it had traditional class-based OO, no header files (!), cross platform, reflection, etc etc etc. It came with a huge runtime library with tons of demos. It started 16 years ago (!!). There’s of course D as well (which is more often pitched as a C++ replacement), and its own Walter Bright frequently seen around here, and some companies use it, but it hasn’t truly exploded into mainstream use.<p>Can interested folks (or the author) comment? Are you bored and want a fun new take on programming? Or are you truly, in practice, extremely dissatisfied with the current marketplace of C alternatives and V <i>actually</i> is a take that “gets things right”?<p>[1] <a href="https:&#x2F;&#x2F;en.m.wikipedia.org&#x2F;wiki&#x2F;EC_(programming_language)" rel="nofollow">https:&#x2F;&#x2F;en.m.wikipedia.org&#x2F;wiki&#x2F;EC_(programming_language)</a><p>[2] <a href="https:&#x2F;&#x2F;ec-lang.org&#x2F;overview&#x2F;" rel="nofollow">https:&#x2F;&#x2F;ec-lang.org&#x2F;overview&#x2F;</a>
评论 #25513018 未加载
评论 #25513944 未加载
评论 #25513906 未加载
评论 #25516012 未加载
评论 #25513041 未加载
评论 #25516115 未加载
评论 #25513518 未加载
Aardappel超过 4 年前
Congrats to V on implementing the compile time memory management technique from <a href="http:&#x2F;&#x2F;aardappel.github.io&#x2F;lobster&#x2F;memory_management.html" rel="nofollow">http:&#x2F;&#x2F;aardappel.github.io&#x2F;lobster&#x2F;memory_management.html</a>, like you mentioned on Discord.<p>Would be nice if you would credit it, though.
评论 #25516184 未加载
yawn超过 4 年前
From: <a href="https:&#x2F;&#x2F;vlang.io&#x2F;compare#go" rel="nofollow">https:&#x2F;&#x2F;vlang.io&#x2F;compare#go</a><p>- No null<p>- No err != nil checks (replaced by option types)<p>- Immutability by default<p>- Generics<p>- Sum types (type Expr = IfExpr | StringLiteral | IntLiteral )<p>- If and match expressions (including sum type matches)<p>This might be my personal project goto language for 2021.
评论 #25512207 未加载
nine_k超过 4 年前
I remember from first publications about V lang that felt like a hoax: reams of exciting promises and basically nothing to show for them.&#x27;<p>It&#x27;s great to see that it&#x27;s not s hoax, and it starts to somehow flesh out.
评论 #25511464 未加载
评论 #25511434 未加载
评论 #25512364 未加载
评论 #25513206 未加载
himujjal超过 4 年前
The language is a fantastic one. I can understand the author putting every library&#x2F;language&#x2F;package-manager&#x2F;examples in V together and trying to bring out a wonderful experience out of a language, but wouldn&#x27;t it be better if the memory manager is fixed first and foremost.<p>At the moment its still incomplete. And this is the most interesting part of the whole language. ARC, weak refs, autofree also working together needs to be done, only then will this language be of weight. Garbage collection is a difficult problem to be fair and it definitely determines the performance of many languages. Not to mention multi-threaded GC is difficult. I am excited to see how the author pulls this one through. See you again with V 0.3. Till then best of luck!
hota_mazi超过 4 年前
Code sample on the landing page would be nice.<p>Here is Tetris in V:<p><a href="https:&#x2F;&#x2F;github.com&#x2F;vlang&#x2F;v&#x2F;blob&#x2F;master&#x2F;examples&#x2F;tetris&#x2F;tetris.v" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;vlang&#x2F;v&#x2F;blob&#x2F;master&#x2F;examples&#x2F;tetris&#x2F;tetri...</a>
评论 #25511671 未加载
tutfbhuf超过 4 年前
They claim:<p>&gt; Pure functions by default<p>but all this means by their definition is: no global mutable variables, sort of, because you can enable them per compiler flag.
anthk超过 4 年前
<p><pre><code> darkstar$ ..&#x2F;..&#x2F;v run tetris.v Compilation with tcc failed. Retrying with cc ... ATTENTION: default value of option vblank_mode overridden by environment. gg error: GLX: failed to create GL context Terminated by signal 6 (SIGABRT) Graphics: Device-1: AMD RS690M [Radeon Xpress 1200&#x2F;1250&#x2F;1270] driver: radeon v: kernel Display: server: X.Org 1.18.3 driver: radeon resolution: 1680x1050~61Hz OpenGL: renderer: Gallium 0.4 on ATI RS690 v: 2.1 Mesa 13.0.6</code></pre>
评论 #25620303 未加载
112超过 4 年前
Thank you for creating V, you&#x27;re amazing. There&#x27;s not many people that could do what you did - both from a technical perspective and from a mental perspective. I feel like you get a lot of hate from jealous haters that can&#x27;t even fathom having the required mental energy to keep going at such a hard problem, for such a long time, keeping the flame alive. Fuck&#x27;em, keep rocking!
luxxuor超过 4 年前
Very interesting release. The autorelease is especially noteworthy... also I worry how hard it would be to have more finegrained control over allocations, releasing the memory instantly is not always the most perfomant way. In games for example big (temporary) allocations are often performed in some kind of arena buffer that gets cleared at the end of a frame (NativeArray in Unity does this) and thereby circumvents alot of unnecessary deallocating. How feasible would it be to implement such an allocator in V without losing the autorelease for the other cases?
评论 #25512917 未加载
mozarik超过 4 年前
I learn Go by Learn-go-with-tests. Maybe you guys should do it too.
评论 #25511899 未加载
mrath超过 4 年前
This language looks very nice, I have been keeping an eye on it. From what I remember there were some issues around memory management without gc, specifically because there were mutable, reference types and multithreading. How does it manage memory? Does it use something like ref counting? Is there any documentation around it?
评论 #25620281 未加载
st3fan超过 4 年前
You can say what you want about this project, but reality is that this is an active open source project. Look at those GitHub stats ... more than 300 contributors, 4000 pull requests.<p>Maybe this project had a rough start, but right now anyone claiming this is not real should probably re-evaluate those feelings.
评论 #25518399 未加载
senorsmile超过 4 年前
I just heard about and starting looking into V last night. This is perfect timing!
tomcam超过 4 年前
A tcc backend is mentioned—can someone point me to that?<p>P.S. This language looks amazing
评论 #25511894 未加载
tarkin2超过 4 年前
So this is a safer alternative to Golang with smaller binaries, generics and no GC?<p>[edit] Sorry, edited before there was a reply. You&#x27;re very fast!
评论 #25513227 未加载
评论 #25511681 未加载
hajhatten超过 4 年前
Never heard of V before, now I&#x27;m super excited. Congratulations on the 0.2 release!
awinter-py超过 4 年前
built-in ORM is really compelling actually<p>it implies the presence of other nice-to-haves, like ergonomic struct iteration and linting against schema<p>and it gracefully enables low-code API frameworks if you can annotate RBAC + visibility rules
socialdemocrat超过 4 年前
On my bucket list to check out. Still stuck on trying out Zig.
antoineMoPa超过 4 年前
Does this language have a package management tool?
评论 #25512135 未加载
评论 #25512138 未加载
arthurcolle超过 4 年前
What parts of this are closed source again?
评论 #25512922 未加载
adamzapasnik超过 4 年前
I&#x27;m actually amazed by the progress. Wow. Seems like it&#x27;s worth keeping an eye on. Curious if anyone is running it in production yet?
layer8超过 4 年前
One thing V gets right is not requiring a keyword (e.g. “let”) for initializing an immutable variable. This is such a common operation that it should be as compact and non-visual-noisy as possible (Huffman coding). (Personally I’d go for “=“ instead of “:=“ though, for ease of typing.)
评论 #25512151 未加载