News for hackers. Stuff that matters.
Re:An Introduction to the Go Language by chrismorgan on Thursday June 27, 2013 @10:53AM (#5952581)
> In fact, Go is probably the only language that can claim to have a fully working Web server as part of its standard library.

Seriously?

Python has SimpleHTTPServer to serve a directory plus the associated, less-well-known modules BaseHTTPServer (which SimpleHTTPServer is based on) and CGIHTTPServer, and wsgiref as the reference implementation of the WSGI interface, which makes it a fully-fledged web server.

And I find it impossible to believe that there would not be many more languages with a web server in their standard libraries.

Re:An Introduction to the Go Language by munificent on Thursday June 27, 2013 @12:51PM (#5953277)
Re:An Introduction to the Go Language by coldtea on Thursday June 27, 2013 @12:01PM (#5952978)
>Seriously? Python has SimpleHTTPServer to serve a directory plus the associated, less-well-known modules BaseHTTPServer (which SimpleHTTPServer is based on) and CGIHTTPServer, and wsgiref as the reference implementation of the WSGI interface, which makes it a fully-fledged web server.

All of which is beside the point. Those servers are (even in the documentation) not suggested to be used in production. And they are not.

Whereas Go's server serves thousands of requests per second in large deployments already.

The only other I know of is perhaps Node.

So, yes, seriously.

Re:An Introduction to the Go Language by gizmo686 on Thursday June 27, 2013 @02:16PM (#5953813)
Isn't Node a JavaScript framework for webservers?
Re:An Introduction to the Go Language by coldtea on Thursday June 27, 2013 @08:50PM (#5955615)
Well, it's mostly THE way to use Javascript (or ECMAScript if you wish), the language, on the command line.

As such, I consider it as much a platform as it also is a version of the Javascript language for the backend.

Languages ARE platforms anyway -- we never care just about their core syntax and semantics but also for all the libs stuff they come with. So Python includes batteries, and Java includes the kitchen sync.

Re:An Introduction to the Go Language by nazka on Thursday June 27, 2013 @05:08PM (#5954709)
No, it's a platform (raw server).
Re:An Introduction to the Go Language by tptacek on Thursday June 27, 2013 @12:26PM (#5953118)
The author of this blog post is wrong to so designate Golang, which obviously isn't the first development environment to be bundled with a production-caliber web server.

But you're also wrong in suggesting that Python's built-in webservers are equivalent to Golang's. What's the largest deployed Python application that uses those servers? My understanding is that every deployed Golang app uses net/http.

Re:An Introduction to the Go Language by dragonwriter on Thursday June 27, 2013 @12:35PM (#5953168)
> > In fact, Go is probably the only language that can claim to have a fully working Web server as part of its standard library.

> Python has SimpleHTTPServer

And Ruby has WEBrick.

Erlang comes with one in the standard inets library.

Racket has one, too, in the standard distribution (it doesn't actually use, that I am aware of, the "standard library" name, and given the structure of the documentation one might argue that the web server is outside of the standard library, but I'm not sure that is a significant distinction.)

Web servers as part of the standard library or distribution are pretty common for languages these days.

Re:An Introduction to the Go Language by unoti on Thursday June 27, 2013 @11:07AM (#5952680)
You're right of course, but it bears mentioning that the way the Python web server is implemented, it cannot handle any significant load. It's not a "real" web server in the sense that it'd generally be a bad idea to try to use it for real work.
Re:An Introduction to the Go Language by trailfox on Thursday June 27, 2013 @11:08AM (#5952690)
Re:An Introduction to the Go Language by netghost on Thursday June 27, 2013 @11:14AM (#5952725)
And Node most of of Node's standard lib is for its web server.

Otherwise the articles more or less on point.

Re:An Introduction to the Go Language by matart on Thursday June 27, 2013 @11:51AM (#5952910)
But Node isn't a language. JavaScript does not have a web server in its standard library.
Re:An Introduction to the Go Language by kaoD on Thursday June 27, 2013 @04:22PM (#5954479)
Golang's standard library is not a language either.

Languages do not have standard libraries. Platforms have standard libraries.