News for hackers. Stuff that matters.
Re:V Programming Language by bunderbunder on Friday March 15, 2019 @07:06PM (#19405168)
It looks like V is built on top of the biggest ecosystem of them all: C.

From the page comparing to other languages, they claim "Zero cost C interop".

Re:V Programming Language by bartl on Friday March 15, 2019 @09:55PM (#19405912)
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') }

Re:V Programming Language by ncmncm on Monday March 18, 2019 @10:37AM (#19421370)
This is an important point.

amedvednikov is the author.

It is hard to interpret it. The V compiler parses C?