Total Pageviews

Thursday, 13 February 2014

Julia Language

The Julia Language: A fresh approach to technical computing.
Julia is a high-level, high-performance dynamic language for technical computing. The main homepage for Julia can be found at julialang.org. This is the GitHub repository of Julia source code, including instructions for compiling and installing Julia, below.

The mailing list for developer discussion is http://groups.google.com/group/julia-dev/. All are welcome, but the volume of messages is higher, and the discussions tend to be more esoteric. New developers may find the notes in CONTRIBUTING helpful to start contributing to the Julia codebase.

Currently Supported Platforms

  • GNU/Linux
  • Darwin/OS X
  • FreeBSD
  • Windows
All systems are supported with both x86/64 (64-bit) and x86 (32-bit) architectures.

Source Download and Compilation

First, acquire the source code by cloning the git repository:
git clone git://github.com/JuliaLang/julia.git
If you are behind a firewall and you need to use the https protocol instead of the git protocol:
git config --global url."https://".insteadOf git://
Next, enter the julia/ directory and run make to build the julia executable. To perform a parallel build, use make -j N and supply the maximum number of concurrent processes. When compiled the first time, it will automatically download and build its external dependencies. This takes a while, but only has to be done once. If the defaults in the build do not work for you, and you need to set specific make parameters, you can save them in Make.user. The build will automatically check for the existence of Make.user and use it if it exists. Building Julia requires 1.5GiB of diskspace and approximately 700MiB of virtual memory.
If you need to build Julia in an environment that does not allow access to the outside world, use make -C deps getall to download all the necessary files. Then, copy the julia directory over to the target environment and build with make.
Note: the build process will not work if any of the build directory's parent directories have spaces in their names (this is due to a limitation in GNU make).
Once it is built, you can run the julia executable using its full path in the directory created above (the julia directory), or, to run it from anywhere,
  1. add a soft link to the julia executable in the julia directory to /usr/local/bin (or any suitable directory already in your path), or
  2. add the julia directory to your executable path for this shell session (in bash: export PATH="$(pwd):$PATH" ; in csh or tcsh: set path= ( $path $cwd ) ), or
  3. add the julia directory to your executable path permanently (eg in .bash_profile).
Now you should be able to run Julia like this:
julia
If everything works correctly, you will see a Julia banner and an interactive prompt into which you can enter expressions for evaluation. (Errors related to libraries might be caused by old, incompatible libraries sitting around in your PATH. In that case, try moving the julia directory earlier in the PATH).
You can read about getting started in the manual.
If you are building a Julia package for distribution on Linux, OS X, or Windows, take a look at the detailed notes in DISTRIBUTING.md.

Uninstalling Julia

Julia does not install anything outside the directory it was cloned into. Julia can be completely uninstalled by deleting this directory. Julia packages are installed in ~/.julia by default, and can be uninstalled by deleting ~/.julia.

from  https://github.com/JuliaLang/julia