v icon indicating copy to clipboard operation
v copied to clipboard

V forum is live

Open medvednikov opened this issue 7 years ago • 16 comments

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 :)

medvednikov avatar Apr 11 '19 08:04 medvednikov

There's not a single line of JavaScript :)

I like it

wangyghy avatar Apr 11 '19 09:04 wangyghy

The entire web app is a single 65 KB binary file, so deployments and maintenance are going to be pretty easy.

medvednikov avatar Apr 11 '19 22:04 medvednikov

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:

stefanos82 avatar Apr 18 '19 22:04 stefanos82

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?

mindplay-dk avatar Apr 19 '19 07:04 mindplay-dk

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?

stefanos82 avatar Apr 19 '19 12:04 stefanos82

@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.

medvednikov avatar Apr 19 '19 17:04 medvednikov

I hope we don't see any if err != nil with V, much like we see in Golang lol!

stefanos82 avatar Apr 19 '19 17:04 stefanos82

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.

medvednikov avatar Apr 19 '19 18:04 medvednikov

Mind...BLOWING! :boom:

Can we get it already?!

Seriously now @medvednikov we really really need to use it, like...yesterday!

stefanos82 avatar Apr 19 '19 21:04 stefanos82

@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

ansarizafar avatar Apr 20 '19 01:04 ansarizafar

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.

ntrel avatar Apr 20 '19 12:04 ntrel

@medvednikov Is there a particular reason you are not closing body and html tags in forum HTML code?

stefanos82 avatar Apr 23 '19 07:04 stefanos82

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.

medvednikov avatar Apr 23 '19 07:04 medvednikov

Cool :+1:

stefanos82 avatar Apr 23 '19 08:04 stefanos82

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 ???

ondra117 avatar Apr 26 '22 17:04 ondra117

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

JalonSolov avatar Apr 26 '22 18:04 JalonSolov