V forum is live
https://forum.vlang.io
Initially I was going to set up a Discourse instance, but it turned out to be way too bloated for my liking.
This simple forum/blog software is written in V and will be open sourced after the language is.
It's very minimalistic, but it gets the job done. There's not a single line of JavaScript :)
There's not a single line of JavaScript :)
I like it
The entire web app is a single 65 KB binary file, so deployments and maintenance are going to be pretty easy.

I think it would be more than handy for us curious to get a read-only access to the language so we can take an idea how the language is implemented and report possible bugs and typos via ticketing.
Just a humble thought, nothing more.
I really need to get my hands dirty using it :laughing:
I'm really curious what a web app in V looks like. Would you consider posting the forum source so we can take a look? :-)
Also, curious, what did you use for persistence and how do you connect to that?
By the way, I have browsed the documentation and haven't seen anywhere anything about exceptions.
Is it an undocumented mechanism or it's something that happens behind the scenes in a "magical" way?
@mindplay-dk I planned to release the source in June, but I came to the same same conclusion as you: it would be really nice to have an example of a web app. So I'll release it next week after I implement templates. Right now there are no templates and the code is really ugly, Perl CGI style.
Also, curious, what did you use for persistence and how do you connect to that?
Postgresql/libpq.
By the way, I have browsed the documentation and haven't seen anywhere anything about exceptions.
There are no exceptions. Only Go-like panics.
I hope we don't see any if err != nil with V, much like we see in Golang lol!
I hope we don't see any if err != nil with V, much like we see in Golang lol!
https://vlang.io/compare https://vlang.io/docs#option
Option types are used for error handling. There's no nil in V.
Mind...BLOWING! :boom:
Can we get it already?!
Seriously now @medvednikov we really really need to use it, like...yesterday!
@medvednikov I wish for a Svelte/Sapper V3 like framework for building isomorphic web apps with V + web assembly. Someone is already working on a Rust version of Svelte V3.
Rust also has few other fameworks for building isomorphic/client web apps https://github.com/chinedufn/percy https://github.com/DenisKolodin/yew
So I'll release it next week after I implement templates
Great news! It would also be good to open source the standard library IMO even before the compiler is released.
@medvednikov Is there a particular reason you are not closing body and html tags in forum HTML code?
Is there a particular reason you are not closing body and html tags in forum HTML code?
I implemented header.html, but not footer.html. Will fix.
Cool :+1:
is there a way to create in V a function which returns C void pointer ???
and is there a possibility to create in V function what has input argument as C void pointer ???
Your questions have nothing to do with this issue. Please open a new issue if these don't tell you what you want to know:
https://github.com/vlang/v/blob/master/doc/docs.md#calling-c-from-v https://github.com/vlang/v/blob/master/doc/docs.md#calling-v-from-c