Send
Close Add comments:
(status displays here)
Got it! This site uses cookies. You consent to this by clicking on "Got it!" or by continuing to use this website.nbsp; Note: This appears on each machine/browser from which this site is accessed.
Julia
1. Julia

Julia, or JuliaLang, is a programming language for numerical computing.
Julia was designed from the beginning for high performance. Julia programs compile to efficient native code for multiple platforms via LLVM. From the Julia web site is at
https://julialang.org/ .
From Wikipedia:
Julia is a high-level programming language designed for high-performance numerical analysis and computational science. Distinctive aspects of Julia's design include a type system with parametric polymorphism and types in a fully dynamic programming language and multiple dispatch as its core programming paradigm. It allows concurrent, parallel and distributed computing, and direct calling of C and Fortran libraries without glue code. A just-in-time compiler that is referred to as "just-ahead-of-time"[18] in the Julia community is used.
2. CentOS installation
The following Linux command(s) to install Julia at the command line.
sudo yum -y install epel-release
sudo yum-config-manager --add-repo https://copr.fedorainfracloud.org/coprs/nalimilan/julia/repo/epel-7/nalimilan-julia-epel-7.repo
sudo yum -y install julia
The following is intended to be run as a Bash script and not typed in at the command line.
The following Linux command(s) to install Julia in a Bash script.
if [ -f /usr/bin/julia ]; then
which julia
echo -e "julia appears to be installed, nothing done"
else
echo -e "julia not found, installing"
sudo yum -y install epel-release
sudo yum-config-manager --add-repo https://copr.fedorainfracloud.org/coprs/nalimilan/julia/repo/epel-7/nalimilan-julia-epel-7.repo
sudo yum -y install julia
fi
3. Check the installed version
The following Linux command(s) to check the installed version of Julia.
julia --version
On
2019-08-09 the output was as follows.
julia version 1.1.1
4. Hello world in Julia
The file type of a
Julia program file is
jl.
The following Linux command(s) create/edit a hello program in the your home directory using the nano text editor.
nano ~/hello.jl
Create the following program text in the editor that will output the text "Hello world"
println("Hello world")
To exit with save, remember to press
Ctrl-X, then "
y" (for yes) and
Enter to exit.
The following Linux command(s) run the program.
julia hello.jl
The output should be as follows.
Hello world
5. End of page