V Forum

[ log in ]

How to compile a 65 KB web server?

parke 2020-08-19 21:31
The vlang homepage says: "Compiles to native binaries without any dependencies: a simple web server is only 65 KB"

Are there instructions on how to reproduce this result?

I am curious, because I compiled a "hello, world" program, and the result was a 232 KB executable.
scroot 2020-08-21 00:47
v -prod hello_world.v 50k
v -prod tcp_echo_server 60k

OS: ubunut 16.04
V:V 0.1.29
parke 2020-08-23 22:39
Thank you!

Powered by Vorum, open-source blogging/forum software written in V