Hacker News new | ask | show | jobs
by dewey 4507 days ago
If you just want a small httpd there's also gatling and fnord.

[0] http://www.fefe.de/gatling/ [1] http://www.fefe.de/fnord/

2 comments

Or webfsd. or bozohttpd or...
this one has 45 lines of code :)
Well, the binary contains a lot of go.
That's true of anything written in Go.
Yes, but, trivial c programs statically linked with glibc can be in the ballpark of 500KiB, trivial c programs statically linked with uclibc or similar can be in the ballpark of 100KiB, and trivial go programs (always statically compiled) can be 2-5 MiB. They're huge.
The go team is aware of this and I think it will improve soon: http://talks.golang.org/2014/go1.3.slide#1
Which is what I was getting at...
What I meant was that almost all the HTTP stuff is in "net/http".