Keith Kim’s Blog
Technology, Development, Tech Trends, Tech Team Management
3rd
JAN
Google Go, windows version is out
Posted by Keith under Golang
There were only Linux/OSX versions – now someone built it for Windows ( http://code.google.com/p/go-windows/ )
Get http://go-windows.googlecode.com/files/go-1.zip
To install, unzip and set the following environment variables:
set GOROOT=<the go folder> set GOOS=mingw set GOARCH=386
and then add GOROOT\bin directory to PATH.
Go Hompage: http://golang.org/
Go packages: http://golang.org/pkg/
Tutorial: http://golang.org/doc/go_tutorial.html
Sample Hello world source:
Save below as “hello.go”
package main
import “fmt”
func main() {
fmt.Printf(”hello, world\n”)
}
How to compile:
% 8g hello.go à produces “hello.8”
% 8l hello.8 à produces “8.exe” (or “8.out” in Linux)
23rd
NOV
Google Go language - install and run
Posted by Keith under Golang
It’s too bad that it currently only supports Linux and OSX. (I use Windows and Sparc Solaris.) I think it’ll eventually support other platforms, but for now, it’s just Linux and OSX.
Platform
I’ve installed Ubuntu 9.10 on VMWare, assigning 40GB HDD and 1GB RAM. Ubuntu 9.10 is much faster than previous version.
Compile and Install
First, installing Go. Create ~/bin/ directory and add that to PATH. Then follow the instruction on http://golang.org/doc/install.html I didn’t have any issue at all.
Code Editor
After compiling Go lang, in $GOROOT directory, there are documents, samples, and syntax highlighting files for a few editors. I use VIM, and installed $GOROOT/misc/vim/go.vim file. Copy this file into ~/.vim/ directory. And edit ~/.vimrc file:
let mysyntaxfile = “/home/MY_USER/.vim/go.vim”
syntax on
set nu
set ai
set tabstop=4
set ruler
set laststatus=2
set showmode
set expandtab
let loaded_matchparen=1
(First two lines are for go lang.)
Documents, Tutorials, Sample code
In $GOROOT/doc, the documents — tutorial, document on Go memory, specification, FAQ, Go Course (day1-3) PDFs, effective go, and sample code are all there. No need to download from the site separately.
… More on Go lang later.
20th
NOV
Google’s Go lang vs. “Brand X” language
Posted by Keith under Golang
I just found this very interesting blog posting — comparison of Google’s Go language and this “Brand X”.
20th
Golang
Posted by Keith under Golang
Everyone probably heard of Go lang already by now. I read many other people’s experiments with it — some are good reviews and some are bad.
Played with the examples on Ubuntu. Compiles fine, up and running in no time. Too bad it doesn’t have Windows or Sparc Solaris versions yet.
Anyhow, I need to test further, but syntax looks great, threading model looks good, garbage collection looks fine too. Need to play around with it more…
| M | T | W | T | F | S | S |
|---|---|---|---|---|---|---|
| « Jul | ||||||
| 1 | 2 | 3 | 4 | 5 | ||
| 6 | 7 | 8 | 9 | 10 | 11 | 12 |
| 13 | 14 | 15 | 16 | 17 | 18 | 19 |
| 20 | 21 | 22 | 23 | 24 | 25 | 26 |
| 27 | 28 | 29 | 30 | |||
Recent Posts
- Using SVN in Mac
- Setting up CVS pserver on OSX 10.4 and up (10.5, 10.6)
- PhoneGap: development apps for iPad
- PhoneGap install
- iPhone and iPad development
Recent Comments
- Pranav on Intro: Java ME and Palm
- Keith on Code Review tools
- Jesse Gibbs on Code Review tools
- pdumsproject on MS Project replacement (Desktop apps)
- sparky on EverNote, better than Microsoft OneNote
Categories
- Apple
- Architecture
- Books
- Clojure
- Cool Apps
- Development Tools
- Erlang
- Fun
- Golang
- iPhone iPad development
- J2EE
- J2ME
- Java
- Lisp
- Management
- PDA
- Sites
- Tips
- Unix/Linux
- Windows
Archives
- July 2010
- June 2010
- January 2010
- December 2009
- November 2009
- July 2009
- May 2009
- January 2009
- December 2008
- November 2008
- September 2008
- August 2008
- July 2008
- June 2008
- May 2008
- April 2008
- March 2008
- November 2007
- October 2007
- September 2007
- August 2007
- July 2007
- June 2007
- April 2007