V: V has been open sourced, some notes about the alpha release

Created on 22 Jun 2019  路  9Comments  路  Source: vlang/v

Hello,

First of all, sorry for the 20 minute delay. I had serious Git issues and I had to destroy and re-create the repository twice.

That's also why README.md had old instructions, and it was not possible to build V right away.

The instructions are now correct.

This is the first public alpha release. While the compiler itself has been cleaned up, the modules haven't been. Many things were written back in May of 2018 when the language was a couple months old and were never touched again. The worst offenders are os, gg, http.

I decided to release everything for transparency, and no longer delay the release.

There are lots of hacks I'm really embarrassed about, like using os.system() instead of native API calls, especially on Windows. There's a lot of ugly C code with #, which I regret adding at all.

All of these will be quickly cleaned up in the coming weeks.

Someone also raised a concern about missing implementations for Linux. In many cases, code for macOS and Linux is the same, so if V sees there's a _mac.v file, but no _lin.v file, it uses that file for Linux builds.

Announcement

Most helpful comment

Add inline bash scripting

All 9 comments

even with the update, I'm getting segmentation faults on build:

[email protected]:/Users/32350/code/v/compiler git:(master*) $ ./vc -o v .
[1]    11900 segmentation fault  ./vc -o v .

Add inline bash scripting

Compiled just fine for me on Ubuntu.

image

Compiled the V compiler using cc with all of V's files cloned in directories /var/tmp/vlang0.0.12/ and ~/code/v/ if that helps anyone.

@UditDey You missed the platform son, this is not facebook

clang v.c -o vc
work for me on ubuntu

clang v.c -o vc
work for me on ubuntu

confirming this works on arch linux too

@Wurdlack oh shit I just realised haha I had both the tabs open and got mixed up

Thanks for great work!

@medvednikov do a Show HN?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

penguindark picture penguindark  路  3Comments

lobotony picture lobotony  路  3Comments

arg2das picture arg2das  路  3Comments

XVilka picture XVilka  路  3Comments

aurora picture aurora  路  3Comments