Julia By Example Julia is a high-level, high-performance dynamic programming language for technical computing.
Julia is a high-level, high-performance dynamic programming language for technical computing. This site is a non official series of examples of Julia. Below are a series of examples of common operations in Julia. They assume you already have Julia installed and working (the examples are currently tested with Julia v0.3.7). With Julia installed and added to your path this script can be run by julia hello_world.jl, it can also be run from REPL by typing include(‘hello_world.jl’), that will evaluate all valid expressions in that file and return the last output. The example below shows two simple functions, how to call them and print the results. Further examples of number formatting are shown below. Julia uses Dicts as associative collections. Usage is very like python except for the rather odd =>, definition syntax. Plotting in Julia is only possible with additional Packages. Examples of some of the main packages are given below. Bokeh.jl builds on top of the Bokeh project which is a fulling featured plotting library using html5 as a backend. Because the package does nothing more than generate an html file and open it in your browsers it should be extremely easy to install on any platform. TextPlots is an extremely simple plotting library which generates terminal plots using Braille characters. It is well documented and requires no other packages or external libraries, making it the simplest plotting option for Julia. Source.