Showing posts with label The Go Programming Language. Show all posts
Showing posts with label The Go Programming Language. Show all posts

Tuesday, September 20, 2011

A Tutorial for the Go Programming Language - The Go Programming Language

A Tutorial for the Go Programming Language - The Go Programming Language


  • Introduction
  • Hello, World
  • Semicolons
  • Compiling
  • Echo
  • An Interlude about Types
  • An Interlude about Allocation
  • An Interlude about Constants
  • An I/O Package (read on 2011-09-26)
  • Rotting cats
  • Sorting
  • Printing
  • Prime numbers
  • Multiplexing

installing GoLang on Lion

I had to get Mercurial from here, that was successful then for this step:

$ hg clone -u release https://go.googlecode.com/hg/ go
$ sudo /usr/sbin/chown -R johayek go


./all.bash expects "sysctl" on PATH, so:

$ export PATH=$PATH:/usr/sbin

I ended up with applying sudo on ./all.bash, but still

$ sudo ./all.bash


I experienced problems before we a messed Xcode set-up, but after cleaning that up, everything was fine here.

Darwin Ports on Lion

This is also not a success story right now.

In order to install Mercurial for GoLang I will have to do that the native way.

Monday, September 19, 2011

fink, XCode, connect.apple.com, …

A while after upgrading to Lion, there is a need for me, to make use of fink again. Well, when I upgraded from Snow Leopard to Lion, XCode did not get upgraded as well. Now that I tried do update fink again, it complained about what ever, but at least it pointed me to XCode and connect.apple.com . So, I hope, that will be a piece of cake. I need Mercurial from fink, and using that I will install GoLang. That's the intention at least.

Update 2011-09-20
The version of XCode within the Apple app store seems the same as the one in connect.apple.com, at least the app store refuses to download XCode, as I already have the up-to-date version of XCode on my disk.

"Getting Started" with "The Go Programming Language" on …

Getting Started - The Go Programming Language (…/install.html)

installing the software on an openSUSE-11.3 machine …

That was a piece of cake compared to the attempted installation on Mac OS X Lion.
What a waste of time the latter was.

My workset of commands on my openSUSE box:
  • 8c – the Go compiler
  • 8l – the Go linker
My workset of commands on my Mac:

  • 6c – the Go compiler
  • 6l – the Go linker

The above link also has a chapter on this:

If you want to join the bleeding edge, that's of course very important.

My next step: the tutorial.

Wednesday, August 11, 2010

Plan 9 from Bell Labs (THE website)

Plan 9 from Bell Labs (the link to THE website)

The last time I gave Plan 9 a try was, when I worked with Derwent in London. That was pretty much in vain then, I just couldn't really get it running on a PC. But nowadays they provide you with images for virtual machines. I still assume, if Plan 9 had ever gotten to enough speed, there would never have been GNU Hurd and Linux either.

This time I came across Plan 9 in the context of Google's Go programming language, which they seem to provide for Plan 9.

The Go Programming Language (on GoLang.org)

The Go Programming Language on GoLang.org