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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

V compile time memory management:Running the Ved-editor on 8MB file with 0 leaks

40 点作者 ijelliti超过 4 年前

6 条评论

vsskanth超过 4 年前
Very happy to see vlang make steady progress. Been following this language since it was initially posted on HN.<p>What is the trade off here with auto free ? Is it still possible to have memory leaks in some scenarios ?<p>What about concurrency or multi threaded situations ?
评论 #25486661 未加载
评论 #25488871 未加载
lasagnaphil超过 4 年前
I still don’t fully understand the memory management side V. From what I’ve seen V takes a similar route as Nim’s recent ORC feature (<a href="https:&#x2F;&#x2F;nim-lang.org&#x2F;docs&#x2F;destructors.html#move-semantics" rel="nofollow">https:&#x2F;&#x2F;nim-lang.org&#x2F;docs&#x2F;destructors.html#move-semantics</a>), which automatically inserts destructor calls using move semantics. The question is, is there a similar move semantic model in V akin to C++ and Nim, or does it work in a totally different way? This wasn’t clear when reading the documentation, which made me a bit skeptical about it.
评论 #25488911 未加载
tuananh超过 4 年前
it&#x27;s very impressive to know this is one person&#x27;s work.<p>i first heard of him via Volt app. and then he went on to create vlang which looks very good from what i&#x27;ve seen
评论 #25486182 未加载
jokethrowaway超过 4 年前
So this is basically a go-like language which can be compiled into C (which would explain fast compilation small size)? Neat!<p>I guess community and adoption will make it or break it
评论 #25486294 未加载
pipologist超过 4 年前
Nice work. V is coming along nicely. How would you say the autofree engine works, is it RAII?
评论 #25487383 未加载
dpc_pw超过 4 年前
Oh, someone is fixing Go? Nice.