News for hackers. Stuff that matters.
Re:The V language now compiles itself in 0.09 seconds by nedp on Saturday October 19, 2019 @03:19AM (#21297299)
Scripting is one of V's main features[0]. Just a couple days ago, it was incorporated into the 'master' branch[1] so you can now use it.

0 - https://vlang.io/docs#bash

1 - https://github.com/vlang/v/commit/5cd38ec91bc1919aca9f63432e...

Re:The V language now compiles itself in 0.09 seconds by jokoon on Saturday October 19, 2019 @05:05AM (#21297557)
I meant compiling and executing V from C++, calling V functions from C++, and C++ function from V.
Re:The V language now compiles itself in 0.09 seconds by delian66 on Sunday October 20, 2019 @02:42AM (#21302606)
V produces .c files, which are then compiled to .o files, like C.

Interfacing v code into a C++ app, is like interfacing with any other C library, with the addition, that you may have to write the C headers yourself (or you can cut/paste them from the produced C file).

If you want to call a C++ function from V, you have to export it from the C++ side, like you would do for a C app: extern "C" { int your_function(int x) } ... and then call it from the V side like any other C function. (https://vlang.io/docs#calling_c)