News for hackers. Stuff that matters.
Re:Ran: a simple static web server written in Go by skywhopper on Saturday October 03, 2015 @09:39AM (#10323841)
The Go server is likely faster, and it's certainly faster to type "ran" than "python -m SimpleHTTPServer".
Re:Ran: a simple static web server written in Go by masklinn on Saturday October 03, 2015 @09:54AM (#10323888)
> The Go server is likely faster

Which is not usually relevant if you just want to share a file over local HTTP. If you need a production-level HTTP server, you're not using either.

> it's certainly faster to type "ran" than "python -m SimpleHTTPServer".

If you're smart enough to compile ran and put it on your PATH, you're probably smart enough to create an alias for `python -m SimpleHTTPServer`.

Re:Ran: a simple static web server written in Go by junke on Saturday October 03, 2015 @10:11AM (#10323937)
> ... faster ... faster

It is faster to use an existing tool (python or another one) than rewriting a 2K LOC one. This is great for learning Go but the compounded time "lost" with a "slow" python server is nothing compared to the time this tool will require in development, debugging and maintenance over the years. As anyone else, I am subject to NIH and I can understand why writing one's own library is interesting by itself. Please don't invent weak excuses like "ran is faster to type".