TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

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

40 pointsby ijellitiover 4 years ago

6 comments

vsskanthover 4 years ago
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 未加载
lasagnaphilover 4 years ago
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 未加载
tuananhover 4 years ago
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 未加载
jokethrowawayover 4 years ago
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 未加载
pipologistover 4 years ago
Nice work. V is coming along nicely. How would you say the autofree engine works, is it RAII?
评论 #25487383 未加载
dpc_pwover 4 years ago
Oh, someone is fixing Go? Nice.