The V Programming Language
1.2K posts

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

Is this language worth learning or using? Heard it's like go in syntax
The V Programming Language@v_language
Should the compiler warn about unused function parameters? (see the screenshot in the first reply)
English

@sysstary7556 You can use double quotes too. vfmt forces single quotes.
It's due to our "one way" policy.
English

@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

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

@v_language Ну всё, скоро перепишу свой проект на V тогда. Вообще для embedded бы побольше приколов, ведь перспективы тоже хорошие. (А C++ я там не хочу)
Русский

@magnum_d1ngus In V warnings become errors once you compile production (optimized) builds.
English

@v_language Warnings are fine. Go got this one wrong. As errors with a flag is also fine.
English

@marcsh _ int works. also V still compiles code with notices/warnings.
English

@v_language Assuming anything like this works
fn foo( int ) {}
or
fn foo( _ int ) {}
or
fn foo( ? int ) {}
Then its fine
English

@vircodificat @MrBinarySniper Warnings/notices are not errors. V will still compile this code during development.
English

@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

@MrBinarySniper Go does it for vars not fn params
English

@v_language I think its more better like golang, do not compile the language if there is any unused.
English

@muuvmuuv @bunjavascript We now have optional Rust like ownership (`v -ownership .`), and we'll translate the most popular Rust projects to V. ripgrep first.
English

@v_language Still amazed of V.. wonder what @bunjavascript would have looked like with it instead of the Rust port 👀
English

@v_language @abiiranathan Looks very cool. Getting 404 when clicking the following on gitly.org: "Check out Gitly in action by browsing the V language repo: gitly.org/vlang/v"
English

@DersonEfox There's a 2021 book, but it's outdated.
The best source:
docs.vlang.io/introduction.h…
English

@v_language Are there any books or learning resources you could reccomend
English

@abiiranathan Then you should keep using the GC.
I'm running gitly.org with -prealloc, works fine so far.
English

@v_language What if you support Keep alive and keep connections open?
English

@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

@v_language What about autofree ?
And what the advantages of using arenas ?
English

Viper Engine: 1214 meshes, 7 million triangles at 310 FPS!
Release in March.
youtube.com/watch?v=z9d35w…

YouTube
English

@v_language Set up your vsl docs as a hosted site — fully brandable with your domain and visuals. Should I share?
English

Mustela, an ultra-fast static site generator in V:
codeberg.org/mustela/web
mustela.vercel.app
9,000+ pages/second. Zero-copy architecture.
"Building Mustela in V was a breeze. The performance I'm getting without a complex GC is exactly why I chose the language."

English



