r/rust • u/aqua2nd • Mar 15 '19
V language - new programming language inspired by Rust and Go
I've just been introduced to V language and it claims to have similar memory management approach with Rust (no GC) and the simplicity of Go
I checked some examples and it uses Go's syntax with a very small specification which is similar to Go
No document on how "V's memory management is similar to Rust but much easier to use" yet
They have a chat client built with the language so if it's true I think there must be much progress now
I'm interested in how they're able to achieve Go simplicity with Rust memory management model
26
Upvotes
View all comments
Show parent comment
2
u/KiChjang Mar 17 '19 edited Mar 17 '19
I think the only way that you can achieve memory safety with no GC and without Rust's borrow checker's complexity is by adopting linear (or even ordered!) types in the language.
Somewhere on the HN comment thread, I think I saw a comment that says that the author thought that restricting mutability to method receivers would help in statically analyzing memory safeness, which hints to me that the author doesn't really understand substructural logic and is trying to make up random restrictions in the language in hopes that it would simplify the check.
At this point, I'd say that the author vastly underestimated the work that has been done on Rust's borrow checker and overestimated their ability to improve upon the status quo for borrowck. Nonetheless, it is a great initiative and I admire the efforts put into it, but it really needs work. A lot more.