Hacker News new | ask | show | jobs
by bartl 2653 days ago
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?

2 comments

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.

Good point, I'll add an example.

It's just `C.puts('hello')`

How do you include the header with puts though?
#include <stdlib.h>

fn main() { C.puts('hello') }

This is an important point.

amedvednikov is the author.

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