Julia dreams

The latest buzz in the technical computing circles, seems to be about the language Julia. A language aimed to be a crossover between R and Matlab, it has been generating a lot of interest around the interwebz, for example here, here, here, and here – and those are just the ones that showed up in my Google Reader.

However, Julia has only been available for a few platforms till now, OS X, FreeBSD, and Linux. Last week, a Windows binary was made available, and I decided that this was too much temptation to resist.

The steps to your writing your first program and running it under Windows 7 (64-bit) are simple. Download the tarball, unzip, and run the “julia.bat” file for interactive mode, or write your .jl programs for non-interactive mode.

Here is a simple example

# filename: first.jl
# purpose: first program in Julia
# author: informationmatrix
# date revised: 15th august 2012

dA = 2+2
sH = "Hello World!"

Run this program on the command line using

julia "./julia-examples/first.jl"

And that is it.

A lot is being made of the fact that Julia’s just-in-time interpreter makes striking speedups possible, and I hope to explore those speedups for econometric problems in the near future. By the way, the resemblance of the code to Matlab is pretty striking but we are asked to ignore the similarity.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: