A Little More of Google's Go - Well, I've been spending a little more time fiddling with Google's new Go programming language of late and again figured I'd share some more playing-around-code. Edit 12/2/2009: Note that I've launched PhatGoCode.com, a site full of Go example code. HTTP Operations and XML Processing One of my favorite examples I tend to use in higher level languages is the retrieval of twitter statuses with only out-of-the-box libraries. I was surprised how simple this task ended up to be with Go which is more of a systems language. The HTTP get was a one-liner and the resultant XML can be unmarshaled right into native structs. package main import ( "http"; "fmt"; "xml"; ) /* these structs will house the unmarshalled response. they should be hierarchically shaped like the XML but can omit...
First Impressions of Go, Google's New Systems Language - It's funny. These days I hear Google's name mentioned in reference to subjects I never would have imagined three or four years back. Cell phones... Web browsers... Operating Systems... And a systems programming language??? Yes, a systems programming language... By the name of "Go", actually. It boasts garbage collection, enhanced safety and slick concurrency. The idea is that it should perform only slightly slower than C but feel more like python; simple, safe, garbage-collected and plumbing-light. Considering it was just released to the public a few days ago and I've only been fiddling with it for a few hours now I certainly can claim no authority on the subject. I would, however, like to share some of the little hello-world-style hacks I whipped out while getting myself acquainted with Go. Edit...











