The V Programming Language

1.2K posts

The V Programming Language

The V Programming Language

@v_language

Simple, fast, safe, compiled language for developing maintainable software.

Katılım Şubat 2019
5 Takip Edilen9.8K Takipçiler
syscall
syscall@sysstary7556·
@v_language I was reading the vlang manual and lowkey I liked what I read. Than, I find out it forces single quotes. Why did do that?
English
1
0
0
199
The V Programming Language
You can now build iOS apps in V! There are new vlib modules `ios` and `macos`: #compiling-for-ios" target="_blank" rel="nofollow noopener">github.com/vlang/v/blob/m…
English
5
12
126
5.1K
Limit R
Limit R@IIIyT__·
@v_language Ну всё, скоро перепишу свой проект на V тогда. Вообще для embedded бы побольше приколов, ведь перспективы тоже хорошие. (А C++ я там не хочу)
Русский
3
0
1
332
Dogue
Dogue@magnum_d1ngus·
@v_language Warnings are fine. Go got this one wrong. As errors with a flag is also fine.
English
1
0
5
676
The V Programming Language
Should the compiler warn about unused function parameters? (see the screenshot in the first reply)
English
24
0
32
17.8K
/// //
/// //@marcsh·
@v_language Assuming anything like this works fn foo( int ) {} or fn foo( _ int ) {} or fn foo( ? int ) {} Then its fine
English
1
0
4
866
Vir Codificat
Vir Codificat@vircodificat·
@MrBinarySniper @v_language Zig does this too. It is the sole reason I refuse to use these (otherwise very lovely) languages. An unused variable isn't an error. And during development, you are working with a necessarily incomplete program. You should be able to run it.
English
1
0
0
36
Binary Sniper ⚡
Binary Sniper ⚡@MrBinarySniper·
@v_language I think its more better like golang, do not compile the language if there is any unused.
English
2
0
0
1.5K
The V Programming Language
V has a flexible memory management system. You can disable the default GC and manage memory manually, or use arenas. A great use case for arenas is web apps. Allocate everything for a request in one arena, then free it all at once when the request finishes: v -prealloc veb_app
English
5
6
90
5.1K
The V Programming Language
@brichou09 Arenas are more efficient: one alloc/one free per request (on average). Autofree inserts free calls for each allocation. So it's often even less efficient than GC. Autofree will be finished this year in the new backend.
English
0
0
7
255
Brice Gnoboa
Brice Gnoboa@brichou09·
@v_language What about autofree ? And what the advantages of using arenas ?
English
1
0
0
265
The V Programming Language
The V Programming Language@v_language·
Panic backtraces are now a lot nicer. They show full file paths with line numbers and method names, so you can jump straight from a crash to the exact code that caused it. Don't forget to use `v -g` for such backtraces.
The V Programming Language tweet media
English
1
6
58
2.2K
Bryan Docsbook-io
Bryan Docsbook-io@lesliezinuv6n·
@v_language Set up your vsl docs as a hosted site — fully brandable with your domain and visuals. Should I share?
English
1
0
0
8