Yet I've skimmed the entire site and nowhere do I see mentioned how to use C libraries in V.
I don't have to convert C to V and then compile the entire V program, do I?
Re:V Programming Language
by bunderbunder on Friday March 15, 2019 @10:14PM
(#19405984)
I doubt it, but it's hard to tell. More will become clear once they've actually released the langauge - as it is, this whole website seems super premature, since neither the language itself nor the source code to any real software written in it are available for public consumption.
The documentation that exists is minimalist enough that I would be very careful about assuming it represents a complete representation of the language's features.
Re:V Programming Language
by amedvednikov on Saturday March 16, 2019 @01:44AM
(#19406535)
Good point, I'll add an example.
It's just `C.puts('hello')`
Re:V Programming Language
by edflsafoiewq on Saturday March 16, 2019 @06:49AM
(#19407214)
How do you include the header with puts though?
Re:V Programming Language
by amedvednikov on Saturday March 16, 2019 @07:02AM
(#19407245)
#include <stdlib.h>
fn main() { C.puts('hello') }
From the page comparing to other languages, they claim "Zero cost C interop".