This contains code and examples to support the [7 Languages in 7 Hours] (http://generalassemb.ly/education/362/7-languages-in-7-hours/566) course at General Assembly.
Meeting at Betahaus on Saturday 19th January, 11am - 6pm.
Settling In and Intro
Lunch will squeeze in somewhere!
There is a directory of code for each language. These have up to 3 subdirectories that are named as follows:
example
Contains example code. We'll be looking at these in detail together.
task
For each language you will be doing a task. This directory contains any stub code for the task.
solution
This is a possible solution to the set task. Don't look here until after you have tried the task for yourself.
It's best to install Java and Clojure separately, but if you'd like to install the rest at once rather than one at a time:
$ sudo apt-get install build-essential golang ruby ghc erlang
After installing please go to the bottom of the page and follow the verification instructions.
C
Probably already installed, but if not:
$ sudo apt-get install build-essential
Java
You will need a Standard Edition JDK of version 1.6 or later. Accept the license agreement and download from Oracle, or install the open JDK Debian package.
$ sudo apt-get install openjdk
Go
$ sudo apt-get install golang
Ruby
$ sudo apt-get install ruby
Clojure
Download the latest stable release from http://clojure.org/downloads.
Unzip the download.
Haskell
$ sudo apt-get install ghc
Erlang
$ sudo apt-get install erlang
After installing please go to the bottom of the page and follow the verification instructions.
C
Install XCode from the App Store. This includes the 'gcc' compiler we will be using.
Java
With Mac OS 10.6 and lower, Java should come pre-installed.
For Mac OS 10.7, you will need to update your OS X installation if it is less than 10.7.3, then follow the instructions at: http://www.java.com/en/download/help/mac_install.xml The file it talks about that you need to install is quite well hidden, and it can be found via the 'Downloads' link at the top of that page.
Go
Follow the very simple installation instructions at: http://golang.org/doc/install#osx
Ruby
Comes as standard with Mac OS.
Clojure
Download the latest stable release from http://clojure.org/downloads.
Unzip the download.
Haskell
Follow the installation instructions to install the Haskell Platform at: http://www.haskell.org/platform/mac.html
Erlang
First download the most recent release from here. Now un-tar the download, and install with make by running the following:
$ tar -xzf otp_src_R13B02-1.tar.gz
$ cd otp_src_R13B02-1
$ ./configure
$ make
$ sudo make install
After installing please go to the bottom of the page and follow the verification instructions.
C
If it's not already installed go to http://sourceforge.net/projects/mingw/files/Installer and click the link to download the latest mingw-get-install-XXXXXXXX.exe.
Run the executable, and go through the MinGW-Get Setup Wizard.
Java
You will need a Standard Edition JDK of version 1.6 or later. Accept the license agreement and download as an executable from Oracle.
Run the downloaded executable to install.
Go
Download the .msi from http://code.google.com/p/go/downloads/list, and run to install.
Ruby
Use http://rubyinstaller.org/.
Clojure
Download the latest stable release from http://clojure.org/downloads.
Unzip the download.
Haskell
Download and install the Haskell Platform.
Erlang
Download the Windows Binary File from http://www.erlang.org/download.html, and then run to install.
To verify that everything is installed check that you can run the following.
C
$ gcc -v
Java
$ javac -version
$ java -version
Go
$ go version
Ruby
$ ruby -v
Clojure
Go to the directory which you unzipped earlier, and run:
$ java -cp clojure-1.4.0.jar clojure.main
This should open up an interactive prompt.
Haskell
$ ghc --help
Erlang
$ erl
This will enter an interactive mode. Exit by typing:
1> halt().