3 ms·
I've used Vlang a fair amount, and made small minor contributions to its compiler, REPL, and documentation. Personally, I wouldn't consider it suitable for game
by Conscat 4y ago
I've used Vlang a fair amount, and made small minor contributions to its compiler, REPL, and documentation. Personally, I wouldn't consider it suitable for game development, as stated in the article. If you try, you will be very disappointed by its math features, especially for SIMD, its unsophisticated integration with graphics and compute APIs, lack of advanced multithreading and synchronization, and the weak metaprogramming features for performance-sensitive containers you get accustomed to in C++.
V also really can't support custom allocators effectively, much less a hierarchy of memory arenas. To do almost anything, you need a global heap allocator, because the compiler inserts invisible malloc() calls.
That said, I love the language's control flow. It's expression oriented and has a flow-sensitive type system with a very terse syntax.