vlang / website

MIT License
62 stars 96 forks source link

More correct comparison between vlang and Rust #197

Closed Kezii closed 2 years ago

Kezii commented 2 years ago

I propose the following changes to the vlang website:

By leveraging ownership and type checking, many concurrency errors are compile-time errors in Rust rather than runtime errors. Therefore, rather than making you spend lots of time trying to reproduce the exact circumstances under which a runtime concurrency bug occurs, incorrect code will refuse to compile and present an error explaining the problem.

cross has the exact same CLI as Cargo but as it relies on Docker you'll have to start the daemon before you can use it.

Procedural macros allow you to run code at compile time that operates over Rust syntax, both consuming and producing Rust syntax. You can sort of think of procedural macros as functions from an AST to another AST.

medvednikov commented 2 years ago

Global state and especially thread local global state is allowed: https://stackoverflow.com/questions/19605132/is-it-possible-to-use-global-variables-in-rust

async/await is much harder to use than Go's concurrency model.