[Photograph of Neil Fraser]

Neil Fraser

For the past decade I've been a software engineer at Google in California.  In my spare time I've created a mélange of open-source software.  I've also built some rather unusual hardware.  On rare occasions I've even been known to write something interesting.

Polyglot 14: Go Sunday, 12 March 2017

After "Hello World", the first program I write in any new language is a recursive colour generator. Having previously implemented this program in Perl, VB, Java, JavaScript, Euphoria, PHP, Python, POV-Ray, SVG, Moo, Smalltalk, C, R, and Dart, I thought Go would be a good candidate to try next.

At first glance, Go is a cleaner version of C. It will still let you shoot yourself in the foot (e.g. range errors), but it won't let you shoot yourself in the heart (e.g. pointer arithmetic).

The colourful image above is rendered server-side by a Go executable (reload to generate random new colours). Here is the source code: colours.go


Older news:   Marble Mountains  -  Teaching in Vietnam  -  Rapid Development  -  Mystery Interference  -  Archive

-------------------------------------
Statistics Private Exit